opencart-module

OpenCart 3 custom module doesn't save data

☆樱花仙子☆ 提交于 2019-12-25 12:05:04
问题 Im developing a payment module for OpenCart 3. Since there's no updater documentation my module is based on the others payment module (such as Alipay, paypal, cash on demand, etc....) I've created the module view on admin/view/template/extension/payment/mipago.twig as simply {{ header }}{{ column_left }} {% if error_warning %} {{ error_warning }} {% endif %} <div id="content"> <div class="page-header"> <div class="container-fluid"> <div class="pull-right"> <button type="submit" form="form

OpenCart 3 custom module doesn't save data

ⅰ亾dé卋堺 提交于 2019-12-25 12:04:08
问题 Im developing a payment module for OpenCart 3. Since there's no updater documentation my module is based on the others payment module (such as Alipay, paypal, cash on demand, etc....) I've created the module view on admin/view/template/extension/payment/mipago.twig as simply {{ header }}{{ column_left }} {% if error_warning %} {{ error_warning }} {% endif %} <div id="content"> <div class="page-header"> <div class="container-fluid"> <div class="pull-right"> <button type="submit" form="form

Get Opencart Order ID in COD Payment Module Redirect Link

孤街浪徒 提交于 2019-12-25 09:38:51
问题 First of all thank you for giving your valuable time to help me. My Situation - I am using Opencart 2.1.0.1 Cash on Delivery Payment Method Custom OnePageCheckout Custom Theme I have implemented a custom process which verifies the customer from our own database via a cron job running every minute. This is the default code in Opencart catalog/view/theme/template/payment/cod.tpl <div class="buttons"> <div class="pull-right"> <input type="button" value="<?php echo $button_confirm; ?>" id="button

Are Opencart2 extensions supported by Opencart3?

痞子三分冷 提交于 2019-12-24 18:48:32
问题 I haven't used Opencart3 yet, but would like to use the extensions I have from Opencart2 when migrating to Opencart3. Is that possible out-of-the box, or do the old extensions require changes to adapt them to Opencart3? 回答1: OpenCart 2 extensions will not work in OpenCart 3 without modification. Even minor things have changed such as the name of the token used in the URL, so there's no chance anything from OpenCart 2 will work with OpenCart 3. 来源: https://stackoverflow.com/questions/45611645

Add a Custom Field on Opencart admin 'Order Info' page

痴心易碎 提交于 2019-12-23 08:56:35
问题 I want to add custom field on opencart admin order pages. compare value like if oc_order.order_id = oc_custom_table.order_id then display oc_custom_table.comment on admin order list. display same thing on admin order info page. I added a custom function in admin_model_order.php page where there all all queries. public function getCustomTable($order_id) { $query = $this->db->query("SELECT * FROM " . DB_PREFIX . "custom_table WHERE order_id = '" . (int)$order_id . "'"); return $query->rows; }

get third level category in opencart 2

泄露秘密 提交于 2019-12-08 12:58:12
问题 Im editing template for 2.0.x open cart, and found out that the Menu one the top side - shows only upto second sub category.. and i'v been looking up controller files, template files, to edit it as I want - show just one more level (or all levels..as long as I can get more deeper level of sub sub cats..) of sub categories on the navigation on the left --- for couple weeks..and could not find the way. header.tpl <ul> <?php foreach ($categories as $category_1) { ?> <li class="sub-menu"><a href=

OpenCart 2: Show all subcategories in category module by default (php)

£可爱£侵袭症+ 提交于 2019-12-07 15:14:27
问题 Really need your help to make this work. I'm using OpenCart 2.0.3.1 and I want the sidebar category module to show all subcategories of all categories by default. Currently the module shows subcategories only when you click on a category and it shows subcategories only of that category. You can have a look at it in action: http://demo.opencart.com/index.php?route=product/category&path=20 (it's the module on left sidebar) I'm just using the default module. I tried many different ways to get

How to setting global variables in OpenCart 2.3.0.2?

旧巷老猫 提交于 2019-12-07 12:32:11
问题 When I want to set a global variable in template ( .tpl files), I just use global in opencart 2.2 or older version. For example: <?php global $config; if($config->get('my_options')== 1) { ?>....<?php } ?> but, it does not work in Latest OpenCart 2.3.0.2 Because predefined global $config in controller rather inconvenient (we have use config value in many template file). Hopefully someone with more experience will have an answer to this problem. 回答1: The least code you will get defining them as