News:

Support the VirtueMart project and become a member

Main Menu

Adding stock to custom fields

Started by Kuubs, May 24, 2024, 10:23:02 AM

Previous topic - Next topic

Kuubs

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.

balai

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

Jumbo!

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.

Kuubs

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.