X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Previous/Next links in product details (https://forum.x-cart.com/showthread.php?t=58332)

SID357 03-05-2011 05:40 PM

Previous/Next links in product details
 
1 Attachment(s)
Thanks to xcartmod.com on this one.

I just changed the installation a bit and it works good on 4.3.2. It should work on other versions as well.

What it does:
In the product details page it shows two links (forward and back) with the name of your previous product and the name of your next product. So, the customer doesn't have to go back to your category list. Worked well for me so I thought I'd share.

Install and instructions attached.

flyclothing 04-25-2011 03:20 PM

Re: Previous/Next links in product details
 
I noticed this mod will display disabled products links. Did you modify it to fix that?

xtech 04-25-2011 08:28 PM

Re: Previous/Next links in product details
 
Hi,
Yes this will display disabled product also.Will it work for latest 4.4.2 versions??

SID357 04-26-2011 01:30 PM

Re: Previous/Next links in product details
 
Haven't tried it on anything other than 4.3.2. I just have my product show as out of stock instead of removing them, so I haven't done anything to change that.

Learner 05-31-2011 02:25 AM

Re: Previous/Next links in product details
 
Hi SID357,

This mod is not working on 4.4.2 versions..

Can you give me for 4.4.2??

SID357 05-31-2011 04:48 PM

Re: Previous/Next links in product details
 
I don't have it dude, sorry. I'm stuck in 4.3.2 land.

xtech 05-31-2011 09:21 PM

Re: Previous/Next links in product details
 
Anyone for 4.4.3?

Cankus 06-03-2011 03:23 AM

Re: Previous/Next links in product details
 
This mod working on 4.4.2 Gold and 4.4.3 Pro

www.elitmarket.com (4.4.3 pro)

upupcreative 06-09-2011 05:20 PM

Re: Previous/Next links in product details
 
hey cankus,

did you make any changes to the installation for 4.4.2 gold? i just followed the original instructions and nothing is actually showing up on the product page.

julie
4.4.2

Cankus 06-10-2011 03:38 AM

Re: Previous/Next links in product details
 
No any changes

http://www.elitmarket.com/v3/ (4.4.2 Gold) (bottom product page)
http://www.elitmarket.com/ (4.4.3 Pro) (top and bottom product page)

upupcreative 06-22-2011 04:11 PM

Re: Previous/Next links in product details
 
i saw on another forum that those of us for whom it's not working are probably using PHP5 instead of PHP4. there's a workaround although i'm not sure i follow what we're supposed to do to work around! : )

here's the forum thread where the PHP issue is discussed: http://forum.x-cart.com/showthread.php?t=39654&page=7&highlight=previous+n ext

Learner 06-22-2011 10:26 PM

Re: Previous/Next links in product details
 
Hi,
If you insert {include file="customer/next_prev.tpl"} before {capture name=dialog} then it is working perfect on 4.4 version.

No issue with PHP 4 OR PHP5.

PhilJ 07-18-2012 07:00 AM

Re: Previous/Next links in product details
 
By any chance, has anyone managed to adapt the code for v4.5.x ?

Thanks,
Phil

cflsystems 07-18-2012 07:07 AM

Re: Previous/Next links in product details
 
You have to modify the query - "product" is no longer in products table but products_XX when XX is the language

PhilJ 07-18-2012 07:31 AM

Re: Previous/Next links in product details
 
Yes, I kind of fixed it with this...

Quote:

SELECT pr.productid, pr.product, mem.membershipid FROM $sql_tbl[products_categories] AS cat, $sql_tbl[products_lng_en] 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 ORDER BY pr.product

Still need to join 'product.forsale' somehow...

alarnold 09-12-2012 04:50 PM

Re: Previous/Next links in product details
 
Does anyone have this working for 4.4.5 Pro? Willing to contribute work and or $ to get this working.

jacob1978 09-16-2012 12:03 PM

Re: Previous/Next links in product details
 
Hello,

I'm not getting this mod to work! I have the smart template from xcartmods.co.uk and running xcart gold 4.5.1

Does anyone know the solution to this next/prev mod?

Thanks,

RPMOffroad 10-04-2013 07:35 AM

Re: Previous/Next links in product details
 
Learner was right I just confirmed this on Version 4.4.5 (2 years later ) lol. But either way this is confirmed working. Thanks to all that contributed to this thread!!


All times are GMT -8. The time now is 11:52 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.