Skip Navigation

[Resolved] Displaying wpv-filter-spinner during wpv-woo-buy-or-select add to cart

This support ticket is created 4 years, 8 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
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 1 reply, has 2 voices.

Last updated by Beda 4 years, 8 months ago.

Assisted by: Beda.

Author
Posts
#1542239

Is it possible to display a spinner such as [wpv-filter-spinner] during the Add to Cart AJAX action of a shortcode such as [wpv-woo-buy-or-select add to cart]?

When the site does not process the add to cart ajax request within a short timeframe it appears as if the Add to Cart button does not work, which would lead visitors to leave the page or click multiple times, adding too many items to the cart.

If there was a spinner displayed whilst the AJAX request is processing then visitors would understand that the item is being added to the cart no matter how long it takes.

#1542975

No, that is not possible.

The wpv-filter-spinner shortcode is for Views events in a search, see https://toolset.com/documentation/user-guides/views/views-shortcodes/#wpv-filter-spinner

The wpv-woo-buy-or-select is not a search event hence you can't use that spinner.
It is in fact a WooCommerce native, but hidden feature (by default WooCommerce will not offer any AJAX add to cart) and hence, it should be asked at WooCommerce, to add such spinners or else