VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: marvays on January 21, 2019, 14:15:00 PM

Title: child products in table - show stock
Post by: marvays on January 21, 2019, 14:15:00 PM
Hi all.
I have eshop with child products. I need show this product in table bottom product page.

A few years ago I bought the "catproduct" plugin from http://sm-planet.net. . . today dead.
http://sm-planet.net/index.php?option=com_content&view=article&id=2:catproduct&catid=8&Itemid=110

I have to edit the table to show the availability of the goods. I managed to modify but just for text. Can you advise on how to view the availability image?


if ($parametri["show_stock"] == 1) { echo $currency->showTableField('td','cell_stock',$product['child']['product_availability'], 'data-title="'.JText::_('CATPRODUCT_TABLE_STOCK').'"');}

Title: Re: child products in table - show stock
Post by: Studio 42 on January 22, 2019, 11:02:23 AM
You should use the same code as the product details
See file /components/com_virtuemart/sublayouts/stockhandle.php
Title: Re: child products in table - show stock
Post by: bunglehaze on April 29, 2019, 15:36:01 PM
I have the same issue in that I bought catproduct a few years ago to display child product tables and it is now causing issues to display what I need it to but seems unsupported at best.

Did you find a way to have VM display products as a table in the end? I only need text also but cannot see this already available within VM as a layout option.
Title: Re: child products in table - show stock
Post by: Studio 42 on April 29, 2019, 17:18:14 PM
I wrote this plugin https://shop.st42.fr/en/products/product-child-variants.htm
I can do a specific layout to display children in a table if you buy the product.
Title: Re: child products in table - show stock
Post by: bunglehaze on April 30, 2019, 12:22:26 PM
Quote from: Studio 42 on April 29, 2019, 17:18:14 PM
I wrote this plugin https://shop.st42.fr/en/products/product-child-variants.htm
I can do a specific layout to display children in a table if you buy the product.

Done and paid! I have no real need for images though I assume that keeping the functionality available for other buyers may be worthwhile.

My typical setup is that I offer the parent and child options in the same table so hopefully this is something that you can incorporate. The most important thing for me is that the option is there for a quantity box for each variant so there's no additional page loading to simply tab through each option and pick the variant required with the quantity needed.

How would you like me to contact you for the updated layout?

Leigh
Title: Re: child products in table - show stock
Post by: Studio 42 on April 30, 2019, 15:08:38 PM
Quote from: bunglehaze on April 30, 2019, 12:22:26 PM
Quote from: Studio 42 on April 29, 2019, 17:18:14 PM
I wrote this plugin https://shop.st42.fr/en/products/product-child-variants.htm
I can do a specific layout to display children in a table if you buy the product.

Done and paid! I have no real need for images though I assume that keeping the functionality available for other buyers may be worthwhile.

My typical setup is that I offer the parent and child options in the same table so hopefully this is something that you can incorporate. The most important thing for me is that the option is there for a quantity box for each variant so there's no additional page loading to simply tab through each option and pick the variant required with the quantity needed.

How would you like me to contact you for the updated layout?

Leigh
Hi,
Use the shop order confirmation email and send request directly, so i know the right user.
Regards,
Patrick