News:

Support the VirtueMart project and become a member

Main Menu

ZT Virtuemart module

Started by roman5527, October 14, 2018, 12:54:28 PM

Previous topic - Next topic

roman5527

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

GJC Web Design

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
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

roman5527

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


roman5527

Hi, any idea?

Is there a possibility as a discovery or even a daughter product is in stock?

thanks