opencart

Open cart product page goes blank upon theme upload (vQmod on)

纵饮孤独 提交于 2019-12-12 02:52:30
问题 Here's the scenario: Fresh install of Open Cart. Fresh install of vQmod. Everything is working fine. But when I upload certain theme - purchased and licensed - the site has an issue. The home page is working, but the product page goes blank. I have tried all possible combinations of OpenCart and vQmod versions (except for 2.0 for OC because the theme doesn't support it yet). I am out of ideas. Edit: After showing all errors as adviced I finally saw the reason : "oc_product_tab' doesn't exist"

Warning: MySQL extension needs to be loaded for OpenCart to work

被刻印的时光 ゝ 提交于 2019-12-12 01:53:47
问题 I have installed XAMPP on windows. Apache is running just fine on port 80 and 443, and mysql is also running on 3306. I am installing open cart 1.5 locally but on pre-installation its giving me error "Warning: MySQL extension needs to be loaded for Open Cart to work!" Mysql current settings is off. Every thing looks fine , i have searched a lot but couldn't find any thing. What should i do? My php version is PHP Version 5.5.33 and my open cart version is 1.5.4. 回答1: Open file step_2.php under

Using an alternate price field in OpenCart

会有一股神秘感。 提交于 2019-12-12 01:51:26
问题 I have an OpenCart installation that is running two stores, one wholesale and one retail. The product catalog is shared, but the problem is that OpenCart doesn't natively support multiple pricing options. So I added a new field to the oc_product table, retail_price. The idea is that I would use the price field for wholesale pricing and the retail_price field for -- you guessed it -- retail pricing. I have everything pretty much covered on the admin side, so my new field is showing in the

OpenCart mail error on mail.php line 153

♀尐吖头ヾ 提交于 2019-12-12 01:36:04
问题 I'm getting this error on my OpenCart site while I trying to register using social media bundle plugin : Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/wankersh/public_html/system/library/mail.php on line 153Warning: fsockopen(): unable to connect to pds14.servikus.com :465 (php_network_getaddresses: getaddrinfo failed: Name or service not known) in /home/wankersh/public_html/system/library/mail.php on line 153Notice: Error: php_network

Simple modification to OpenCart theme

人走茶凉 提交于 2019-12-12 01:16:11
问题 I'm using the Shoppica theme with OpenCart. I'd like to make a modification to the category page. It gives a description (which I entered in the backend) and than a list of products follow. In category.tpl it says: <?php if ($description) echo $description; ?> But I'd like to have an extra description, let's call it description2. This should come AFTER the list of products. In PhpMyAdmin I added another row in *oc_category_description* and called it description2 Manually (so in PhpMyAdmin) I

Illegal string offset 'order_status_id' in opencart

烂漫一生 提交于 2019-12-12 00:34:50
问题 I am getting error Illegal string offset 'order_status_id' when I want to get loop data in view Here's the code: controller.php if (isset($_POST["email"])) { $email = $_POST["email"]; } $this->load->model('order/myorder'); $data['data1'] = $this->model_order_myorder->getOrder($email) ; view.php foreach ($data1 as $row) { echo echo $row->order_id; } model.php class ModelOrderMyorder extends Model { public function getOrder($email) { $sql = "SELECT * FROM ".DB_PREFIX."order, ".DB_PREFIX."order

How to add JavaScript dynamically in Opencart?

允我心安 提交于 2019-12-12 00:29:53
问题 I want use a jQuery plugin in category.tpl. Put files in javascript/jquery directory. Now, how can use this plugin? 回答1: I've never used OpenCart, but a quick google session tells me that you should include the plugin scripts (just like any other js) in a file called header.tpl . Here is a part of an sample header.tpl -file I found: <script type="text/javascript" src="catalog/view/javascript/jquery/jquery-1.3.2.min.js"></script> Just add a the following line below the jQuery include so it

Opencart duplicate URL keywords

佐手、 提交于 2019-12-12 00:21:30
问题 How would I go about fixing the issue where two categories/products have the same URL in Opencart? Or if their is a module which already does this? E.g: categories Ladies -> Trousers (URL: ladies/trousers) Mens -> Trousers (URL: mens/trousers) This breaks Opencart because we have two sub-categories with the URL = trousers? 回答1: I developed this vqmod for that exact scenario 回答2: I know this is a late answer, but this is a deep rooted problem with OpenCarts architecture. Personally I am not a

get category products by category id in opencart

佐手、 提交于 2019-12-11 19:25:22
问题 hi i want to customize the feature module that as category is set through admin display the relevant product instead of featured module when ever i select the category it displays category products what will be the code of controller which get category n give products array to that category below is the view code of category select input <td><select name="category_id"> <?php foreach($categories as $category) { ?> <option value="<?php echo $category['category_id'];?>"><?php echo $category[

OpenCart pass variable to twig from controller

折月煮酒 提交于 2019-12-11 18:14:07
问题 Hy! I need to use some data in twig files, how do I pass it from header.php to twig files? I created a new element in $data array, but It doesn't exist in the twig files. $data['testvar'] = "test string"; And I try to access it in twig files like this: {{ testvar }} 回答1: After you made some changes, you must in admin dashboard refresh your modifications and clear cache, blue gear icon in right upper corner. 回答2: If you add $data['testvar'] = "test string"; only in catalog/controller/common