Dear Team,
I would like to enable buy button only for the products in specified categories.
Actually I could solve this in List view and Product Page view. It is not working only when I saerch for the items where I would like to show buy button.
I used these codes in Template directory's list_products folder in product.php file for example:
$category_id = JRequest::getInt('category_id');
<?php } if ($product->buy_link && $category_id == 979){?>
<a class="btn btn-small button_buy" href="<?php print $product->buy_link?>"><?php print _JSHOP_BUY?></a>
<?php }?>
Why it is not working when I make a search?
Joomla: 3.7.2
JoomShopping: 4.16.2
PHP: 5.6.30
MySQL: 5.6.26
Website Url: www.elektroserv.hu
JoomShopping: 4.16.2
PHP: 5.6.30
MySQL: 5.6.26
Website Url: www.elektroserv.hu