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

566 questions
0
votes
1 answer

add social media icons to opencart store

I'm developing an online store using opencart CMS. I'm having issues adding social media icons to the online store. I saw an extension that would add the icons to the footer of the site. What I'm looking for is a way to add the social media icons…
0
votes
1 answer

How to get user_id in Open Cart 3?

I'm developing in admin side. And I needs to find user_id. The code $this->user->getId() provides no information. Is there any way to get user id. Thanks.
Pradeep Sapkota
  • 2,041
  • 1
  • 16
  • 30
0
votes
1 answer

free shipping and pickup store in opencart 3.0.2

I am using opencart 3.0.2 and I want set up two pickup stores so customer can choose where pickup goods ...and In "Extentions > Free Shipping" can only choose one geo zone, but I wish to choose multiple geozones. So what files I have to edit in…
0
votes
1 answer

PHP Warning: html_entity_decode(): charset `UTF-8;' not supported, assuming utf-8

I am getting following error when i call to html_entity_decode() to decode web URL. My code: Error: PHP Warning: html_entity_decode(): charset `UTF-8;' not…
jay padaliya
  • 624
  • 6
  • 12
0
votes
0 answers

Add Extra Tab in Products Storefront UI - Opencart v3

I'm attempting to add another tab in addition to the Reviews and Description to the default opencart v3 default products. Demo here to help clarify https://demo.opencart.com/index.php?route=product/product&path=20_27&product_id=41 I've found little…
0
votes
2 answers

How to load model in opencart 3.0?

Uncaught Error: Call to a member function preDemo1() on null in /opt/lampp/htdocs/epos/catalog/controller/prerecorded/preDemo.php:43 Stack trace: #0 /opt/lampp/htdocs/epos/system/engine/action.php(79): ControllerPrerecordedPreDemo->insertData() #1…
0
votes
2 answers

Adding a custom page layout in Opencart 3

How do I add a custom information page to my Opencart 3 template? All I want is another layout, identical to the information/information layout, except I want it to load some different script and CSS and have some script in the body. I have tried…
The Joff
  • 33
  • 2
  • 7
0
votes
0 answers

Access denied for user 'root'@'localhost' (using password: NO) in configuration process

This happened in my configuration process (3/4). I think this is because my database port is 3307 and not 3306. However, version 2.0.1 doesn't ask for port details. If this is the reason my configuration has paused, how do I change this?
0
votes
1 answer

OCMod offset not replacing multiple lines of code

I am new to OCMod and trying to tidy up my Opencart 3.x store modifications. In many places I need to replace multiple lines of code and I can't seem to get offset to work. Following Digicart's solution: Replace admin TPL files with OCMOD I have the…
onefish
  • 95
  • 1
  • 9
0
votes
1 answer

How to load the content of each page in OpenCart 3 after full page load (javascript)?

I would appreciate it if someone can point me into the right direction on this issue. I'm trying to optimize page load speed of my OpenCart project. To do this I want to load the content of each page (product/category , product/search, ...) after…
Kardo
  • 1,658
  • 4
  • 32
  • 52
0
votes
1 answer

Moving Javascripts to Footer Twig Template

I'm creating a theme for OpenCart 3 and I want to move the javascripts embedded in individual twig templates to the footer. I'm coming from the Laravel world where I can simply use @stack('scripts') & then using @push('scripts'). Is there a similar…
secondman
  • 3,233
  • 6
  • 43
  • 66
0
votes
3 answers

Remove AddThis from OC 3.0.2

I'm using OC 3.0.2 and want to remove or be able to modify the AddThis script. I tried changing product.twig - removing the whole AddThis script - and refreshing the cache in OC admin panel - still didn't work. In the stylesheet, I added the class…
0
votes
0 answers

opencart user login page is redirected to a category page?

We have this problem in our opencart 3.0.2.0 when user enters this url https://www.ourstore.com/login it goes to a category page, I didn't change any code, we use Opencart SEO Pack PRO, but I didn't find any connection, I looked in oc_seo_url,…
mfadel
  • 887
  • 12
  • 32
0
votes
1 answer

opencart custom payment extension is not showing in the payment method

I am writing a custom payment extension in opencart 3. I have setup necessary method and the plugin is not enabling. I am trying to enable the plugin automatically after installation it does work yet. These are my code. directory>…
Kabiru Wahab
  • 77
  • 1
  • 13
0
votes
1 answer

Showing data from controller in twig file Opencart 3.0.2.0

I have added this line to catalog/controller/product/category.php $data['string1'] = "string 1"; before $this->response->setOutput($this->load->view('product/category', $data)); and in catalog/view/theme/journal2/template/product/category.twig …
mfadel
  • 887
  • 12
  • 32