Questions tagged [opencart-3]

Use this tag for programming-related questions specific to version 3.x of OpenCart, the open source shopping cart system written in PHP. Questions should also be tagged [opencart].

OpenCart 3.x, started by version 3.0.0 release on June 19th, 2017.

The most notable change in 3.0.0 is the new template system requirement. Template files will no longer use the old tpl format now it's using the twig.

Three major changes in the platform:

  • Extension Marketplace Integrated in the Admin
  • Theme Editor
  • Language Editor

Additional new features that are introduced:

  • Multilingual SEO URLs

  • Improved Admin Data Filters

  • Improved & Flexible Reports

  • Statistics

  • Removed FTP Tab

509 questions
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
  • 892
  • 1
  • 12
  • 22
7
votes
1 answer

How to set language through url in opencart

I'd like to change language through url so my site can appear in different languages in search engines. e.g: I'd like the user to change language through a link like this: www.mysite.com/lang=ar I'm using opencart 3.0.2 Currently the user change…
Behiry
  • 453
  • 4
  • 16
5
votes
2 answers

Twig how to display text only at the first page of pagination

I've got OpenCart and theme using twig, how can I display my text only at the first page of the category and do not show it at the pagination pages. My template looks like this {% if description %}
Danyl
  • 61
  • 4
4
votes
1 answer

Install OCMOD file in OpenCart

I've read tutorial in order to create OCMOD file that will add text in home page,but it doesn't display nothing. SET_TEXT_TEST 1.0
Seybamanan
  • 61
  • 2
4
votes
1 answer

How to Login/register into Opencart using OTP (One time password)

I am building an Android Application using opencart as my backend. I want login/registration to be otp based ( no password needed ever). I know how to send sms to user and verify phone number. I am also collecting user email and Name. I need to…
ashfaq.p
  • 4,877
  • 15
  • 30
4
votes
1 answer

Any ways to show more than 3 categories on sitemap page? (Opencart 3)

I am looking for a way to show one more category on a sitemap page (it's 3 by default). I tried to modify sitemap.twig of the template with the following code:
  • {{ category_3.name }} {% if…
  • val_ya
    • 99
    • 5
    4
    votes
    2 answers

    OpenCart 3.0.2.0 - how to display SKU on category & product pages

    In OpenCart 3.0.2.0, I'm trying to get the category & product pages to display the "SKU" variable for each product. The variable is in the database, along with other product data, but for some ungodly reason, OpenCart doesn't have an option to…
    TomJones999
    • 655
    • 10
    • 23
    4
    votes
    2 answers

    Opencart 3 .x SEO Url not working for route=information/contact, route=account/login

    opencart 3 .x SEO URL issue In opencart 3 .x SEO URL Working for product id, category id, information id but for page common/home, account/login, account/account etc not working. i had changed it from htaccess.txt to .htaccess Change from System >…
    Prashant
    • 347
    • 1
    • 2
    • 12
    3
    votes
    1 answer

    Pixel Integration to Opencart 3

    can someone help me about this at OpenCart 3? I need add below iFrames Pixel Code into Confirmation/Thank You Page for order tracking.
    3
    votes
    1 answer

    Opencart - Change header for product page only

    Can I initialize some variable in product controller product.php, then load it to header controller header.php and use it in view header.twig, to load certain information based on this variable? If not, how can I determine whether the page with the…
    3
    votes
    1 answer

    OpenCart 3. Fix Fatal error: Uncaught Error: Class 'Controllerextensionpaymentgcash' not found in storage\modification\system\engine\action.php:71

    I am create new extension payment gateway GCash on my OpenCart 3.0.3.3. I Copy the existing concept of Bank Transfer. But once I Install the new extension i encounter the error. Fatal error: Uncaught Error: Class 'Controllerextensionpaymentgcash'…
    Noyti
    • 79
    • 1
    • 8
    3
    votes
    2 answers

    OpenCart site gets an error when logout -- ERR_TOO_MANY_REDIRECTS

    I'm using OpenCart to build my site now, but I got this ERR_TOO_MANY_REDIRECTS message when I logout. A few things are very weird: after I saw this error page for 1 second, it's redirected to my homepage. this only happens to Chrome, and I don't…
    oc2020
    • 31
    • 1
    3
    votes
    3 answers

    How to show Favicon (My website logo) on every page of my website

    I have a website on opencart 3.0.3.2 and my home page shows my logo on chrome tab. I guess its called favicon. But when I open my product page, it doesn't appear. I have attached the images for clear information. Please look and help me to make…
    3
    votes
    1 answer

    OpenCart3 Order Status coming as Missing Status

    I am using OpenCart version 3.0.3.2. The OpenCart Order Status is coming through as Missing Orders. What causes this issue, and how do I fix it? The below screenshot shows the Order Status messages in context:
    trusha
    • 437
    • 1
    • 3
    • 21
    3
    votes
    1 answer

    OpenCart 3: system cache cleaning, ocmod and twig. I made changes in controller but its not reflecting

    I want to change something related to product attributes in the product details page: /index.php?route=product/product&product_id=100 So I changed \catalog\controller\product\product.php file and saved it. but it's not reflecting my changes even I…
    1
    2 3
    33 34