Woocommerce archive page adding add to cart form

hi there,

i did an woocommerce archive page in a shop.
on that archive page i added the add_to_cart_fotm on that page.
everything does work, but when i click add to cart => it redirects me to the product single page.
i dont want that. the customer should stay on the shop archive page.

what i am doing wrong?

thanks in advance for your help.

cheers

Hey @deranaloge,

Regretfully, what you need is not possible with the Add to Cart Form. Please use the Add to Cart Button instead.

You might need 3rd party plugins if you want to add the quantity field but that would be outside the scope of our theme support.

Thanks

hi christian,

ok thats bad. can you add that to the feature requests?
also how can i add a quantity field with a 3rd party plugin in a custom woo archive page?

thanks in advance.

cheers

Hi @deranaloge,

The Add to Cart Form element built to use for the Single Product page, after adding the product to the cart it stays on the same product page and that is what is normal behavior. Using it in the Archive Page, will not work as expected. To add the quantity option, I would suggest you go through the following article and the free plugins from the WordPress repository, which may help you.

  1. https://docs.woocommerce.com/document/override-loop-template-and-show-quantities-next-to-add-to-cart-buttons/
  2. https://wordpress.org/plugins/add-quantity-to-archive-category-page/
  3. https://shopplugins.com/add-a-quantity-field-to-the-woocommerce-archive-pages/

Please remember that we don’t provide support or investigation on any issues related to 3rd party plugins or custom codes.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.