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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
26 views

image.php on line 27 [closed]

in this link error not to enter the brands. You can help! The site is made on Opencart. error code Fatal error: Uncaught ImagickException: unable to open file `/tmp/magick-31115bAVd55X7sMnA': No such ...
Erdaulet's user avatar
-1 votes
3 answers
80 views

How to send http request in flutter

session.post( 'http://myopencart.example.com/index.php?route=api/cart/add', params={'api_token':'768ef1810185cd6562478f61d2'}, data={ 'product_id':'100' 'quantuty':'1' }...
Karthikn's user avatar
0 votes
0 answers
9 views

Permission issues when trying to run XAMPP on Mac OS with OpenCart

I have followed the other documentation currently online regarding MacOS and permission issues when trying to run the opencart on the server. I have it working up until clicking the upload link where ...
DevSteph's user avatar
0 votes
0 answers
8 views

OC4, Journal 320rc - product dynamic tabs

trying out OC4 and journal 320rc dynamic tabs. I created a dynamic tab for one of my products, and installed an extension with the code I need. I added the controller module name to the dynamic tab, ...
martin's user avatar
  • 1
0 votes
1 answer
22 views

How to make redirection to another site in OCstore admin?

How to make redirection to another site in OCstore admin? The point is this: I made a customer site. he had a site on ocstore, but it was not beautiful and inconvenient. I developed a new one, and the ...
Alex's user avatar
  • 21
-1 votes
0 answers
31 views

PHP Moneris Library Class not found

I have included moneris payment gateway library to my php file but it is not work. Here is my code which tried with different way. Let me know where am I wrong? This is related to Opencart 4.0.2.2 ...
Vipul Jethva's user avatar
0 votes
0 answers
23 views

How to Access an OpenCart Extension Controller as an OpenCart API

I have developed an OpenCart extension that includes a custom controller located at /upload/extension/myExtension/admin/controller/module/orders.php. This controller handles specific functionality ...
Hashir's user avatar
  • 95
0 votes
1 answer
10 views

How do I point www subdomain to top level domain with Opencart?

I have just moved an Opencart 2.3.0.2 store to a new server. It was previously on a subdomain shop.domain.com and now it is on https://example.com. It is basically working fine. If I go to https://...
Lance's user avatar
  • 17
0 votes
1 answer
57 views

How to enable users to search for products in any language in OpenCart 3.0.3.8.?

I have a multi-language (English, Russian, etc.) website based on OpenCart 3.0.3.8. and the Journal 3 theme. Currently, when using the search bar to search for products, if the user does not input ...
ghost's user avatar
  • 93
1 vote
1 answer
47 views

Open Cart - Filters Disappearing

An OpenCart (3.0.3.6) website was setup some years ago by developers that I am not able to get in touch with anymore... and for some reason more than half of the filters have disappeared on a ...
Виктор Иванов's user avatar
-1 votes
1 answer
36 views

how to create a custom 500 error page in opencart

I want to create a custom 500 ethir offer in opencart for my website. I am using Apache. I have tried htaccess errorDocument method and try catch also but didn't worked for me. If there is any ...
ANANT Tayal's user avatar
0 votes
0 answers
27 views

When I install an extension on Opencart4, iam not able to select the zip file containing theme, iam getting a popup like "localhost says"

When I install an extension on Opencart4, i get an error "Problem with reading JSON", when i tried to install the extension a 2nd try, the error says "File already exist". iam not ...
SRUTHY SANJEEV's user avatar
0 votes
1 answer
39 views

Warning: is_dir(): open_basedir restriction in effect. on Opencart 4

I am trying to install opencart 4 using Pleak panel. While installing I got below warning, Warning: is_dir(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/:/...
SHIDHIN TS's user avatar
  • 1,599
0 votes
1 answer
42 views

Round function problem, show only 3 decimals of a number OpenCart / PHP

I need to extract from normal OpenCart price the TVA and add another TVA with I have succeeded but the problem I get many decimals and I need only 3. I get 14.423123123 and I only need 14.423 My code {...
RCI's user avatar
  • 21
1 vote
1 answer
32 views

Decrease percentage of the price variable - OpenCart

I am interested in one aspect, I want to show price on OpenCart product page with -11.76470588% from final price. Or: I need to display two type of prices. So is there a way? Variable: {{ price }} Or ...
RCI's user avatar
  • 21
0 votes
0 answers
31 views

Opencart | Redirect to checkout success message

I'm using opencart V4. I have new custom order controller. When an user click the create order button, It should create order and redirect to success page. Problem Now I'm able to create order ...
Maria Jeysingh Anbu's user avatar
0 votes
1 answer
14 views

Opencart setup multistore on local machine with Xamp

I've been trying all day to implement a multistore on the opencart platform and I'm not succeeding at all. I followed the instructions on the opencart site but still when I visit another store it ...
Ivan's user avatar
  • 5,141
0 votes
1 answer
108 views

Need help optimizing SQL query in Opencart with Journal theme

I'm working on a project using Opencart with the Journal theme, and I've encountered a performance issue with a complex SQL query. This query is responsible for fetching product data, including ...
Marius Lazar's user avatar
0 votes
0 answers
15 views

Open cart gateway time out after backup restore

I have opencart 3.0.3.8 installed and PLesk Obsdian and ubuntu-20.04-x86_64.. whenever I try to restore a plesk backup the site stops working and generates a gateway timeout error even though the ...
Dr. Khalil Abbas's user avatar
0 votes
1 answer
40 views

Script in Opencart

I hope you can help me with the following, I have tried many ways but I have not succeeded. Basically my need is for the var product_mpn = ""; of the script to automatically read each "...
Backmode's user avatar
1 vote
1 answer
32 views

opencart | View is not showing correctly

I'm new to opencart. I'm adding new menu in admin panel called price Manger. When I click the price manager link, I'm getting empty page link like I attached the screenshot. It doesnot come along ...
Maria Jeysingh Anbu's user avatar
0 votes
1 answer
30 views

OpenCart loading project goes to install/index.php which is NOT FOUND

I have cloned an Open Cart project into htdocs directory of XAMPP and in this cloned project there is a file named config-dist.php and I have changed that to config.php with these credentials: define('...
Peter Amo's user avatar
0 votes
1 answer
125 views

opencart | Print array of objects in twig file

I'm using opencart. There I'm sending array of objects to twig file from controller. Controller $data['crackers'] = []; $results = $this->model_quickorder_order->getCrackers(); $...
Maria Jeysingh Anbu's user avatar
0 votes
0 answers
50 views

Mail probleme on OPENCART 3.x

i use OpenCart for my shop. But i have migrate on one other hosting. I try to add my mail for send registration messsage or other. I have setup corrrectly my smtp but mail not working on SSL / TLS. ...
DEVUltraPRO's user avatar
0 votes
0 answers
36 views

Add custom tab on opencart under order history

I want to add a new under Order history only if my custom module is activated. Can anyone suggest with the logic, how can i achieve it?
Xavier Issac's user avatar
0 votes
1 answer
26 views

Include multiple OCMOD XML files in one ZIP file

If my extension has two OCMod XML files, is there any way to make the opencart extension installer install both of them using a single OCMod ZIP file? The main OCMod is copied as install.xml in the ...
Extreme_Tough's user avatar
0 votes
0 answers
16 views

OpenCart problem checkout/checkout -> payment_address.zone_id

I have one problem, so where's the checkout/checkout I have one selector. There is "selected" automatic one value "Cluj", I want "selected" to appear instead of "...
Bogdan Marian's user avatar
0 votes
0 answers
28 views

Opencart Related Product Interaction

While adding product A, we can add products B, C, D to related products. In the system, it automatically adds product A in product B itself. Here I want to remove this interaction. How can i do it? I ...
deadangel13's user avatar
0 votes
1 answer
41 views

How to integrate product.html with product.twing in Opencart?

I have a file product.html and the accompanying css and js files. I need to integrate it into product.twing, how can this be done? I found a couple of examples in Google, it showed that you just ...
Михаил Чаплыгин's user avatar
0 votes
0 answers
81 views

Opencart 4 create child theme

I have not used Opencart in a while and I am looking to create a child theme of the default Opencart 4 default theme. My goal is that then when there is an update to the platform my customizations of ...
Jayreis's user avatar
  • 265
0 votes
1 answer
29 views

Opencart - Access document class in every where

I stored some data in "catalog/controller/product.php" OC v2.0.3.1 by using $this->document->setSomeData("data"); I need to read the data in "system/library/response....
Amin Gholibeigian's user avatar
0 votes
2 answers
63 views

How to add new method in Opencart 2 - Redis

Why when i try to call $this->cache->keys('*') method in any controller im getting error: Uncaught Error: Call to undefined method Cache::keys() in /catalog/controller/product/category.php When ...
bobi's user avatar
  • 171
0 votes
2 answers
78 views

Opencart error code with exhausted memory

I am currently getting the following error code in my logs regarding exhausted memory. [16-May-2023 11:18:05 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate ...
Graeme Harvey's user avatar
0 votes
2 answers
770 views

Include a liquid snippet inside JavaScript - Shopify

I'm creating a cart-drawer for my Shopify theme. The drawer currently have all the cart line items listed in it with a forloop like so <ul> {% for item in cart.items %} {% render '...
Hiba abdel karim's user avatar
0 votes
0 answers
52 views

Opencart custom smart filters

I have an Opencart 3.0.3.2 installation with the Complete SEO Package installed. I want to implement custom logic for filter urls in the category pages. I want to make the urls SEF (SEO friendly). Now ...
Angel Miladinov's user avatar
0 votes
0 answers
42 views

How to add "customer total order count" to opencart 3 Invoices

I am using opencart 3.0.3.2. With the module in the link below, I can see the "customer's total order quantity" on the order page. but I want to see "customer's total order quantity&...
yusuf's user avatar
  • 1
0 votes
0 answers
58 views

create whatsapp link on opencart to send order details manually

I am creating a WhatsApp link on the order_info.twig page link to contact no. Its like when I click on the contact number order details go to the buyer for COD (cash on delivery) order verification. ...
WhiteDot Sports's user avatar
1 vote
0 answers
165 views

OpenCart 4.0.1.1 in spite of use SEO URLs and rewrite configured always add ?route=product/product to the path

This is OpenCart 4.0.1.1. Mod rewrite is configured and working properly. The .htaccess file is present and works (I've checked it) The "Use SEO URLs" in the Shop settings is set to ON. But ...
Kornel's user avatar
  • 4,214
1 vote
0 answers
146 views

Opencart Enabling multi store URL in sub-directory format

I am trying to implement multistore in opencart. My default site is already hosted in subdomain and it's URL is https://test-opencart-php74-mc.test.net/ and i have added my multistore URL as https://...
Xavier Issac's user avatar
-1 votes
1 answer
145 views

How to get category hierarchy by id | Opencart 3

Im trying to get full category hierarchy by id but its look impossible for some reason this code is getting all category hierarchy Example Database SELECT cp.category_id AS category_id, ...
bobi's user avatar
  • 171
0 votes
1 answer
34 views

Customer Group display on "Print Shipping List" page

I am on Opencart 3.0.3.6. Under the Admin > Sales > Orders I have an option to print invoice or shipping list. Opencart order page print options I want to show "Customer Group" of ...
MorningStar's user avatar
0 votes
0 answers
92 views

opencart 3 save key and value in admin setting

I'm trying to save both key and value in the setting table but only the value get stored here is my code in admin setting.php controller if (isset($this->request->post['config_dual_listbox'])) { ...
mahmoud hamdy's user avatar
0 votes
0 answers
52 views

Opencart 3.0.3.8 default theme with flex

I want to add this code on my Opencart 3.0.3.8 with default theme but is not working corectly... I use for this code "HTML Content Module" <section class="benefits"> ...
CiocMario's user avatar
0 votes
0 answers
34 views

Unknown process along the path /var/www/vhosts/domain/httpdocs/pitcher

Unknown process along the path /var/www/vhosts/domain/httpdocs/pitcher plesk + opencart What could it be? First I had unknown process along the path /var/www/vhosts/domain/httpdocs/testfile Reboot, ...
Дима Дима's user avatar
0 votes
0 answers
210 views

Cart quantity buttons and function update

Opencart 3. Each page in header has a popup cart. There are quantity buttons in the cart for each item added +/-. Can't figure out how to interact with the function update in file common.js so that ...
Даша Новикова's user avatar
0 votes
0 answers
192 views

Product Filter by product Tag in Advanced Search of opencart 3.0 Jornal theme

How to apply on Advanced Product Filter in the Journal Theme Opencart 3.0 by changing the code of the admin/view/javascript/journal3/dist/main.js var g = o.get("preset"); ...
Diogo Amorim's user avatar
0 votes
0 answers
29 views

htaccess 2 different RewriteRule not working together

I have 2 different RewriteRule for 2 urls like this, http://localhost/cartz/mycity/ http://localhost/cartz/index.php?route=common/home RewriteRule ^([^?]*)/([^?]*) index.php?city=$1&_route_=$2 [...
Prabhakaran's user avatar
  • 3,920
0 votes
0 answers
45 views

How to connect facebook business / marketplace to opencart 4

I have tried to upload the file which I downloaded directly from opencart marketplace, 1st it gave an error of missing install.json file. when I tired to upload again, it is giving error that file is ...
Syed aQ's user avatar
1 vote
0 answers
275 views

opencart-3.0.3.2 & images with system url instead of url by domain

I have the machine on windows 10, wamp with alias, OC 3.0.3.2 and misunderstanding of how the network works from a programmer's point of view. Uploaded image have a url like a "C:\wamp64\cgi-bin\...
dmitriy vdovin's user avatar
0 votes
0 answers
137 views

How to remove Expired Session files thru Cpanel cron job?

I am hosting my site on shared hosting plan. I have edited php.ini file to preserve cart contents & session data for 30 days in custom folder as below but after 30 days the expired session files ...
Vssoft's user avatar
  • 19

1
2 3 4 5
107