Availability function virtuemart

frederic11
140 Posts
frederic11 posted this 03 July 2020

Hello,
i have a problem, i need the availibility native function of Virtuemart in my template.
This function work fine with Protostar template, but not with Themler.

What i did is try to copy/past the code i have in the com_virtuemart/sublayouts/stockhandle.php in a cms control in my product detail view in Themler.

The normal use is when a product is out of stock, that show an image with the shipping delay. This image can be configured in the global VM config or overrided per product.

So with my test, the information still showed, in all products, even if in stock, and the override function dosent work anymore.

Can you help me make it functionnal ?

Hello, i have a problem, i need the availibility native function of Virtuemart in my template. This function work fine with Protostar template, but not with Themler. What i did is try to copy/past the code i have in the com_virtuemart/sublayouts/stockhandle.php in a cms control in my product detail view in Themler. The normal use is when a product is out of stock, that show an image with the shipping delay. This image can be configured in the global VM config or overrided per product. So with my test, the information still showed, in all products, even if in stock, and the override function dosent work anymore. Can you help me make it functionnal ?
Vote to pay developers attention to this features or issue.
3 Comments
Order By: Standard | Newest
frederic11
140 Posts
frederic11 posted this 03 July 2020

I got it !

I only have to put this code in my template :

<?php echo shopfunctionsf::rendervmsublayout('stockhandle',array('product'?>$this->product));
?>

And now it work fine.

I got it ! I only have to put this code in my template : &lt;?php echo shopfunctionsf::rendervmsublayout(&#39;stockhandle&#39;,array(&#39;product&#39;?&gt;$this->product)); ?> And now it work fine.
Support Team
Support Team posted this 03 July 2020

Hello Frederic,

Thank you for letting us know the result.

Gina
Themler Support

Hello Frederic, Thank you for letting us know the result. Gina Themler Support
souacz
59 Posts
souacz posted this 4 days ago

I got it !

I only have to put this code in my template :

<?php echo shopfunctionsf::rendervmsublayout('stockhandle',array('product'?>$this->product));
?>

And now it work fine.

Hi, where exactly did you add this code?

> I got it ! > > I only have to put this code in my template : > > &lt;?php echo shopfunctionsf::rendervmsublayout(&#39;stockhandle&#39;,array(&#39;product&#39;?&gt;$this->product)); > ?> > > And now it work fine. Hi, where exactly did you add this code?
You must log in or register to leave comments