| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
#1
|
|||||||
|
|||||||
free <PREV | NEXT> mod help
I found this mod in http://www.xcartmod.com/cart/product/previous-next-products.html but can't get it to work. Can anyone please help. Thank you.
__________________
Xcart 4.1.9, AOM, One Page Checkout, Buy Together, Smart Search, On Sale, XC SEO Pro, Preordered/Backordered, Reward Points (Unresolve Issue), Marketing Manager Pro V3, RubyMod Currency, GeoIP. |
|||||||
#2
|
|||||||
|
|||||||
Re: free <PREV | NEXT> mod help
Moving to Third Party Add-Ons
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
Re: free <PREV | NEXT> mod help
__________________
http://www.lingerieblowout.com Version 4.1.10 http://www.topnichewebsites.com Version 4.4.5 Michael |
|||||||
#4
|
|||||||
|
|||||||
Re: free <PREV | NEXT> mod help
Quote:
I just tested that Previous/Next freebie Mod on my site and it worked perfectly. I'm running X-Cart 4.1.10, so it should work fine on your 4.1.9 site as well. Here's some things to double-check: 1. There are 3 files this MOD deals with... 1a) product.php (at the root-level) is modified by adding a block of code near the end 1b) skin1/customer/main/product.tpl is modified by adding an include at the top of the file 1c) skin1/customer/next_prev.tpl (new file) is added 2. You can change the install file to install.txt to open it in a text editor. Notice that it has 3 steps. Follow them exactly and it should work fine. The Previous and Next products will then be listed near the top of each Detailed Product Page. If you get any error, please let us know what it is(?) Robert
__________________
X-cart 4.1.10 |
|||||||
#5
|
|||||||
|
|||||||
Re: free <PREV | NEXT> mod help
Quote:
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:
That's it... working fine on my live site now. Robert
__________________
X-cart 4.1.10 |
|||||||
#6
|
|||||||||
|
|||||||||
Re: free <PREV | NEXT> mod help
Hi
What should i put in the skin1/customer/next_prev.tpl (new file) Thanks
__________________
Tammy x-cart gold + 4.7.2 x-cart 5.2.10 |
|||||||||
#7
|
|||||||
|
|||||||
Re: free <PREV | NEXT> mod help
Hello,
Just upload next_prev.tpl to skin1/customer/ folder without changes. Alex |
|||||||
#8
|
|||||||||
|
|||||||||
Re: free <PREV | NEXT> mod help
Thanks.
I did. I get this error. INVALID SQL: 1054 : Unknown column 'pr.productid' in 'on clause' SQL QUERY FAILURE:SELECT pr.productid, pr.product, mem.membershipid FROM xcart_products AS pr, xcart_products_categories AS cat LEFT JOIN xcart_product_memberships AS mem ON mem.productid = pr.productid WHERE cat.categoryid = '263' AND pr.productid = cat.productid AND pr.forsale='Y' ORDER BY pr.product Any idea?
__________________
Tammy x-cart gold + 4.7.2 x-cart 5.2.10 |
|||||||||
#9
|
|||||||
|
|||||||
Re: free <PREV | NEXT> mod help
I suppose you use MySQL 5. You need to change this text in product.php:
$mem_list = func_query("SELECT pr.productid, pr.product, mem.membershipid FROM $sql_tbl[products] AS pr, $sql_tbl[products_categories] AS cat LEFT JOIN $sql_tbl[product_memberships] AS mem ON mem.productid = pr.productid WHERE cat.categoryid = '$product_info[categoryid]' AND pr.productid = cat.productid AND pr.forsale='Y' ORDER BY pr.product"); to this text: $mem_list = func_query("SELECT pr.productid, pr.product, mem.membershipid FROM $sql_tbl[products_categories] AS cat, $sql_tbl[products] AS pr LEFT JOIN $sql_tbl[product_memberships] AS mem ON mem.productid = pr.productid WHERE cat.categoryid = '$product_info[categoryid]' AND pr.productid = cat.productid AND pr.forsale='Y' ORDER BY pr.product"); |
|||||||
#10
|
|||||||||
|
|||||||||
Re: free <PREV | NEXT> mod help
OK
Did Change the SQL Query to read No error now but no next/prev either
__________________
Tammy x-cart gold + 4.7.2 x-cart 5.2.10 |
|||||||||
|
|||
X-Cart forums © 2001-2020
|