Author Topic: [SOLVED] - Stockable Variants vs Stock Quantity  (Read 4243 times)

Willc

  • Beginner
  • *
  • Posts: 29
[SOLVED] - Stockable Variants vs Stock Quantity
« 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?

Willc

  • Beginner
  • *
  • Posts: 29
Re: Stockable Variants vs Stock Quantity
« Reply #1 on: June 06, 2012, 18:18:11 pm »
The solution was found by OpenGlobal.

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




[attachment cleanup by admin]

uschmi

  • Jr. Member
  • **
  • Posts: 108
Re: [SOLVED] - Stockable Variants vs Stock Quantity
« Reply #2 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...

Willc

  • Beginner
  • *
  • Posts: 29
Re: [SOLVED] - Stockable Variants vs Stock Quantity
« Reply #3 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

uschmi

  • Jr. Member
  • **
  • Posts: 108
Re: [SOLVED] - Stockable Variants vs Stock Quantity
« Reply #4 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...

Willc

  • Beginner
  • *
  • Posts: 29
Re: [SOLVED] - Stockable Variants vs Stock Quantity
« Reply #5 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

khuzemav201

  • Beginner
  • *
  • Posts: 4
Re: [SOLVED] - Stockable Variants vs Stock Quantity
« Reply #6 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

Maxim Pishnyak

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2657
Re: [SOLVED] - Stockable Variants vs Stock Quantity
« Reply #7 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