Here is a quick mod for this:
1. create a new Smarty modifier plugin -> "include/templater/plugins/modifier.getproductmaincat.php" with the following content:
PHP Code:
<?php
if (!defined('XCART_START')) { header("Location: ../../../"); die("Access denied"); }
function smarty_modifier_getproductmaincat($productid) {
global $sql_tbl;
return func_query_first_cell("SELECT categoryid FROM $sql_tbl[products_categories] WHERE productid='$productid' AND main='Y'");
}
?>
2. add something like this:
Code:
<a href="home.php?cat={$products[product].productid|getproductmaincat}">{$lng.lbl_more}</a>
anywhere inside main section loop in the "skin1/customer/main/products_t.tpl" template.
e.g. right before this code -> {*** Uncomment it if you need 'Buy Now' button ***