Re: free <PREV | NEXT> mod help
Quote:
Originally Posted by robertswww
If you do not have products assigned to different memberships, then you can remove that part from the SQL Query.
To get this mod to work with X-Cart 4.1.x on mySQL 5, I made the following change:
File: product.php (root-level)
Change the SQL Query to read:
Code:
$mem_list = func_query("SELECT pr.productid, pr.product FROM $sql_tbl[products] AS pr LEFT JOIN $sql_tbl[products_categories] AS cat ON cat.productid = pr.productid WHERE cat.categoryid = '$product_info[categoryid]' AND pr.productid = cat.productid AND pr.forsale='Y' ORDER BY pr.product");
That's it... working fine on my live site now.
Robert
|
I've got it also working with the above change of the product.php.
Many thanks, Robert! 
__________________
X-Cart 4.0.12
Heavy modified with paid, free and forum mods.
PHP 5.2.5 | MYSQL 5.0.51a
|