opencart

Is it possible to have PayPal standard expand the 'Guest Payments' tab by default?

社会主义新天地 提交于 2020-01-23 02:05:14
问题 I am using PayPal Standard to process orders. I have the "Paypal Account Optional" feature set to on, which makes it possible to accept payments from customers who dont have paypal accounts. OpenCart is the shopping system that i am using. This is the screen that is displayed when a customer want to purchase goods: When you click the "Don't have a PayPal account?" link, the tab is expanded: Is it possible to have this tab expanded by default, perhaps through the code that is sent to the site

Opencart 3.0 — Display All Products from Category by ID on Category Page

一曲冷凌霜 提交于 2020-01-22 02:34:10
问题 I switched over to Opencart 3.0.. Not to fond of the .tpl to .twig changes. Anyways, I have been trying, to no avail, to display all products from a particular category on another category page. I found this foreach loop: {% for product in products %} Which I imagine reads <?php foreach ($products as $product) { //do something } ?> I tried adding the Loop to the path: catalog/view/theme/*/template/product/category.twig but it only shows the products from the current category page id I am

Opencart Undefined index Errors in product

本小妞迷上赌 提交于 2020-01-16 08:14:29
问题 I am using OpenCart 1.4.9 and I have been dealing with Undefined index Errors in product.php recently, I suspect it happens every time the user is creating/input a new product on the dashboard. How to fix these errors because it makes the server resource overload, my site resource usage peaked at 91% sometimes 100% on the cPanel? Here is the model file. Here is the controller file. Here are the errors I am getting: PHP Notice: Undefined index: model in /home/xxx/public_html/admin/controller

Opencart Undefined index Errors in product

…衆ロ難τιáo~ 提交于 2020-01-16 08:14:08
问题 I am using OpenCart 1.4.9 and I have been dealing with Undefined index Errors in product.php recently, I suspect it happens every time the user is creating/input a new product on the dashboard. How to fix these errors because it makes the server resource overload, my site resource usage peaked at 91% sometimes 100% on the cPanel? Here is the model file. Here is the controller file. Here are the errors I am getting: PHP Notice: Undefined index: model in /home/xxx/public_html/admin/controller

Rewrite single and consecutive underscores to dashes

这一生的挚爱 提交于 2020-01-15 12:33:31
问题 I'm trying to rewrite URLs with underscores in to dashes for a shopping site. Product names currently have underscores for spaces. A typical URL is as follows: http://test.local/category-name/product_name_a My current .htaccess is as follows and successfully rewrites this to: http://test.local/category-name/product-name-a RewriteEngine On RewriteBase / #Rewrite Underscores to dashes RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^_]*)_([^_]*)$ $1-$2 [L,R=302,NE] RewriteCond %{REQUEST

VQmod not working for open cart admin

谁都会走 提交于 2020-01-14 18:51:52
问题 I am having the most frustrating issue with VQmod. I moved my OpenCart store from a Godaddy VPS to Rackspace's Cloud Sites. The move went fine and everything works properly except the VQmod's on the admin panel. None of them load. No errors in the log files, no admin cache files in the cache dir, no php errors. Things I have tried: Cleared all cache Changed admin folder to 755 reinstalled VQmod tried both manually and using the installer with fresh index.php files Removed all XML files and

How to add google adsense code in opencart project without using extension?

半腔热情 提交于 2020-01-14 05:41:09
问题 I am trying with module but it doesn't work. how to add in pages. I am new to opencart . 回答1: Navigate to that specific page, should be found under Catalog > View > Theme > {page you looking for) . Check within the code for the section you would like to add it to and paste it in. Remember to backup the files before you make changes to the core files. 来源: https://stackoverflow.com/questions/36443220/how-to-add-google-adsense-code-in-opencart-project-without-using-extension

OpenCart - How do you increase the Admin session timeout?

回眸只為那壹抹淺笑 提交于 2020-01-13 18:15:08
问题 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 回答1: This can most likely

Opencart 1.5.1.3 display special price with start and end date on product display page

不想你离开。 提交于 2020-01-13 06:53:07
问题 I am working on Opencart 1.5.1.3 On the product display page, it's displaying the Active Special Price and also the Normal Price with a line in the middle. For all special prices available for a product I want to display: the special price with its start and end date I tried my best by changing data in the tpl file and also in the module php file, but it didn't work. How can I do this? 回答1: I can't give you the exact code because I don't want to change my own installation, but you would need

OpenCart: Fatal Error: Class 'Mysqli' Line 7

只谈情不闲聊 提交于 2020-01-11 13:07:07
问题 I have problem for installation OpenCart in cPanel with Softacolous, when I'm finished for install and during open the site I have message: Fatal error: Class 'mysqli' not found in /home/radiance/public_html/shoukhin/system/library/db/mysqli.php on line 7 ==Info:== OpenCart: Version: 2.0.3.1, 1.5.6.4 Release Date: 29-05-2015 Anything more to solve or get ans? Anyone there to solve it? 回答1: Please install mysqli into your centos server . To install mysqli using EachApache: Login to WHM as