News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Child Products Do Not Display if they Out of Stock

Started by FDT, October 23, 2016, 16:37:45 PM

Previous topic - Next topic

FDT

Hi,

Faced with two problems, whose solution wasn't found on the forum. I ask your help. The first question is: how to do that the child products with stock 0 displayed on the site and just marked sold, in the version  VirtueMart 3.0.12 and Joomla 3.6.0.  it worked before, you can see here http://awesomescreenshot.com/02e65yjif4 |  now we have the new version of  VirtueMart 3.0.18 and Joomla 3.6.3. and this option at the same product doesn't work with any products which had at stock 0, you can see here http://awesomescreenshot.com/0bb65yjk73 , so this is a big problem bcs when the parent product have at stock 0 the situation like this http://awesomescreenshot.com/0b065yjn06

Waiting for help

GJC Web Design

your post is hard to follow

which products are out of stock?  are you saying that if a child product is out of stock it doesn't show in the dropdown? but did before?
so u want to show them?

there are Multi variants? or?
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

FDT


K&K media production


FDT

hello, thanks for reply, you need this info ? $stockhandle = VmConfig::get('stockhandle','none');

K&K media production


FDT

it our configuration  $stockhandle = VmConfig::get('stockhandle','none');

can you plz explain me which information you need?
Where i must go for take and give info for you

jenkinhill

Try VM configuration/shopfront/Action when a Product is Out of Stock
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Milbo

#8
There was an error with the stockhandling for multivariants, please try
http://dev.virtuemart.net/attachments/download/1025/com_virtuemart.3.0.18.1_extract_first.zip
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

FDT

Thanks for reply, but it doesnt't work, the same situation + the conflicts, the category of store stopped working

Milbo

yeh I did an error porting the fix, I just got it via skype search in sublayouts/customfield.php at line 93 for


$q .= ' AND (`product_in_stock` - `product_ordered`) <= "0"';


and replace it against

$q .= ' OR (`product_in_stock` - `product_ordered`) <= "0"';
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

FDT


FDT

Hello,
Thanks of reply, but still have problem. When you go to the product page which is not at stock prntscr.com/el084r, prntscr.com/el08fe, the child product which out of the stock doesn't in the selection option. When this is in the product without the child prntscr.com/el08qm, then this is normal. But when with the children, there is confusion, because the child product which not at stock is hiden at the the selection option http://www.awesomescreenshot.com/0bb65yjk73.
Hope for help