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
-
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...
-
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
- You cannot use the "product unit" for any other purpose
- Create a folder here images/stories/charts/
- Move the size charts into the folder above
- Then say you have a product that gets a certain size chart, you put that name in the product_unit field. Like Chart1.pdf
- If you do not have a chart for a product leave the product_unit field set to "piece"
-
Hi,
If different size chart for mens and ladies products then, how could you link different picture?