VirtueMart Forum

VirtueMart 1.1.x [ Old version - no longer supported ] => Themes & Layout Problems and Customization VM 1.1 => Topic started by: majolisa on February 27, 2011, 13:23:53 pm

Title: Custom code in product view
Post by: majolisa on February 27, 2011, 13:23:53 pm
Hi,
Is there a way I could add custom code in product view?? I want to add "see chart" link, so customers could see size chart for selected product...
Title: Re: Custom code in product view
Post by: PRO on February 27, 2011, 14:56:07 pm
you could do this

This code goes in your flypage where you want the link

<?php if ($product_unit != 'piece') { ?>
<a title="Chart" href="images/stories/charts/<?php echo $product_unit ?>"">Size Chart</a><?php } if ($product_unit == 'piece') { ?>THE OTHER OPTION FOR NOTHING<?php } ?>

And how it works

Title: Re: Custom code in product view
Post by: rdharma on May 07, 2015, 19:10:43 pm
Hi,
If different size chart for mens and ladies products then, how could you link different picture?