Hi, How i can modify module with stock child product ?
I have product1 /parent product/ nad child product 2, 3, 4
in parent product i have set generic child product custom filed.
parent product have stock = 0
and one child product have stock = 10
on category page i see it OK . parent product is dont mark how stock out.
but in this module is product mark how stock out .
how i can modify it , to make the module a virtuemart category page? to take dairy products into consideration?
Thanks
Roman, you have to try much harder with your requests for help
What you have written here to me is just gobbly gook
ZT VM module? WTF is that?
and the rest? Any one will take one look at your post and move on.. You have to make the effort to encourage us to bother to answer your appeals
http://forum.virtuemart.net/index.php?topic=104795.0
http://forum.virtuemart.net/index.php?topic=79799.0
Hi, im sorry . I add my previous post.
I think the module is not essential.
I used joomla 3.8.13 and VM 3.4.2
I have parent product ,example this : http://prntscr.com/l5x49u which have 5 children products : http://prntscr.com/l5x4ty
one from this children product have stock = 10 other have stock = 0.
In VM settings i have set : display button inform me when is stockou product : http://prntscr.com/l5x5bg
in category view i add stick when is product /children because parent is not ordeble/ stocout : http://prntscr.com/l5x5zx , with this code :
<?php if ($product->product_in_stock < 1) { ?>
<span class="sticker top-right xx"><span class="labelsale"><?php echo vmText::_('COM_VIRTUEMART_PRODUCT_SOLD_OUT') ?></span></span>
<?php } ?>
and this code i add to module /ZT virtuemart product module/ :
<?php if ($product->product_in_stock < 1) { ?>
<span class="sticker top-right"><span class="labelsale"><?php echo vmText::_('COM_VIRTUEMART_PRODUCT_SOLD_OUT') ?></span></span>
<?php } ?>
but in category view its OK. product dont have stick because one child product have stock = 10 : http://prntscr.com/l5x70x
but on homme page in module is this product with stick : http://prntscr.com/l5x79w
I think this module works only on stock parent product which have stock = 0 and not with children product too.
My question is how can you modify the module code to work like category view and work with children stock too.
thanks
Hi, any idea?
Is there a possibility as a discovery or even a daughter product is in stock?
thanks