opencart2.x

OpenCart 2.0.0. - SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data OK

£可爱£侵袭症+ 提交于 2021-01-28 12:14:48
问题 In OpenCart v. 2.0.0 in /admin when I receive an order I should be able to change status of the order to let the customer know what is going on with her purchase. This functionality is in 'History' tab. Unfortunately I can't change or modify any orders. When I change the status and try to save it Openart gives me an error: SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data OK It happens even on clean install. Everything is set up correctly - the domain name is

opencart 2.0 SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data OK

一曲冷凌霜 提交于 2021-01-27 03:50:40
问题 I looked all over the internet and found no answer. Basically my problem is whenever I try to edit orders and change stores I get the SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data OK in firefox and in chrome I get SyntaxError: Unexpected end of input OK. Has anyone found a "real" solution for this because I tried all that was suggested but they don't work. From changing the api_id to making a secondary API. And even the .htaccess method. 回答1: I got the

check user is logged in to opencart or not

左心房为你撑大大i 提交于 2020-07-22 09:30:50
问题 I am new to opencart. I have installed opencart on my domain http://example.org/ocart and a php application at url http://example.com/testapp testapp is a basic php application in which I want to check if any user is logged in to opencart or not. Is it possible to check in php app that any user is logged in to opencart and if it is logged in then can we get the email id of logged in user. Both ocart and testapp are using the same database. 回答1: You can check your other question you will get

OpenCart2 vqmod replace,before and after all replacing?

被刻印的时光 ゝ 提交于 2020-01-25 14:31:06
问题 Please take a look at the following xml file in the vqmod folder. <?xml version="1.0" encoding="UTF-8"?> <modification> <id>Drop Shipping</id> <version>2.0.0</version> <vqmver required="true">2.4.0</vqmver> <author>South Coast Hosting Services (Pty) Ltd</author> <file name="admin/language/*/common/menu.php"> <operation error="log"> <search><![CDATA[// Text]]></search> <add position="after"><![CDATA[ $_['text_gdropship_menu'] = 'Drop Shipping'; $_['text_gdropship_setup'] = 'Drop Shipping Setup

How to add footer links in Open Cart?

余生颓废 提交于 2020-01-07 03:47:38
问题 I have already added the li tag in footer using Open Cart. However, I am unable to link the page using Open Cart. For example: I have added li tag as About Us and About Us is also the name of my page. I need to link this page with the li in footer. 回答1: If you want to footer links to your custom information page ex. (About us etc. ). Go to Admin Dashboard -> Catalog -> Informations Here, you can add your own custom static page. If you want to link this page on footer. Edit page and check

PHP / OpenCart 2.2.0 - Creating custom theme

三世轮回 提交于 2020-01-04 05:14:12
问题 i'm starting today with theme development in OpenCart 2.2 and i'm following this article: http://code.tutsplus.com/tutorials/create-a-custom-theme-with-opencart-introduction--cms-21786 Wich uses the 1.5.6.1 version of opencart. (I can't find nothing about this for version 2.2, so i assumed it must be the same). As a i understand we should create the theme directory in catalog/view/theme. For test pourposes i created a "customtheme" directory and copied the dir structure from the default theme

Best way to modify OpenCart without touching Core and VQMOD/OCMOD

我的未来我决定 提交于 2020-01-01 05:30:13
问题 Is there a better way then using VQMOD / OCMOD to change OpenCart's core files? Is there some "overrides" folder exists so that I can simply create any PHP file corresponding to the file structure and simply override a core file? (Like it is possible in PrestaShop and Magento ). VQMOD / OCMOD is highly inconvenient. Does someone use any hacks & tricks to achieve the result? I don't want to touch any core files to keep the system clean and manageable. Thanks a lot! 回答1: If you want to call

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

OPENCART :Directory containing files to be uploaded could not be found

为君一笑 提交于 2019-12-25 07:30:04
问题 I am using Opencart 2.0.0.0 and trying to upload a module/extension in it through extension installer.But it shows an error "Directory containing files to be uploaded could not be found!" 来源: https://stackoverflow.com/questions/37183914/opencart-directory-containing-files-to-be-uploaded-could-not-be-found

Opencart 2 load layout by id

放肆的年华 提交于 2019-12-25 06:39:11
问题 In opencart I have Information layout id, it's custom not default. How I can load custom layout by this id ? It posible to have custom template in one of information pages ? 回答1: //loading Layout => While adding/Editing Information page under the Design Tab you can overwrite layout dynamically which is preferable. => or you can pass manually layout_id based on your condition on each file contente_top, content_button, column_left and Column_right , which i dont recommand. $modules = $this-