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

404 when adding product to cart with FroshDevelopmentHelper activated #45

Closed
RafaelKr opened this issue Apr 5, 2022 · 0 comments
Closed
Labels
kind/bug Something isn't working

Comments

@RafaelKr
Copy link

RafaelKr commented Apr 5, 2022

PHP Version

8.0

Shopware Version

6.4.9.0

Actual behaviour

When the FroshDevelopmentHelper is activated you get a 404 in the offcanvas cart when adding a product from it's product detail page to it.

I just noticed it's because it then does a request to the following URL:
http://localhost:8000/MyProduct/%3C!--%20BLOCK%20BEGIN%20buy_widget_buy_form_action%20(vendor/shopware/platform/src/Storefront/Resources/views/storefront/component/buy-widget/buy-widget-form.html.twig)%20--%3E/checkout/line-item/add%3C!--%20BLOCK%20END%20buy_widget_buy_form_action%20--%3E

So somehow it includes the BLOCK-comments which FroshDevelopmentHelper adds.

Adding a product from a product slider just works fine, it's just the "Add to cart"-button on the product detail page.

Expected behaviour

Adding a product to cart should be working with FroshDevelopmentHelper activated.

Steps to Reproduce?

  1. Setup a Shopware 6 shop
  2. Install and activate FroshDevelopmentHelper
  3. Go to a product detail page and add it to cart via the button in the buy-box
@RafaelKr RafaelKr added the kind/bug Something isn't working label Apr 5, 2022
@shyim shyim closed this as completed in a630e24 May 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant