Shopping Cart Problem

ThemeBurn SupportForumsOpenCart ThemesPavilion OpenCart ThemeShopping Cart Problem

This topic has been marked as resolved.

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

January 8, 2016 at 3:33 pm #44319

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

January 8, 2016 at 11:07 pm #44327

We haven’t ever observed similar issue and cannot reproduce it. Can you please give more detailed description of your environment ?

January 13, 2016 at 11:30 am #44358

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 3035 days ago by  chainvapes.
  • This reply was modified 3035 days ago by  chainvapes.
  • This reply was modified 3035 days ago by  chainvapes.
January 13, 2016 at 11:19 pm #44369

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

January 14, 2016 at 4:59 pm #44382

I have the same bug.

Thanks for the help!

January 16, 2016 at 7:17 pm #44413

Here are my details:

Many Thanks

January 18, 2016 at 7:37 pm #44434

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

January 20, 2016 at 5:32 pm #44485

Looks great. Thank you.

January 20, 2016 at 5:54 pm #44486

Marked this topic as “resolved”.

BR,
ThemeBurn team

January 25, 2016 at 11:09 am #44536
Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.