Author Topic: ZT Virtuemart module  (Read 727 times)

roman5527

  • Jr. Member
  • **
  • Posts: 147
ZT Virtuemart module
« on: October 14, 2018, 12:54:28 pm »
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

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8892
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.4.2
Re: ZT Virtuemart module
« Reply #1 on: October 14, 2018, 13:46:04 pm »
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 http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

roman5527

  • Jr. Member
  • **
  • Posts: 147
Re: ZT Virtuemart module
« Reply #2 on: October 14, 2018, 14:50:46 pm »
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 :
Code: [Select]
<?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/ :
Code: [Select]
<?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

  • Jr. Member
  • **
  • Posts: 147
Re: ZT Virtuemart module
« Reply #3 on: October 19, 2018, 12:18:11 pm »
Hi, any idea?

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

thanks