New Zenner
- Join Date:
- Feb 2009
- Posts:
- 12
- Plugin Contributions:
- 0
Need help to write correct line of code...
I want to add a line of code into tpl_product_info_display.php
The file has following code:
Based on that code I want to display following:
<?php require($template->get_template_dir('tpl_modules_featured_products2.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_featured_products2.php'); ?>Also I have tpl_modules_featured_products3.php and tpl_modules_featured_products4.php which I also will need to call.
If I will use the call code from above for each file it will show all those three boxes 2, 3, and 4 on the page.
But I need to call them when certain category is displayed.
So I need a line of code which will define in which category the given product is sitting and accordingly will show necessary file (box).
Example:
if (current product displayed is in the category cPath=1) {
<?php require($template->get_template_dir('tpl_modules_featured_products2.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_featured_products2.php'); ?>}
I hope I explained it properly.
Can anyone help? Is it possible?