1,158
questions
0
votes
0
answers
79
views
My bootstrap 5.0 scrollspy is not scrolling the container in which anchor tags are when the children are scrolled
i have tried all possibilities and could not make the scrollspy work for my particular case. the issue is that the container in which my anchor tags are which point to the children has a fixed height ...
0
votes
0
answers
24
views
remove vqcache and opencart 2.3 crash server error 500
i try to restore backup vqcache but still crash, please help!
index.php
<?php
/*
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
*/
// Version
define('...
0
votes
0
answers
23
views
Retrieving items in cart
I'm trying to retrieve the items in the usercart from firebase. It's in this format :1231352385:2. The getitemsquantity() is retrieving the count.
I need to use in the firebase query using whereIn, ...
1
vote
1
answer
50
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 ...
0
votes
1
answer
127
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('...
0
votes
1
answer
32
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....
0
votes
2
answers
108
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 ...
0
votes
1
answer
28
views
How to make product block for full height in Bootstrap 3
How to make this code to be in full height (cms is OpenCart 2.1 and is using Bootstrap 3)?
<div class="row equal">
<div class="product-layout product-grid col-lg-3 col-md-4 ...
0
votes
1
answer
213
views
Opencart 2.0 - PayPal Commerce Platform card payment fields not showing
I have PayPal Commerce Platform module installed on OpenCart 2.0. But during checkout, if the user wants to use card payment, the card form fields are not showing.
Below are image examples
No Field ...
0
votes
1
answer
125
views
Export products in Json format in two languages Opencart
I created this in the controller to export the products in json format, but I only get them in 1 language, I need them in two languages What could I do in this case I need help!
<?php
...
0
votes
1
answer
360
views
How to load a controller class from admin to controller class in catalog
How to load a controller class from admin to controller class in catalog
/admin/controller/tool/getip.php
load function ip() from getip.php in: /catalog/controller/account/account.php
getip.php
class ...
0
votes
0
answers
182
views
Opencart contact form sends data via get method instead of post
I am using Opencart version 2.1.0.1. There is nothing changed in the contact form much. The contact form is sending the data in the GET method but it is supposed to send the data in POST method as the ...
0
votes
1
answer
62
views
If Value is Zero Print Click To Call Opencart 2.0.3.1
I'm working OpenCart version 2.0.3.1 and I'm trying to print a click to call for price and hide to "Add to cart button" if initial price is set to '0.00' I cant seem to figure out the issue ...
1
vote
3
answers
199
views
How do I create dual-coloured rings in CSS?
How do I do the rings in this design in CSS and/or JS?
The number of icons is dynamic.
First icon is all grey
Icons in-between a mix of grey and blue
Last icon is a blue gradient
It is a ...
1
vote
0
answers
127
views
Get full image URL while exporting product in opnecart
While exporting product data to excel from opencart I get only half URL of Image. For example, "//catalog/New_SG/EW/sg-reliant-xtreme-english-willow-cricket-bat-size-6-30010731.jpg"
Whereas ...
0
votes
1
answer
464
views
OPENCART: Use Duplicate of Contact Form in Another Page Not Working
I followed the tutorial here on how to create a duplicate contact form. I created the 3 files needed. This is working as expected when I go to the url information/form. However, I can't make it work ...
0
votes
2
answers
454
views
formtarget ="_blank" not working for button in chrome
I am working on an opencart website, it has a button
which should open an invoice in a new tab.
When the button is clicked it opens the invoice is new tab as well as the current tab in the chrome.
...
0
votes
1
answer
65
views
How Do I Stop Customers Clicking Ajax Form Button Twice?
We have an opencart site (v 2.0.3.1) and are using the worldpay payment module.
Customers are clicking the checkout button at the end of the process more than once before the page can redirect them to ...
0
votes
1
answer
181
views
How to add 2 modifs to the same file in OCMOD file for opencart 2.3
I want to add a small snipet of script above a block of script and another one under the same block in the same file. (I can't do a replace because the block is also modified by another extension).
If ...
0
votes
1
answer
96
views
OpenCart - Cannot pass data between MVC
I'm trying to pass some data from database though product controller and finally on product view.
The problem is that i tried many different situations but nothing worked.
In a few words, i want to ...
1
vote
1
answer
515
views
Opencart- order emails and enquiry form email ending up in admin's junk mail folder
New order emails and enquiry form emails, both ending in admin's spam/junk folder. I am not able to rectify it. Using 'mail' configuration instead of 'smtp' in the console. Have put '-F' in front of ...
0
votes
2
answers
230
views
Opencart JS Validation on guest checkout
I have added a few extras fields to guest checkout and some of them need validation. As, HTML input "required" doesn't appear to work in the "panel collapse " environment and the ...
0
votes
3
answers
2k
views
How can i fix Cumulative Layout Shift (CLS) errors in search console
i have a website indiabazaaronline.com that shows Cumulative Layout Shift(CLS) issue >.25 errors in google search console. Due to this we recently lost 50% organic impressions and click. i have no ...
0
votes
1
answer
179
views
How can I add product to cart programmatically in opencart verion 1.4.9.4
I am customizing my clents store in opencart 1.4.9.4. I want to add a product dynamically to cart. I tried using
$this->cart->add($giftvoucher], $quantity, $option);
But it is not working
0
votes
0
answers
119
views
Disable Option Values Opencart 2.1
Is it possible to make some feature like Disable option values for all the products?
For example Some of my product have Red, Yellow, Green colors in options. When I dont have Red color, I need to ...
0
votes
1
answer
438
views
Warning: Illegal string offset 'quantity' Opencart 2.1
Im trying to resolve this question about 5 hours, but I cant.
The problem is I have an error
"Warning: Illegal string offset 'quantity' in C:\laragon\www\opencart\system\library\cart.php on line ...
0
votes
1
answer
100
views
Getting alert error trying to install opencart plugin
I have encountered a problem. When I try to install additional module or plugin to opencart I keep watching that type of error. When I go to 294 line of code nothing seems to be problematic there, it'...
0
votes
0
answers
198
views
Check condition in checkout in Opencart 3.0?
I am a beginner in OpenCart and Currently, I am using journal theme and I want make some condition that the customers don't allow to checkout if the shopping amount is less than 1000. Is this possible ...
0
votes
2
answers
548
views
Opencart OCMod how to apply modifications to all .php files in all directories
When I need to apply modifications to one file, I use the code below:
<?xml version="1.0" encoding="utf-8"?>
<modification>
<name>Modification name</name&...
0
votes
1
answer
126
views
Add Tax to shipping cost on opencart(2.0.3.1) order email (client and admin)
I would like to add the handling fee if the text handling fee exist to the order's shipping weight cost. I would also like to avoid editing any controller. How can I do this with just editing the ...
0
votes
1
answer
260
views
How to add custom new test to a page in opencart 2.0.3.1 with journal 2 theme
I want to add custom text to product listings (category, manufacturer, search etc)
I add all bellow for example in search.
in catalog/controller/product/search.php inside index() function and after $...
0
votes
0
answers
246
views
Can not get input value from controller, Opencart:3
i am converting a .tpl module to opencart3(.twig), which is done. I have placed all other (model and controller) files in their location too. But i am getting a strange error, which is i can not get ...
1
vote
1
answer
298
views
Failed to open stream error for Images in my Opencart website Error Log
I have a running OpenCart website (OpenCart version 2.3) which is working fine. I decided to check the error log file and discovered it has become very large in size (about 800MB). I had to delete it ...
0
votes
0
answers
254
views
Upgrade Owl Carousel, Camera Slider in Opencart:2.3.0.2
i updated my files of Owl Carousel v.1.3.2 to new version v2.3.4 to enable new features. after replacing files other product carousel modules working good. But Camera Slider module is not working, ...
2
votes
3
answers
332
views
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/*/...
2
votes
2
answers
405
views
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 ...
4
votes
1
answer
4k
views
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? ...
1
vote
1
answer
2k
views
HTMLPurifier is not removing script-tag
I have tried a lot and tired now. So want to know why this code(HtmlPurifier) is not removing script tag.
This is my opencart 2.1.0.2 controller->register.php
$custmer_data = $this->...
0
votes
0
answers
217
views
How to correctly hook CIDRAM to OpenCart
Due to an growing invasion of registration bots on an OpenCart website, I have decided to install CIDRAM which seems to be a robust solution to try reducing this kind of nuisance.
I though I have ...
4
votes
1
answer
124
views
How to reduce the number of fields requested during registration? | OpenCart 2
Is it possible to adjust / remove entry fields on registration page?
Image:
2
votes
1
answer
628
views
using php tags inside opencart html module
I need to call some php vars inside a html module on opencart, but when i use <?php ?> my page renders as <!--?php ?-->.
is there a way of doing this using the default HTML module of ...
2
votes
1
answer
375
views
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 ...
2
votes
1
answer
257
views
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 ...
1
vote
0
answers
34
views
How to change keywords in open cart?
I changed the Metatag Description & Key words in the admin side of OpenCart.
When I viewed the page source, the values of those fields are still the old values and hadn't changed.
How can I change ...
1
vote
1
answer
107
views
Changes to the code - I do not see on the site
Got a question. For example, I change the code on the page
/catalog/view/theme/nextdef/template/extension/module/latest.twig
, or rather add a handler to the button:
<i class = "fa fa-heart" ...
1
vote
1
answer
965
views
Replace Homepage background image used in Journal Theme 3.x for Opencart 2.x?
I'm new here and also new to OpenCart. I just installed OpenCart 2.3.0.2 version on local hosting using Xampp. I then installed Journal Theme 3.0.2.46 (Demo 4) (https://www.journal-theme.com/4/) ...
0
votes
0
answers
162
views
opencart 2.0.3.1 quantity plus minus NaN error
I have a opencart 2.0.3.1 store and got coding added from a opencart extension but am getting NaN error when click on the plus button
a link to jsfiddle is https://jsfiddle.net/b9L6tmq1/. I had to ...
0
votes
1
answer
54
views
How to add modules in cart page [closed]
I'm using opencart 2.3.0.2,
i want to add featured product in cart page,
in admin layouts there is no cart page layout to add.
how to add modules like featured product, related product etc., in ...
-1
votes
1
answer
263
views
How to improve this password validation from OpenCart?
Below is the default code from Opencart 2.3.0.2 on github. Its found in approx 5 php files. Currently the password requirements is min 4 and max 20 characters. I want to make it 8 min, one uppercase, ...
1
vote
1
answer
552
views
Opencart Version 2.0.3.1, Review button on product page not working
I wish to add a review function in my old e-commerce website. However, the "write a review" button does not seems to be working, it will not bring me to a review page; seems like a broken ...