Skip to Content
0
Jan 19, 2023 at 11:11 AM

Add to Basket is not working on Homepage

139 Views Last edit Feb 02, 2023 at 01:44 AM 2 rev

Hi Team,

Add to basket function for Product Carousel Component is not working in the home page.


Please find the attached screenshots addtobasket-button.png from clicks homepage (clicks.co.za). The issue is on the supplier ad product carousel components. The add to basket button in these 2 components are not working as expected. Getting black screen after clicking on the button and the error in console addtobasket-blankscreen-error.png


The issue is occurring because the csrf token is generating different for only these 2 product carousel components. CSRF token is generated and stored in server side within user session data, As different token is generating for product carousel component, if user tried to add products to basket, the functionality is not working. Server side is rejecting since the token is not similar. There is no code associated around product carousel component to set csrf token seperately, but not sure why got different token in Production.

The issue is not getting for the same in all QA environments like s1, d1, and s2. And there is nothing problem with the salesforce in production. Please check and assist us on this.

Thanks and Regards,

Aishwarya

Attachments