Skip Navigation

[Resolved] [wpv-woo-buy-options] is not working properly with the "Sold individual" setting

This support ticket is created 6 years 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 2 replies, has 2 voices.

Last updated by Sebastian 6 years ago.

Assisted by: Christian Cox.

Author
Posts
#728270

I am trying to:
In the content template for single product I use the [wpv-woo-buy-options] short code.
I have some products which are sold individually (online courses) and some other product can be bought in quantity. According to woocommerce documentation using the product setting "Inventory->Sold individually" allows to show/hide the quantity input, but the short code ignores this setting.
Further customization can be done using the filter "woocommerce_is_sold_individually", but that is also not working. If I implement that filter, regardless of what I return, the quantity input is not shown.

Link to a page where the issue can be seen:
hidden link

I expected to see:
No quantity input

Instead, I got:
The quantity input is displayed

#729972

Hi, I just ran a quick test locally and a Product marked "Sold Individually" does not include a quantity select field on my test, so there must be something configured differently in our setups. Can you try the following troubleshooting steps?
- Make sure WordPress, your theme, and plugins are up-to-date.
- Temporarily switch to a default theme like Twenty Seventeen and deactivate all plugins except Toolset and WooCommerce.
- Test again. Is the quantity field still displayed? If not, reactivate your theme and other plugins one by one until the conflict is revealed.
- If the quantity field is still displayed, tell me more about this Product:
- Is it a simple product, a variable product, something else?
- Is the inventory managed at an item level, and how many are in stock?
- Please copy + paste all the code you have in the Product Content Template for me to review.

#735032

After just switching to Twenty Seventeen the template behaved as expected.
Apparently the problem is Porto. Instead of hiding the quantity field, the theme shows it but disable the field so the quantity selected is 1 and cannot be changed.
Will start a ticket with the theme provider.
Thanks.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.