VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: Willc on June 05, 2012, 23:34:32 PM

Title: [SOLVED] - Stockable Variants vs Stock Quantity
Post by: Willc on June 05, 2012, 23:34:32 PM
Hello, I running VM 2.0.6 and the Lastest Stockable Variants build on Joomla 2.5.4.

I make a size options with custom fields, and i set SHOP CONFIGURATIO to 'Show Notify me instead Add to Cart', but the plugin not show options that are out of stock, and if I set parent product to stock 0 it show the Notify button instead add to cart, otherwise this only hide the options that are out of stock.

This is wrong.

I wanna that show all options, and when I seletc a size that are out of stock, this hide Add to Cart button and show Notify Me.

How to do that?
Title: Re: Stockable Variants vs Stock Quantity
Post by: Willc on June 06, 2012, 18:18:11 PM
The solution was found by OpenGlobal (http://forum.virtuemart.net/index.php?action=profile;u=323633).

The solution:

Replace file:
administrator/components/com_virtuemart/models/product.php
with product.php attached.

Replace file:
plugins/vmcustom/stockable/stockable.php
with product.php attached

This work perfect for me.
Showing all variants, and showing 'Notify me' instead 'Add to cart' if costumer choose a out of stock option.

Credits for OpenGlobal (http://forum.virtuemart.net/index.php?action=profile;u=323633)




[attachment cleanup by admin]
Title: Re: [SOLVED] - Stockable Variants vs Stock Quantity
Post by: uschmi on June 07, 2012, 23:52:58 PM
I tried this solution of OpenGlobal.
Now, I´m not able any more to update/put in the stock into the childs!
The stock field is blank (even if there was stock in before) and it becomes blank again as soon as I save...
Title: Re: [SOLVED] - Stockable Variants vs Stock Quantity
Post by: Willc on June 11, 2012, 15:56:17 PM
The stock of child product dynamicly replace stock of parent.

Exemple: If u have 10 products in size S and 15 in size L, the parent will have 15 products. You are able to modify quantities, but the changes must  appear only in parent stock.

Regards
Title: Re: [SOLVED] - Stockable Variants vs Stock Quantity
Post by: uschmi on June 11, 2012, 17:38:27 PM
right. But I cannot set the stock of the childs anymore - the field is just blank when I enter the product in backend and is blank again after saving...
Title: Re: [SOLVED] - Stockable Variants vs Stock Quantity
Post by: Willc on June 11, 2012, 18:29:29 PM
You can see the stock in parent product, open tab 'Custom Field'.

That tab will show details of children products, like this:

Product Name [Product SKU : YOURSKU] [Product in stock : 10]

So you can control stock level, reserved pieces, caused by pending orders still avaliable in child product information status tab.

Regards
Title: Re: [SOLVED] - Stockable Variants vs Stock Quantity
Post by: khuzemav201 on September 23, 2013, 10:34:58 AM
if i replace product.php on my site i am not able to edit any product anymore from backend.
joomla 2.5.14
VM 2.0.22d

can you please help
Title: Re: [SOLVED] - Stockable Variants vs Stock Quantity
Post by: Maxim Pishnyak on September 26, 2013, 13:37:45 PM
Latest product.php could be available in OpenGlobal thread http://forum.virtuemart.net/index.php?topic=103067.0