VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: Kuubs on May 24, 2024, 10:23:02 AM

Title: Adding stock to custom fields
Post by: Kuubs on May 24, 2024, 10:23:02 AM
Maybe this is a better idea to just add stock to the custom fields so when it reaches 0 it will not display. The value keeps in the database etc, so the administration of the orders won't be scrambled (see my previous post)

You can ofcourse work with child products, but I think it's a better user experience to just add a simple stock field for the custom fields.
Title: Re: Adding stock to custom fields
Post by: balai on May 31, 2024, 13:11:05 PM
The stock is a product attribute and the custom fields are product attributes as well.
Adding a stock to a color or a size makes no much sense. The stock is relevant to the product behind those attributes.

Did you check the Stockable Custom Fields plugin which allows you to create child products based on custom fields?
https://breakdesigns.net/extensions/joomla/stockable-custom-fields
Title: Re: Adding stock to custom fields
Post by: Jumbo! on June 03, 2024, 16:01:17 PM
You can take a look at VP Advanced Custom Field (https://www.virtueplanet.com/extensions/vp-advanced-custom-field). It allows you to maintain stocks for the custom fields without creating additional child products and has many other handy features.
Title: Re: Adding stock to custom fields
Post by: Kuubs on June 04, 2024, 15:45:06 PM
Quote from: Jumbo! on June 03, 2024, 16:01:17 PMYou can take a look at VP Advanced Custom Field (https://www.virtueplanet.com/extensions/vp-advanced-custom-field). It allows you to maintain stocks for the custom fields without creating additional child products and has many other handy features.

Hmm that seems indeed like a solution. Although i don't really like using all sort of plugins. It gives bloat and every update is hoping something doesn't break. I like native.