opencart

Undefined variable (opencart)

大城市里の小女人 提交于 2019-12-08 01:36:42
问题 on the line where the error apparently is the code looks like this: <?php if ($filter_name) { ?> I know this is probably a vague questions but if anyone can help that would be great! 回答1: This is very Vague question. most probably you would be getting this error in header.tpl because you are using theme made for 1.5.4.x ( or earlier) with 1.5.5.x in your catalog/view/theme/your_theme/template/common/header.tpl Find <?php if ($filter_name) { ?> <input type="text" name="filter_name" value="<

Remove index.php?route= from OpenCart

家住魔仙堡 提交于 2019-12-08 00:37:29
I'm a .NET developer but my friend called me for support.I made some changes with .htaccess but i'm corrupted SEO. Everything started with "www" tag on url.I see we get some errors when we are not using "www" and i'm changed .htaccess.I'm added rewrite rule and redirected mysite.com to www.mysite.com.Our problems are solved but now we have another problem. We are using Opencart - SEO and it's enabled.Our products seems like http://www.mysite.com/epson-claria-uyumlu-yazici-kartus-dolum-murekkebi-500g.html when we are reaching with www. But if i remove "www" tag on url, it seems like http://www

Product page as homepage in Opencart

一笑奈何 提交于 2019-12-07 23:23:37
问题 I have only one product on my opencart and I want this product just to be in the homepage so that the customer will no longer go to any page just to buy the product. How can I make this product as default homepage? or How can I make the url default to the url of this product? I'm using opencart. I've tried to override the layout of the product but it didn't work. "Opencart Admin > Product > Porduct Page > Layout Tab > Override (Home)". 回答1: Both of these require you to edit your /catalog

How to get currency to show on product page in opencart?

戏子无情 提交于 2019-12-07 20:09:38
问题 I want to display the currency list on the product description page. How can I do that? I copied the code from header.tpl () and pasted it in the product.tpl but I get an error: Notice: Undefined variable: currency in C:\xampp\htdocs\mysite.com\catalog\view\theme\mytheme\template\product\product.tpl on line 60. I tried adding the following code in product.tpl. <?php include(DIR_APPLICATION.'\view\theme\mytheme\template\module\currency.tpl'); but that did not work either. Please help as I want

How does the Opencart system/modifications folder function?

旧城冷巷雨未停 提交于 2019-12-07 17:04:42
问题 I am quite new to OC 2.X and I noticed as I was making changes to the site they werent appearing. When I went to change within the system/modifications folder the changes appeared. I assumed this folder was something new and nothing to do with vqmod. I thought it was a foler that would basically take priority over the core file. Unfortunately when I installed a plugin it also rebuilt that folder so Ive lost all my changes (Im assuming thats what happened). Im wondering how does this work

Permission denied on opencart

一个人想着一个人 提交于 2019-12-07 15:22:24
问题 I was trying to create a payment module for opencart. When i tried to save the details in settings page, it's giving me the error "Permission Denied!" even though I was logged in as a administrator. Can anyone help me in this? 回答1: You need to set yourself with permissions. Go to SYSTEM > USERS > USER GROUPS in the admin panel, click EDIT next to your user group, then make sure the boxes are checked next to payment/your-payment-name-here (or just click Select All Under both boxes) 来源: https:/

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

Opencart Admin Cron Jobs

馋奶兔 提交于 2019-12-07 08:28:58
问题 I am know about CRON and how to create / manage it. But this issue was different. I want to develop a module to delete any (unpaid) order that exceed the time frame given. Ex : I want to delete any unpaid order that has not been paid for 2 days after the order was placed. I want to use existed model in opencart (and not use a new one). Lets say the module URL would be : http://www.yourstore.com/admin/index.php?route=module/modulename/function And will be called from CRON, and then all any

How to set the config in OpenCart?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-07 07:25:43
问题 Warning: require_once(/sgweb1/minufashion/system/startup.php) [function.require-once]: failed to open stream: No such file or directory in D:\inetpub\vhosts\sgwebgene.com\httpdocs\minufashion\index.php on line 15 Fatal error: require_once() [function.require]: Failed opening required '/sgweb1/minufashion/system/startup.php' (include_path='.;./includes;./pear') in D:\inetpub\vhosts\sgwebgene.com\httpdocs\minufashion\index.php on line 15 I am hosting to the server then the error is showing. 回答1