Hi,
I migrated magento 2.4.2 from local host to the live server. now the Products are not being added to the cart.
Can someone assist.
Thanks in advance.
Please run the below command and check:
Did you check Magento logs for errors? Also check the browser console for any errors.
If you see any errors then post in the reply so that some one can help you.
Thanks
Hi @5e48be49ecff7,
Run the additional SQL lines below
UPDATE core_config_data
SET value = REPLACE(value, '<old root URL or domain>', '<new root URL or domain>')
WHERE path = 'design/head/includes';
Delete the cache with the command:
rm -rf var/cache/*
Hope this can help you! Let me know if you need further assistance.
________
If issue solved, Click Kudos & Accept as Solution.
Open the url and then open the console tab via inspect window or by ctrl + shift + i and then add product in cart.
There is some js error in console.
I hope it will help you.
Please check if your Cookie Domain set properly. Generally, cart stores the array into cookies so make sure it's adding. Stores > Configuration > Web > Default Cookies Setting > Cookie Domain.
Thats works pretty well! thanks