cancel
Showing results for 
Search instead for 
Did you mean: 

Add to cart works 1st time ok, then can't add more, plus refresh then it doesn't work at all.

Add to cart works 1st time ok, then can't add more, plus refresh then it doesn't work at all.

Magento 2.3.4

 

Hi My site has an issue where you can add a product to the cart fine. But then try to add other products and it won't let you. Then if you refresh it doesn't work at all.

 

This might be permissions issue? But this hasn't happened before so a bit strange.

I will note there are on going cron issue which I have yet to resolve (I get cron emails), but can't seem to pinpoint. Could be related?

 

Site is worldofsealants.co.uk if you want to have a look.

For me as a beginner dev it could be one of a million things. Server says it is not to do with them.

Please help - your expert advice is most appreciated!

Best regards

Simon

1 REPLY 1

Re: Add to cart works 1st time ok, then can't add more, plus refresh then it doesn't work at all.

Hello @simonsmithWOS 

 

It's not limited to your add to cart feature, it's getting almost everywhere such as login feature etc

 

it's issue of permission, you can run below commands and let us know if it works :

    cd <your Magento install dir> 

    find . -type f -exec chmod 644 {} \;                        // 644 permission for files

    find . -type d -exec chmod 755 {} \;                        // 755 permission for directory 

    find ./var -type d -exec chmod 777 {} \;                // 777 permission for var folder    

    find ./pub/media -type d -exec chmod 777 {} \;

    find ./pub/static -type d -exec chmod 777 {} \;

    chmod 777 ./app/etc

    chmod 644 ./app/etc/*.xml

    chown -R :<web server group> .

    chmod u+x bin/magento


Hope it works !

Problem Solved ? Click on 'Kudos' & Accept as Solution ! Smiley Happy