Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 [BUG] - Compiled theme doesn't allow ajax cart #407

Open
piotrszpruta opened this issue May 12, 2024 · 3 comments
Open

馃悰 [BUG] - Compiled theme doesn't allow ajax cart #407

piotrszpruta opened this issue May 12, 2024 · 3 comments
Labels
bug Something isn't working waiting for author waiting for author

Comments

@piotrszpruta
Copy link

Description

Hello, I've compiled the plain theme using yarn build following all steps in the instructions and while adding product to cart it loads infinitely without modal popup. I've tried many things but can't settle this up. After page refresh it updates.
image
That's how cart is seen.
Provided node version is yarn version

Node.js version

1.22.22

php version

8.2

OS and it's version

Windows

Browsers

Chrome

Required module/theme

theme

Reproduction steps

1. Install theme using steps in github readme
2. Go to _dev and build using yarn.
3. Push update to server
4. Refresh page and try adding to cart

Logs

No response

@piotrszpruta piotrszpruta added the bug Something isn't working label May 12, 2024
@Oksydan
Copy link
Owner

Oksydan commented May 12, 2024

Hi @piotrszpruta,

thank you for creating an issue.
Prestashop isn't compatible with php version 8.2 - you can read more about it here
Node version 1.22.22 is not the correct version of node - it may be the yarn version. You can run node -v in the terminal to check the node.js version.
I wasn't able to reproduce an issue. Try to downgrade your php version to 8.1 and check it out again 馃槈. You can also provide more information - error logs, browser console.

@Oksydan Oksydan added the waiting for author waiting for author label May 12, 2024
@piotrszpruta
Copy link
Author

Hi @piotrszpruta,

thank you for creating an issue. Prestashop isn't compatible with php version 8.2 - you can read more about it here Node version 1.22.22 is not the correct version of node - it may be the yarn version. You can run node -v in the terminal to check the node.js version. I wasn't able to reproduce an issue. Try to downgrade your php version to 8.1 and check it out again 馃槈. You can also provide more information - error logs, browser console.

Hello, thank you for the response.
I've tried changing php version to 8.1, I've cleared cache and it doesn't change anything.
Yes its yarn version, node version is v18.20.2.
Sadly no errors in logs and browser console.

@Oksydan
Copy link
Owner

Oksydan commented May 13, 2024

Hi,

Can you check your network tab in the browser? On add to cart there should be one call to prestashop cart controller. Then on updateCart there should be another call to is_shoppingcart controller.
I need more information, I won't be able to help you. Besides it's 100% your env problem 馃槙

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working waiting for author waiting for author
Projects
None yet
Development

No branches or pull requests

2 participants