Skip Navigation

[Resolved] In Woocomm, can Toolset show a text on product page based on the quantity?

This support ticket is created 5 years, 10 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 2 replies, has 2 voices.

Last updated by StanleyT8485 5 years, 9 months ago.

Assisted by: Nigel.

Author
Posts
#1206698

In Woocommerce, can Toolset show a dynamic text on the product page based on the quantity?

We want to show an estimated turnaround time on our product page.

For example,
If the quantity is 1 to 10, the turnaround time is 5 days.
If the quantity is 11 to 50, turnaround time is 15 days.

#1206952

Nigel
Supporter

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

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

Hi Stan

There isn't such functionality, you would have to code that up yourself if you cannot find a WooCommerce extension that does the same. (There are quite a few extensions for adding conditional custom fields to the cart page, I didn't spot any for adding such fields to the product page, but they may exist.)

You are essentially looking at a custom JS solution to react to changes in the product quantity field, where you would need to make a map of the turnaround days for given quantities available, possibly by passing an array using wp_localize_script, for example.

It's outside of the scope of support to do that for you, but you could try contacting a contractor: https://toolset.com/contractors/

#1209749

My issue is resolved now. Thank you!