Skip Navigation

[Resolved] Add to Cart from View with Variations

This support ticket is created 6 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 3 replies, has 2 voices.

Last updated by staceyz 6 years, 3 months ago.

Assisted by: Nigel.

Author
Posts
#1120188

Hi - I have a view set up so that users can select size and add to cart all from the very simple shop page. No need to go to multiple pages, since it's just a few products.

On the popup (see two t-shirt products) I'd like users to be able to select size and add to cart. It appears that that is what they can do, but it redirects them to the product page. I'd like it to function as the products above do, once you add to the cart, it adds it and you stay on this page.

Can you tell me what I'm missing to make that work?

hidden link

#1120693

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Stacey

According to the documentation for the wpv-woo-buy-or-select shortcode, that is what is expected: https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-woo-buy-or-select

And it is also the default behaviour of WooCommerce itself (which the WooCommerce Views shortcodes reproduce).

If you test variable products on a simple WooCommerce site (no Toolset installed), on the shop page you will see the button is "Select options" instead of "Add to cart" and it takes you to the product page where you choose the variations required.

So it is expected, I'm afraid.

#1120856

Thanks for the feedback. It helped me figure out! Since it's native functionality, I searched for a plugin to make it behave the way we wish:

"Woocommerce Ajax add to cart for variable products" <-- this plugin does the trick for anyone else looking to do the same.

Thanks!

#1120857

My issue is resolved now. Thank you!