We have a problem that only allows one item in the cart at a time, so if someone tries to add another item to the cart the previous item gets deleted. Here is an error log I am getting not sure if it is the problem:
PHP Notice: Undefined index: cart in /home/cluster-sites/2/c/chainvapes.co.uk/public_html/tb_themes/pavilion/catalog/controller/TbController.php on line 14
I am quite a novice when it comes to coding and working on websites in general so help would be appreciated.
Thanks
|
|
I have now found that if I add two of the same products to the cart they will add correctly, its when two different products are added that the problem occurs
|
|
We haven’t ever observed similar issue and cannot reproduce it. Can you please give more detailed description of your environment ?
|
|
website is http://www.chainvapes.co.uk
Problem is as follows
If a product has a required option, once added to the cart, the cart removes any previous added products.
Products without options, or adding the same product more than once works correctly.
Opencart Default Theme, works correctly, no other extensions/modules are installed and conflicting.
Theme has also been tested on a local server running xmapp with a clean installation and database, same problem persists,
Error Log confirms the following: “PHP Notice: Undefined index: cart in C:\xampp\htdocs\oc2\tb_themes\pavilion\catalog\controller\TbController.php on line 14″
Line 14: $cart_session = $this->session->data['cart'];
To be honest, im suprised something like this has not been picked up already considering its a major error.
You can recreate the error by creating two products, give each product a required option, and try to add each product to the cart, you will see the last product will be removed from the cart before adding the next.
My theory is your theme has messed up javascript/jquery handling of the cart cache.
Please confirm and provide a fix for this issue.
-
This reply was modified 3044 days ago by chainvapes.
-
This reply was modified 3044 days ago by chainvapes.
-
This reply was modified 3044 days ago by chainvapes.
|
|
We confirm that this issue exist on your site, but we cannot reproduce it on our server.
We will need the website url, admin and ftp access, so we can check.
You can use hidepost to share private information with the support staff.
Best,
ThemeBurn team
|
|
I have the same bug.
Thanks for the help!
|
|
Here are my details:
Many Thanks
|
|
We have identified the issue. It was a bug with Pavilion + OpenCart 2.1.0.x. We pushed an updated Pavilion version to themeforest – 1.2.9. You can download and apply it as usual.
Best,
ThemeBurn team
|
|
Marked this topic as “resolved”.
BR,
ThemeBurn team
|
|