Woocommerce shop archive add to cart form

Hi there,

when i use pro, the native behavior of woocommerce is overridden.

standard theme => the add to cart button on the shop archive page: if i press add to cart here on the standard wordpress theme, the item is added to the cart, another line below the button is displayed (view cart).
pro => when i press the add to cart button (add to cart form element) i am redirected to the single product page although ajax is active.

how can i get this back to the default state? is there a code here? can i turn this behavior off in the theme?

thanks a lot!

Hi @deranaloge,

Thanks for reaching out.
The Pro acts the same as other themes in this case and adds the Product into the cart through AJAX. But if you have clicked on any Variable Product that has some different variation, it will redirect you to the Product Details page.

If that is not the case, there might be some different reasons behind your reason. I would like to suggest troubleshooting the following common issue to help us to recognize the reason.

  1. Theme Related Issue
  2. Plugin Conflict
  3. Theme Update related issue
  4. Child Theme Related issue ** if you have activated it.
  5. CSS/JS Customization
  6. Disabling Cache
  7. Disabling CDN

If you discover that an issue is coming from a custom code or 3rd party plugin, kindly consult with a developer or contact the plugin author. Please note that we do not provide support for custom codes and 3rd party plugins.
If none of the above help, please provide login credentials for your site in a secure note to examine it further, including:

– WordPress Site URL & Login URL
– WordPress Admin username/password

To create a secure note, click the key icon underneath any of your posts.

Thanks

Hi there,
no thats not true. Pro does not act like other themes.
on shop archive page it redirects you to the single product page. on other themes it stays on the shop archive page.
see secure note for credentials
thanks again

Hi @deranaloge,

I have checked the Layout assigned to the Shop page and found that you have used the Add to Cart Form element for the first 3 product, which redirect you to the details page. You need to add the Add to Cart button as you have added for the 4th product, which works as you are expecting.

Thanks

Hi,
but i need the add to cart form. on the default templates it does not redirect you to the details page…
it is the standard woo commerce add to cart form or?
if taht does not work, is there a shortcode for the “original” add to cart form/button from woocommerce?

thanks

Hi @deranaloge,

The Add to Cart Form element works that way. It is not clear what you trying to do here, if you want the product to be added using AJAX, you can use the Add to Cart element. If that is not the case, please clarify what you are trying to acheive.

Thanks

hi,
i need a add to cart form element (with quantity) on shop archive page that does not redirect to details page.

please go to the staging site:

  1. activate twenty twenty three => go to the shop archive page => click on add to cart form button (with quantity) of a product => the product with selected quantity will added to cart without redirect to the product single page
  2. activate pro => go to the shop archive page => click on add to cart form button (with quantity) of a product => the product will be added to cart and you will be redirected to the product single page.

You now see that pro acts differently from the standard themes.
i need scenario 1.

how is that possible.

thanks again

Hi @deranaloge,

What you are expecting is required complex customization with the Pro. I would suggest you hire a developer who can assist you to do the customization or you can avail of our newly launched service called Elite service, where we offer complex customization
Alternatively, you can try using any of the free plugins available in the WordPress repository to add the Quantity field in the Shop page.

Please remember that we don’t provide any support to the 3rd Party plugin or related issues.

Thanks

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