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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Woocommerce add to cart button problem on single.blade.php #904

Open
HugoDtq opened this issue Dec 3, 2024 · 0 comments
Open

Woocommerce add to cart button problem on single.blade.php #904

HugoDtq opened this issue Dec 3, 2024 · 0 comments

Comments

@HugoDtq
Copy link

HugoDtq commented Dec 3, 2024

  • Themosis Version: 3.1
  • WordPress Version: 6.7.1
  • PHP Version: 8.3.0

Description

When I'm on a product page and I click on the “add to cart” button, I get the following error: The page has expired due to inactivity.

Please refresh and try again.

image

I tested with a new installation of themosis + the default wordpress theme of themosis (my-theme).

When I delete this line :
Action::remove('init', ['WC_Template_Loader', 'init'], 10);
The button works fine but the routes don't work anymore and don't allow me to make custom views for my product pages.

Steps to reproduce

  1. Install Themosis framework
  2. Install default themosis theme (php artisan theme:install my-theme)
  3. Follow Woocommerce installation guide : (https://framework.themosis.com/docs/3.1/woocommerce)
  4. Go to a single product view
  5. Click on the “add to cart” button

Expected behavior

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant