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
10
votes
1 answer

OpenCart: Add left column (contain categories etc) on Default page

I want to add the 'Left Column' (categories etc) in the default page. I see that the left panel is exists on the product pages but missing from the default page. Please see the screen shot. Please suggest.
10
votes
6 answers

How to display products from subcategory to parent category in opencart?

I'm trying to find a solution but still no luck. I want to display all products from subcategories to parent category. I'm using Opencart 1.5.3.1
Aaviya
  • 1,190
  • 1
  • 13
  • 24
9
votes
10 answers

Opencart extremely slow loading speed

I'm running Opencart 1.5.2 on my server and after importing a large number of products I got a massive speed down. I tried installing a vq mod which had to speed up the site... it didn't. Store I know I have some elements on the site which are…
Christian Ivanov
  • 165
  • 2
  • 3
  • 8
9
votes
2 answers

Opencart how to add everything from the language file in php loop

It there a way to read everything from within a language with Opencart? At the moment I have to: Controller $this->load->language('help'); $this->data['heading_title'] = $this->language->get('heading_title'); $this->data['tab1'] =…
John Magnolia
  • 16,769
  • 36
  • 159
  • 270
9
votes
8 answers

opencart 1.5 how to add module in a header

Please some one tell me how can I position modules like slider or banner in header or how can we define additional regions for the modules.
Fahad Ur Rehman
  • 348
  • 1
  • 5
  • 18
9
votes
1 answer

how to display div inside 1 banner - opencart

I'm using opencart for developing my own webstore. I have 2 banners a.k.a 2 images, first shows product on sale, and second 1 shows contact number. Now i want to create div inside first banner, which will include a link to other website, so users…
aiden87
  • 929
  • 8
  • 25
  • 52
9
votes
3 answers

opencart get the product seo url from within admin

I am extending the newsletter area so that I can send out an email with a list of products but I can't find out how to get the seo url for each product? When I do this I actually end up with the admin URL. $this->url->link('product/product',…
John Magnolia
  • 16,769
  • 36
  • 159
  • 270
8
votes
7 answers

Opencart thumbnail size

I've just started to work with opencart so I don't very much. I want to change the thumbnail size of my products to a bigger size. So, I've researched on Google and an answer came up. Go to System>Settings, Edit Store and under the Image tab, choose…
Tiago Castro
  • 835
  • 2
  • 10
  • 23
8
votes
1 answer

Add a Custom Field on Opencart admin 'Order Info' page

I want to add custom field on opencart admin order pages. compare value like if oc_order.order_id = oc_custom_table.order_id then display oc_custom_table.comment on admin order list. display same thing on admin order info page. I added a custom…
Syed Mudabbir
  • 287
  • 4
  • 16
8
votes
5 answers

ZIP extension needs to be loaded in opencart

I am installing opencart 2.0.1.1 on my hosting but during installation step-2 it says Warning: ZIP extension needs to be loaded for OpenCart to work! I did my search on it but everyone is saying that it is server issue. I am really stuck at this…
Husnain Ahmed
  • 135
  • 1
  • 1
  • 12
8
votes
7 answers

opencart 2.0 SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data OK

I looked all over the internet and found no answer. Basically my problem is whenever I try to edit orders and change stores I get the SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data OK in firefox and in chrome I…
user2242141
  • 131
  • 1
  • 1
  • 5
8
votes
2 answers

How to solve a Linux permission issue for opencart

I had used subversion to revert my PHP Opencart project, but I got a permission issue (sample shown below: Warning: imagejpeg(): Unable to open '/var/www/html/opencart/image/cache/data/pavblog/img-blog-620x300w.jpg' for writing: Permission denied…
Yang Tian
  • 95
  • 1
  • 2
  • 4
8
votes
9 answers

Wrap a div around every four divs

I need a little help with a php loop for OpenCart. I need to do is wrap a div around the output of the data every 4 loops. I have the following
.....
I…
HDP
  • 4,005
  • 2
  • 36
  • 58
8
votes
2 answers

Opencart Filters add onclick event to replace the submit button

I would like to add an onclick event to the Opencart filters to replace the submit button which is hidden off the page.. I am presuming that this should be done with javascript/jquery, but implementation is a little beyond me, can you…
Stuart
  • 690
  • 2
  • 9
  • 26
8
votes
2 answers

Difference between product discount and special in Opencart

I have different customer groups and have set special price for each group. When I set special price on a product for a group and login as a user from that particular group in the shop's front-end, I can see the new special price below the original…
user1448031
  • 2,172
  • 11
  • 44
  • 89