Prestashop: Module ps_shoppingcart don't work

Created on 27 May 2020  路  31Comments  路  Source: PrestaShop/PrestaShop

Hi,

I have a problem in my cart.
When I click the add to cart button, the units added to the cart do not appear at the top of the page. It only appears after refreshing the page or if we change the page.
In Module Shopping cart, Ajax option i have activated.

image

Steps to reproduce the behavior:

Go to product page
Click on add cart
look to cart on top the page
Not update the units on cart

https://drive.google.com/file/d/1wBfO-8ChxdpzFN0SN6AtH_dUXGcWfpkM/view

PrestaShop version: 1.7.6.5
PHP version: 7.2.22

FO No change required ps_shoppingcart

Most helpful comment

@arouiadib Thanks for your feedback !

@JorgeNogueiraLFMPro what bout you ? Did you deactivate module groupeinc ?Is it a possibility to fresh install a shop ?

All 31 comments

Thanks for opening this issue! We will help you to keep its state consistent

Hi @JorgeNogueiraLFMPro ,
thank you for your time, could you please tell if it is similar to https://github.com/PrestaShop/PrestaShop/issues/16665?

the drive link doesn't work for me :(
regards,

Hi,

Not similar to #16665.

Look now the video.

https://drive.google.com/open?id=1Cr93h0JhQIcyPwfAc5ygHiCg6tXVjlQU

Hi @JorgeNogueiraLFMPro ,
Can you enable debug mode and add a product to cart ?
Let me know if there are any errors ?
Also, what theme are you using ?
Thanks!

Hi,
I enable the debug mode but when i click on the add to cart button nothing happens, it stays on the product page and shows no error. It's like the button doesn't have a defined path.

Theme: child_classic Version 1.0.0

Can you check the console of your browser also ?

Look the image.

image

Can you deactivate module nrt popup newsletter ?
As well as deactivate your overrides. Folder override becomes _override.

I disabled the module and overrides. And the page stops working.

image

Can you enable debug mode ?
Advanced Parameters > Performance > Debug mode YES

Or in config/defines.inc.php
define('_PS_MODE_DEV_', false);
becomes
define('_PS_MODE_DEV_', true);

Done!

Ok, do you have access to your page now ? What is the error shown ?

I can't acess to my page now.

image

Can you go into your module folder and comment module psograph ?
psographe becomes _psograph

Done!

so ? How's the page ? is it working ?

Page it's working. But button no.

Did you do a migration or is it a fresh install ?

New installation.

If you have a module Group Inc, comment it.
Capture d鈥檈虂cran 2020-05-28 a虁 15 56 45

Yes i have this module.

Then comment it and go back to your page please

Look the errors

image

Have you deactivate the module groupinc ? If no, please do it.

Also, this is a bug tracker platform, not a support platform. If you need personalized help, please contact the support here : https://addons.prestashop.com/en/388-support
Thanks!

Hi,

Not similar to #16665.

Look now the video.

https://drive.google.com/open?id=1Cr93h0JhQIcyPwfAc5ygHiCg6tXVjlQU

I see the problem now with your video.

I have installed a fresh 1.7.6.5 and can't reproduce it. The top of the page is refreshed correctly via AJAX with the number of total units.

Thanks.

@arouiadib Thanks for your feedback !

@JorgeNogueiraLFMPro what bout you ? Did you deactivate module groupeinc ?Is it a possibility to fresh install a shop ?

Hello,

your issue seems to be a duplicate of #19733.
Can you confirm this is the same bug you're facing ?

@arouiadib Thanks for your feedback !

@JorgeNogueiraLFMPro what bout you ? Did you deactivate module groupeinc ?Is it a possibility to fresh install a shop ?

I disabled the module and the cart still does not update.

I don't have to do a new installation right now.

Hello,

your issue seems to be a duplicate of #19733.
Can you confirm this is the same bug you're facing ?

Hi,

It's not the same bug.

@JorgeNogueiraLFMPro ,
Is there another error when you activate debug mode ?

@JorgeNogueiraLFMPro

The cart seems to be hooked in the wrong place.
Capture d鈥檈虂cran 2020-07-07 a虁 13 05 03

We use GitHub issues only to discuss about bugs and new features in the PrestaShop project.

If you have questions about using PrestaShop or third-party modules, or if you need help with your shop, please consider one of our support plans: https://www.prestashop.com/support

Alternatively, you can also ask for help in the community forums: https://www.prestashop.com/forums/

Thank you!

Was this page helpful?
0 / 5 - 0 ratings