Skip to content

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

@HugoDtq

Description

@HugoDtq
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions