Questions tagged [opencart]

Free open source shopping cart system written in PHP and based on MVC architecture. Questions regarding third party extensions, templates, or how to do what in administration should not be asked here - use the developer's support, OpenCart support team or OpenCart forums for this kind of question.

OpenCart is a free open source shopping cart system written in PHP and released under GNU GPL License.

The currently active versions of OpenCart are very different in how they are structured, so please be sure to indicate your version number when asking a question on StackOverflow.

These are minimum requirements needed for OpenCart:

  • Web Server (Apache suggested)
  • PHP (at least 5.4)
  • cURL enabled
  • Database (MySQLi suggested)

Other required, optionally required or preferred settings:

  • register_globals OFF
  • magic_quotes_gpc OFF
  • file_uploads ON
  • session_auto_start OFF
  • mcrypt library loaded
  • zlib library loaded (for output compressing)

There is a large number of community made 'extensions' that expand OpenCart, both paid and free.

There is also an active & strong user support base, with forums for discussions.

You may contribute to the project using the GitHub repository

There is also a frontend demo and backend demo of OpenCart - login with demo/demo.

You can download any version of Opencart from this url

You can also browse the extensions from this url

5340 questions
13
votes
2 answers

OpenCart: Where is the div for the drop down header cart info?

I am trying to style OpenCart but am having difficulty finding which TPL file holds the div that appears when you click the Shopping Cart icon in the header (the 'mini cart' that slides down - it allows you to view what's in your cart without going…
MeltingDog
  • 14,310
  • 43
  • 165
  • 295
13
votes
2 answers

Subscription of products on AceShop (Joomla extension for OpenCart)

I am trying to modify AceShop module (extension OpenCart in Joomla) such that subscription facility is provided to users on some specific products. The default functionality of AceShop is straightforward one-time order, but I want my shop to have…
Waleed Farrukh
  • 205
  • 1
  • 10
12
votes
4 answers

3rd Level JQuery Dropdown Not Displaying

Trying to get 3 level dropdown working. In Opencart I have been using a third party repsonsive menu which works great. Demonstrated and available here http://cssmenumaker.com/menu/responsive-flat-menu However, Opencart doesn't support 3 level…
me9867
  • 1,519
  • 4
  • 25
  • 53
12
votes
2 answers

Can't access open cart Admin from iphone

I have installed opencart on my server and everything seems to be working fine except for the fact that I can't access the admin dashboard through my iphone. It works fine on my PC, on a Mac, and on an android Phone like a Galaxy note 4. I can't…
Myy
  • 18,107
  • 11
  • 37
  • 57
11
votes
2 answers

opencart php custom page without using the "information" feature

I want to create a custom page in opencart. I know I can put a custom page in the information section using the admin area however what I would like is a controller which points to a few other pages. I dont fully understand how to do this. In…
jaget
  • 2,149
  • 6
  • 21
  • 29
11
votes
2 answers

How can I defer or async javascript in OpenCart

I have OpenCart application. Javascripts are loaded in settings.php inside path '/catalog/controller//settings.php with similar codes as: $this->document->addScript('catalog/view/theme//lib/lazy/jquery.lazy.1.6.min.js'); …
Ritesh Kumar
  • 2,183
  • 2
  • 20
  • 32
11
votes
2 answers

Twitter Bootstrap Tabs Using foreach On Opencart

I want change tabs on opencart (admin view) with twitter bootstrap 3.0, the code following : catalog_form.tpl
GeekToL
  • 1,815
  • 1
  • 24
  • 46
11
votes
3 answers

How to find route of a current page?

Is there a line of code that I can use in the controller that determines the route of a current page? For example, I would like to find the route of the page with SEO url https://example.com/desktops (this should return the route…
user1448031
  • 2,172
  • 11
  • 44
  • 89
11
votes
2 answers

Enable SEO URLs on multi stores and subdomains on OpenCart using Nginx

I am trying to get SEO URLs working across multi-stores in OpenCart. I have two stores in the admin http://www.shop.com (default) http://m.shop.com SEO URLs work for http://www.shop.com But they return a not_found.tpl (the 404 page) for the…
TheBlackBenzKid
  • 26,324
  • 41
  • 139
  • 209
11
votes
2 answers

Opencart send email in custom Script

I have a script in my opencart, made by myself, and want to make it send an email, but I think that when I try to get email parameters they return null. Here is my code: $email_to = "somewhere@example.com"; $config = new Config(); $mail…
Sunita
  • 319
  • 1
  • 2
  • 14
10
votes
1 answer

URL Rewriting OpenCart Products SEO

I'd like to like to rewrite my product url's from my opencart webshop. Opencart itself has a seo implementation which really sucks. I've updated the seo implementation to be able to use the same keyword for multiple categories see: Opencart…
Baklap4
  • 3,914
  • 2
  • 29
  • 56
10
votes
2 answers

Opencart - Search regardless accent

It had been written many times already that Opencart's basic search isn't good enough .. Well, I have came across this issue: When customer searches product in my country (Slovakia (UTF8)) he probably won't use diacritics. So he/she writes down…
10
votes
4 answers

Why does the OpenCart SubTotal and Order Total are appear twice?

I have OpenCart installed. The cart page shows Total and Subtotal twice. It will not show the final Total too. The gift voucher is also appearing even if a customer has not added it to their cart. Is their a solution? Do I need to edit my settings…
Naveenbos
  • 2,532
  • 3
  • 34
  • 60
10
votes
4 answers

Get info about current user in Opencart

I have been work on a module with Opencart and I was wondering how I can get current user information. I was thinking something like this: $this->getuserid();
user1438910
10
votes
9 answers

Opencart Fatal error: Call to a member function get() on a non-object

Trying to move from local host to new server. Fresh install worked fine, no problems. When I uploaded my files mydomain.com/admin comes up with a white screen and mydomain.com produces this error: Fatal error: Call to a member function get() on a…
tora0515
  • 2,479
  • 12
  • 33
  • 40