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
56
votes
5 answers

onchange file input change img src and change image color

onchange event is not working. What am I supposed to do to get result on same page. I dont want to redirect to any other page to upload image. Is this issue is because of opencart? I dont know if it is correct to write like this in cpanel. I am…
Jill
  • 655
  • 1
  • 6
  • 14
33
votes
2 answers

How to create a custom admin page in opencart?

I want to know how to make a custom admin panel page in opencart. Requires login with the controller - the admin panel does not seem to use the same controller as the normal site. I know how to make custom pages with opencart (but this is not for…
TheBlackBenzKid
  • 26,324
  • 41
  • 139
  • 209
26
votes
8 answers

How can I create custom SEO-friendly URLs in OpenCart?

How can you customize system URLs in OpenCart? For example, I would like http://example.com/index.php?route=checkout/cart to be displayed as http://example.com/cart I know OpenCart provides SEO URLs for products, categories, manufacturers and…
nachito
  • 6,975
  • 2
  • 25
  • 44
26
votes
15 answers

Remove index.php?route=common/home from OpenCart

I currently have User SEO URL's set to Yes in OpenCart Admin. System -> Settings -> Store -> Server -> User SEO URL's So far, all tags and SEO links are working; the command has done the desired effect. However for the homepage and a few other…
TheBlackBenzKid
  • 26,324
  • 41
  • 139
  • 209
24
votes
2 answers

How to make a simple module in OpenCart? Example getting latest posts from Wordpress and showing it in OpenCart?

I am new to this forum and as well as to OpenCart. I need help on creating a module in OpenCart. In my case it will get the latest 5 posts from each category of my WordPress installation and display it in my home page of my OpenCart store. I have…
Developer
  • 477
  • 1
  • 4
  • 5
23
votes
4 answers

How do I create a template for OpenCart?

I am new to OpenCart, and I would like to apply my theme to OpenCart. I know I should not edit the default template directly, but how do I copy the default template files and alter it to apply the theme?
balanv
  • 10,686
  • 27
  • 91
  • 137
22
votes
8 answers

Disable template caching for development in OpenCart 3

I am making changes in my theme templates in OpenCart 3. Due to template caching I have to clear cache every time under "storage/cache" directory. It is very annoying when working and previewing changes frequently during development. Please provide…
Rajat Jain
  • 1,002
  • 1
  • 15
  • 24
20
votes
2 answers

How to programmatically add product to Opencart database

I wonder if there is a special opencart function to add/edit a product to Opencart database programmatically using php/html form on front-end page (such as wordpress "wp_insert_post" function ) or I have to write all my code PHP way (insert into…
usama sulaiman
  • 2,013
  • 4
  • 24
  • 37
19
votes
6 answers

OpenCart resources

I'm trying to develop an understanding of how to build things using OpenCart, but their documentation seem to bit on the conservative side. Do the stackoverflow community have suggestions for reading material. This question is in spirit related…
Kit Sunde
  • 35,972
  • 25
  • 125
  • 179
17
votes
4 answers

OpenCart load Model outside Controller

I'm working on an OpenCart project, that requires a lot of customization. for my project I have to change something in the cart library (system/library/cart.php). I would have to call a custom function that's defined inside the product model…
Ziga Petek
  • 3,953
  • 5
  • 33
  • 43
16
votes
3 answers

jQuery menu not loading PHP child categories

We've had a custom jQuery menu which has worked well on our OpenCart store. However the 2nd level child categories will not display, the PHP isn't correct on either the altered or original menu. Anything with a category with 2 or more depth will not…
me9867
  • 1,519
  • 4
  • 25
  • 53
15
votes
4 answers

Call to undefined function imagecreatefromjpeg() and GD enabled

im working on ubuntu 14.04 LTS with PHP 5.5.9 with GD enabled and i doubled check with but still showing me this msg everytime i try to use imagecreatefromjpeg() Fatal error: Call to undefined function imagecreatefromjpeg() in…
FoXaWy
  • 167
  • 1
  • 1
  • 10
14
votes
3 answers

How can we use opencart events?

I have searched a lot about opencart triggers but didn't find a proper example. In opencart 2.0 there are triggers on which developer can hook function and perform something just like wordpress action and filters i guess. For example…
Adnan
  • 579
  • 1
  • 4
  • 11
14
votes
3 answers

How can I change opencart order email content as our wish? Is it possible?

Can I change the content of order email, which file it exactly refers? This is a confirmation of an online transaction placed with ######. The AuthOnly transaction totaled $171.90 and will be processed to your account. Order Number : 10372 …
Naveenbos
  • 2,532
  • 3
  • 34
  • 60
13
votes
1 answer

OpenCart on nginX

Can OpenCart use SEO URLs on nginX? I understand that in Apache, it creates an .htaccess, but is it capable of automatically managing the URL redirection in nginX?
OC2PS
  • 1,037
  • 3
  • 19
  • 34
1
2 3
99 100