Questions tagged [opencart2.x]

Opencart version 2.0.0.0 and above, released 2014-10-01

OpenCart 2

Opencart Commerce version 2x (version 2.0.0.0 and above)

This is the latest release of the OpenCart PHP and MySQL driven ecommerce platform. OpenCart supports Multi-Channel ecommerce with availability for multi currecy, language, template, domain and device (tablet, web and mobile). There is also modules for kiosk, vendors such as Amazon and eBay and also Google and Apple App Store.

New features include:

  • Fully responsive design - both the admin and the front-end
  • OCmod - virtual file modification. Redesigned admin area and front end - a marketplace module enviroment
  • Support for CDN, cloud computing and enterprise driven stores with high volume and transaction rate

  • More payment gateways included in the standard download.

  • Event notification system. Custom form fields.

Although 2.0 is now released we advise all existing store owners to check that any 3rd party modules they have installed will work with the latest version. If you already have a working store we always advise a backup is done and you test in a new environment before you update!

You can download any version of Opencart from this url

You can also browse the extensions from this url

1162 questions
2
votes
3 answers

Check in header if 'thank you' page - Opencart 2

In OpenCart 2, I am editing the appearance/php of the header only in the "success"/"thank you" page (catalog/view/theme/*/template/common/success.tpl). So, in catalog/view/theme/*/template/common/header.tpl I want to do something like: if(…
2
votes
2 answers

Display units of measure for a product

Good day. Please help me to display units of measurement for goods. OcStore 2.3 engine. By default, units of measurement are not displayed next to the product, they helped me to display them on the product page in this…
2
votes
1 answer

How do I add comments to OpenCart Error log?

In Laravel, I can use the log() command to add comments to the log file (which helps me debug), something like this: $var = 'this is a variable'; //some other code goes here log::('Is $var a null? Here is the value '.$var); I can then check in the…
Jaime Dolor jr.
  • 685
  • 1
  • 9
  • 21
2
votes
1 answer

using php tags inside opencart html module

I need to call some php vars inside a html module on opencart, but when i use my page renders as . is there a way of doing this using the default HTML module of opencart 2.x
Rui Leming
  • 59
  • 8
2
votes
1 answer

Opencart: add module/html inside .TPL

Is there a simple way of calling a module (in this case module/html) inside a div of the TPL, in WordPress we could use shortcodes to do that, is there any way to do something like that in OpenCart without having to create a new layout position…
Rui Leming
  • 59
  • 8
2
votes
1 answer

Opencart admin page 301 Moved Permanently

I have opencart Version 2.0.1.1 and recently i have noticed a strange error. when i visit the sale/order page it is showing a popup with the error: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
2
votes
1 answer

Opencart update modifications folder files

I'm newbie to opencart, i changed some controllers and models in system/storage/modifications folder. In opencart admin side when i install new extensions and then goto modifications >> clear cache, the files i changed in…
ayyanar pms
  • 131
  • 1
  • 2
  • 11
2
votes
1 answer

In which .php file does the "subtract stock" happens after a successful order?

I am using Opencart v.2.1.0.2 and I am trying to find the .php file where the "subtract stock" happens after a successful order. Can anyone please help? Thank you!
kanenas
  • 841
  • 1
  • 19
  • 35
2
votes
1 answer

Set Product option default value:opencart 2.3.0.2

How can i set product radio option's default value in opencart? Is there any way we can set the first option value to be default. If not, then what will be the proper way to set in controller, view?
Anmol singh
  • 161
  • 9
2
votes
1 answer

Getting an "unexpected '<' " error while sending post request in opencart-3

while using api for opencart-3x i am not been able to generate api_token. I used Postman for sending post request but I am getting an "unexpected '<'" error in JSON format.Also I am using xampp local server. I have searched every video , blogs…
2
votes
1 answer

Open "Terms & Conditions" link in a new tab on checkout page

The "Terms & Conditions" link shows entire page in a popup window on checkout page of Opencart 2.3.0.2. I want it to be opened in a new tab. I tried but failed to achieve it. I'm usign Porto Theme. Any help would be appreciated.
user3282626
  • 99
  • 1
  • 10
2
votes
0 answers

how to post data from method of conroller in opencart2.x this example?

i want to create new method in class ControllerCatalogMproduct in opencart2.x but i dont know do send data from mproduct_form.tpl when click save button to controller .
2
votes
1 answer

Notice: Use of undefined constant GLOB_BRACE

Getting Notice and Warning Bellow Notice: Use of undefined constant GLOB_BRACE - assumed 'GLOB_BRACE' in /var/www/html/opencart/upload/admin/controller/extension/extension.php on line 2 Warning: glob(): At least one of the passed flags is invalid…
Parnit Das
  • 339
  • 3
  • 5
  • 18
2
votes
1 answer

Display block HTML only on main page?

I tried to modify home controller adding new variable: $data["header_home"] = true; Then I try to check this in header.twig tetmplate like as: {% if header_home %}
Home
{% else %}
Not Home
{% endif %} When I open home…
OPV
  • 1
  • 16
  • 57
  • 124
2
votes
1 answer

Mixed Content: The page at 'url' was loaded over HTTPS, but requested an insecure image in Opencart

I have one issue in my Opencart page. I recently noticed that green bar into browser is not active, and checked my console for errors. i see this warnings: Mixed Content: The page at 'siteurl' was loaded over HTTPS, but requested an insecure…
DrMTR
  • 423
  • 10
  • 28