opencart

Opencart Rest API generation

Deadly 提交于 2019-12-12 18:13:36
问题 I tried to generate Rest Api of my whole categories, products and all others to use it into my mobile application but I can't get any solution. Can anyone tell me that in opencart 3.0.2.0, otherwise if opencart can't give this solution then give me other framework by which I can easily create APIs for my data? 回答1: this worked out for me I made a custom controller in the OpenCart api folder <?php class ControllerApiAllproducts extends Controller { private $error = array(); public function

How to use separate language files for opencart multi stores?

一曲冷凌霜 提交于 2019-12-12 13:34:38
问题 I'm using opencart version 1.5.5.1. We've a website coded using opencart framework. The site uses opencart multi-store feature also. All stores use English language. Now the question is, is it possible to use different language labels for different stores? For example: One store is related to sports items and another one is related to wrist watches. So we need to use language labels related to sports items in one store and language labels related to watches for the other one. I'm not sure

Opencart 2.2.0 enable search by manufacturer

元气小坏坏 提交于 2019-12-12 12:28:00
问题 I am using OC 2.2.0 and been struggling with the following problem for a while now: Example: I enter Siemens in header search and click SHOW ALL RESULTS, my search page appears with all results. The problem is - results list includes only products that have Siemens in their NAME. What I need is to show all products in search results list, belonging to that manufacturer , which in our example is Siemens manufacturer. In my search.php controller file, results are defined in this line: $results

Check module position in OpenCart 2.0

荒凉一梦 提交于 2019-12-12 10:59:29
问题 I was using following code for Check module position. So, It is working fine in OpenCart 1.5.6. When module Enabled in Content left & right panel so I want to hide javascript code in OpenCart but, it is not working in Opencart 2.0 How can be achieved in Opencart 2.0? in .tpl file <?php if ($module['position'] == 'content_bottom' || $module['position'] == 'content_top') { ?> //add your code Here <?php } ?> add in .php file $this->data['module'] = $setting; 回答1: I have found simple solution.

opencart 3.0.1.1 filename.ocmod.xml invalid file type

坚强是说给别人听的谎言 提交于 2019-12-12 06:23:48
问题 In opencart 3.0.1.1 when i upload filename.ocmod.xml from extension installer from admin panel it gives me "invalid file type error". How can I fix this error? 回答1: 3.x support only archived files, You need to archive the file before upload . eg: change the xml file name to 'install.xml' then archive the file as filename.ocmod.zip. 来源: https://stackoverflow.com/questions/44970759/opencart-3-0-1-1-filename-ocmod-xml-invalid-file-type

Get error when Code add via vqmod

爷,独闯天下 提交于 2019-12-12 06:04:20
问题 I have follow this answer Check module position in OpenCart 2.0 and it is working fine When add it code direct in core file. But, when, this same code (Step 3) add via Vqmod (without change core file). So, It is not work. Get error ( Notice: Undefined index: position in.... ) Our Vqmod Code. <file path="catalog/controller/common/" name="content_top.php,content_bottom.php,content_right.php,content_left.php"> <operation> <search position="after"> <![CDATA[$setting_info = $this->model_extension

How to set up multistore opencart without using CPanel?

帅比萌擦擦* 提交于 2019-12-12 05:48:42
问题 I tried to setup opencart without using CPanel( Setting it up in CPanel can be done this way). I already have opencart(lets call it the main shop) running at < mydomain >.com What I did is the following: created a separate subdomain eg. shop2.< mydomain >.com, made the shop2 subdoamin point to the same ip as the < mydomain >.com (the main shop) created a virtual host(apache) for the shop2 subdomain and its document root point to the same as the existing main shop. Created a new store in

Opencart checkout not passing through custom field

旧巷老猫 提交于 2019-12-12 04:48:49
问题 I'm trying to add 2 custom fields to the checkout (one for a gift note, one to let users choose the dispatch date). I managed to get the gift note field up and running fine but I'm having trouble with the date field. I'm using a standard text field (input type="text") with the intention of using jQuery UI for the date picker, but the value of the text field isn't being passed through. If I change from an input to a textarea the data does get passed through. I'm trying to add them both in the

Opencart can't load Region / State dropdown

五迷三道 提交于 2019-12-12 04:38:33
问题 I'm using opencart 1.5.5.1 with a theme (sancart) and I'm getting a very annoying bug. In the modules checkout/cart and account/register the dropdown menu for Region/State field won't load the relative values (i guess are called zone or zone_id) and remains empty, blank. The same function instead works well in the module checkout/checkout proceeding both as Guest or user registration. Googleing around I've notice that is a pretty common bug with many themes, above all for those using SSH

How to change OpenCart2 breadcrumbs home text?

亡梦爱人 提交于 2019-12-12 04:18:33
问题 I'm struggling with this problem for a few months now and I can't figure out where to change this. Note that the website I'm working on is coded by someone else, I can't find the part where the fontawesome icon is added to the home text in the breadcrumbs. Look at the breadcrumbs As you can see there's an icon added, but I want to add a space between home and the icon, I just can't figure out which file to edit. If you need any more info, let me know. 回答1: Search for $_['text_home'] in