opencart

Adding new modules positions to OpenCart 3

大城市里の小女人 提交于 2019-12-05 22:06:47
I am using OpenCart Version 3.0.2 . By default OpenCart has 4 areas where we can drop the modules in our layouts. i.e. Left Column Right Column Top Content Bottom Content My question is if somehow we can drop modules elsewhere also or maybe if we can somehow call a module within the HTML-Module and wrap is with some HTML codes. Basically I am stuck with a design where I wanted to add few dynamic banners in the home page but to display them according to the design, they much be wrapped within row and than col-6 each since bootstrap is the framework I am using. To elaborate my requirement I am

OpenCart - How do you increase the Admin session timeout?

為{幸葍}努か 提交于 2019-12-05 21:57:00
Currently the Admin session in OpenCart is about 30 seconds. I was wondering is there a PHP file or is there some way I can increase the timeout session for the login? Currently I have been told this solution works but it does not: <script type="text/javascript"> function pingServer() { $.ajax({ url: location.href }); } $(document).ready(function() { setInterval('pingServer()', 60000); }); </script> This file has been placed in admin/view/template/common/header.tpl This can most likely be solved simply by changing the value of session.gc_maxlifetime . You can change this via .htaccess, php.ini

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

佐手、 提交于 2019-12-05 19:59:07
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 this work and nothing helped to achieve this. I know that I need to edit these two files: catalog

Opencart Admin Cron Jobs

爱⌒轻易说出口 提交于 2019-12-05 17:36:33
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 unpaid order will be disappeared. But the main problem is : when CRON want to access that URL, it need a

Opencart, OC 1.5.1.3, captcha error

天涯浪子 提交于 2019-12-05 16:09:35
OC 1.5.1.3, the Captcha image doesn't show on none of these pages: product / review section contact page by accessing this http://www.directmall.co.uk/index.php?route=information/contact/captcha (the direct link which should generate the image) I can't see any errors (Apache logs / error.txt file). I can't see any spaces within the language files - in fact I've redownloaded the entire EN package just to make sure.. I suspect a broken dependency (even if I have GD.. there must be something else..); disabled entirely caching - need assistance! Back in 2009 I've found trails of such errors on

How to set the config in OpenCart?

风格不统一 提交于 2019-12-05 14:13:14
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. Notice path discrepancy: sgwebgene.com\httpdocs\minufashion\index.php and /sgweb1/minufashion/system

Prevent Wappalyzer from identifying PHP framework

﹥>﹥吖頭↗ 提交于 2019-12-05 11:56:18
I am running an OpenCart application and noticed that Wappalyzer is able to identify the PHP framework used. I checked the headers as well using HTTPLiveHeaders but it doesn't seem to show OpenCart anywhere. Also checked the cookies sent from my application with no success. Does anyone know how to successfully prevent Wappalyzer from identifying the server side stack being used? This is easy to solve, if you know the details Wappalyzer looks for. ;) According to the Wappalyzer Source Code on Github the identification of OpenCart is currently based on the following two things: the route - ?

You do not have permission to access this page, please refer to your system administrator

我们两清 提交于 2019-12-05 10:18:26
I am an administrator, and I have installed an extension of News Letter from: http://www.opencart.com/index.php?route=extension/extension/info&extension_id=12825 When I attempt to use this, it returns the error below: error: You do not have permission to access this page, please refer to your system administrator. Login to admin, go to System > User Group . Edit your admin usergroup (probably Top Administrator group). Add permission to your new extension modules (both Access Permission and Modify Permission ). That's all. Have a nice day :) !! 来源: https://stackoverflow.com/questions/21235293

OpenCart支付宝付款接口(直接到账、担保交易、双接口)

谁说我不能喝 提交于 2019-12-05 09:43:16
下载地址: Opencart支付宝付款接口(直接到账、担保交易、双接口) Opencart支付宝付款接口(直接到账、担保交易、双接口) ================ 重要说明:现在支付宝只有企业才能申请即时到帐 所以本站只能使用担保交易 并在1.5.5.1下测试通过 如有其他问题请向 OpenCart中国网站 获取帮助 或加入 OpenCart中国QQ交流群:282797742, 298317506 安装说明: 1.解压后,覆盖你网站的根目录; 2.在系统货币代码中添加CNY(System->Localisation->Currencies->Insert) Currency Title: 人民币 Code: CNY Symbol Left: ¥ status: Enabled 3.在付款模块编辑“支付宝”信息(Extensions->payment->alipay) 依次填写Trade Type,Security Code,和Seller E-Mail 注意: 1.汇率设置错误会导致支付金额错误,务必认真设置。 2.请勿随意修改程序,将可能出现掉单情况 3.接口安装后,如额外添加其它组件或者模块,请重新检测交易数据是否正常 说明 ================ 支付宝插件,支持三种模式:直接到帐,担保交易,和直接到帐/担保交易 双接口 安装说明 ==============

Custom helper functions in OpenCart

好久不见. 提交于 2019-12-05 08:54:40
Trying to create a custom PHP function within opencart. Basically I need to know if we are viewing the cart or checkout pages. I understand the simplest way to accomplish this is by accessing the route request param. I want to create a re-usable function however that is available site wide. Is this possible? Where would it go? The function looks something like this: function isCheckout() { $route = $this->request->get['route']; //is cart? if($route == 'checkout/cart') return 'cart'; $parts = explode('/', $route); if($parts[0] == 'checkout') return 'checkout'; return false; } Put your helper