Community Forums

[Released] Add "<< Previous" and "Next >>" links

Free manual modifications can be contributed here. Modifications are manual snippets of code that are pasted into the forums for others to use.

[Released] Add "<< Previous" and "Next >>" links

Postby Goober » Mon Sep 07, 2009 11:02 pm

This module adds "Next" and "Previous" links to the product view template.

Whenever your customers view products in a specific Category, products for a specific Manufacturer or the results of the site search, these links will appear and enable your customers to browse these items by clicking these "Next Item >>" and "<< Previous Item" links. The links appear as Names of the products that will be shown if clicked.
npl_screenshot_small.gif
npl_screenshot_small.gif (37.94 KiB) Viewed 4202 times

Installation.

This modification requires you to update two files on your web site. Installation instructions are provided.

DOWNLOAD
OpenCart modules and custom programming
Please visit site and store www.opencartmods.com
Demo Site
Goober
 
Posts: 34
Joined: Tue Aug 18, 2009 2:44 am
Location: New York, USA

Re: [Released] Add "<< Previous" and "Next >>" links

Postby comiclair » Tue Sep 08, 2009 4:09 am

looks good...does it work on 1.3.2? thanks
comiclair
 
Posts: 134
Joined: Sat Jun 06, 2009 9:08 pm
Location: Trenton, NJ

Re: [Released] Add "<< Previous" and "Next >>" links

Postby madany » Tue Sep 08, 2009 5:44 am

doesnt work on OC 1.3.2 ???
madany
 
Posts: 76
Joined: Mon Aug 31, 2009 6:03 am

Re: [Released] Add "<< Previous" and "Next >>" links

Postby madany » Tue Sep 08, 2009 5:56 am

oops sorry...it works on 1.3.2. it must be clicked from "categories"
i clicked the product from "the latest product" and it doesnt work..
madany
 
Posts: 76
Joined: Mon Aug 31, 2009 6:03 am

Re: [Released] Add "<< Previous" and "Next >>" links

Postby Donce » Tue Sep 08, 2009 6:30 am

hello,

hmm, with 130 version, i get this error..
http://www.part.lt/img/9365a1cb7cce8218 ... 755363.png

(or it is my system?)
Donce
 
Posts: 68
Joined: Fri Aug 28, 2009 12:22 pm

Re: [Released] Add "<< Previous" and "Next >>" links

Postby abmcr » Tue Sep 08, 2009 7:16 am

The code of the module is encrypted.... :(
abmcr
 
Posts: 48
Joined: Wed Jun 03, 2009 3:38 pm

Re: [Released] Add "<< Previous" and "Next >>" links

Postby Goober » Tue Sep 08, 2009 5:44 pm

comiclair wrote:looks good...does it work on 1.3.2? thanks


Yes, it works on v1.3.2

Thanks
/Goober
OpenCart modules and custom programming
Please visit site and store www.opencartmods.com
Demo Site
Goober
 
Posts: 34
Joined: Tue Aug 18, 2009 2:44 am
Location: New York, USA

Re: [Released] Add "<< Previous" and "Next >>" links

Postby Goober » Tue Sep 08, 2009 6:14 pm

Donce wrote:hello,

hmm, with 130 version, i get this error..
http://www.part.lt/img/9365a1cb7cce8218 ... 755363.png

(or it is my system?)


Hi,

I just updated the mod to support v1.3.0 in addition to v1.3.2

DOWNLOAD
OpenCart modules and custom programming
Please visit site and store www.opencartmods.com
Demo Site
Goober
 
Posts: 34
Joined: Tue Aug 18, 2009 2:44 am
Location: New York, USA

Re: [Released] Add "<< Previous" and "Next >>" links

Postby Goober » Tue Sep 08, 2009 6:36 pm

madany wrote:oops sorry...it works on 1.3.2. it must be clicked from "categories"
i clicked the product from "the latest product" and it doesnt work..


Hi,

Yeah, the mod won't kick in if the product is clicked from "the latest products". Right now the mod works if viewing products from "Categories", "Manufacturer" and "Search Results".

The problem is that there are no links to activate this display, so the mod doesn't know that the product is viewed from there.

However, if you're willing to make one more edit to one of the templates, the mod can be made to work with "latest products" as well.

Let me know if this additional functionality is needed and I'll update the mod.

Thanks
/Goober
OpenCart modules and custom programming
Please visit site and store www.opencartmods.com
Demo Site
Goober
 
Posts: 34
Joined: Tue Aug 18, 2009 2:44 am
Location: New York, USA

Re: [Released] Add "<< Previous" and "Next >>" links

Postby nzjolly » Tue Sep 08, 2009 9:15 pm

yep an update would be great mate :-)
nzjolly
 
Posts: 53
Joined: Mon Aug 31, 2009 10:52 pm

Re: [Released] Add "<< Previous" and "Next >>" links

Postby madany » Wed Sep 09, 2009 4:06 am

sounds great... update is needed man... ;D
madany
 
Posts: 76
Joined: Mon Aug 31, 2009 6:03 am

Re: [Released] Add "<< Previous" and "Next >>" links

Postby Goober » Wed Sep 09, 2009 9:47 pm

UPDATE has been posted.

The latest revision of the mod now supports "<< Previous" and "Next >>" links when viewing products from the latest product list on the home page.

Support for v1.2.8, v1.2.9, v1.3.x has also been added.

The mod now also includes an optional field that will allow you to control how many latest products are shown on the home page from the admin panel. This control is optional. Should you decide not to use it, you would be able to specify a different number of latest products for which the links will be activated. For example, if on your home page you show 4 latest products, you can tell the mod to cycle through 8 or more latest products. If you do use this option, then the mod will force the number of products on the home page and the links loop to always be the same. I hope that makes sense to you guys.

Let me know if you have any questions

Thanks
/Goober
OpenCart modules and custom programming
Please visit site and store www.opencartmods.com
Demo Site
Goober
 
Posts: 34
Joined: Tue Aug 18, 2009 2:44 am
Location: New York, USA

Re: [Released] Add "<< Previous" and "Next >>" links

Postby madany » Thu Sep 10, 2009 2:49 am

cool.. ;)
thx man...
madany
 
Posts: 76
Joined: Mon Aug 31, 2009 6:03 am

Re: [Released] Add "<< Previous" and "Next >>" links

Postby madany » Thu Sep 10, 2009 4:31 am

i just found a lil problem...
i got 2 languages installed. when i change/switch the lang, the link disappears... :(
madany
 
Posts: 76
Joined: Mon Aug 31, 2009 6:03 am

Re: [Released] Add "<< Previous" and "Next >>" links

Postby Goober » Fri Sep 11, 2009 2:39 pm

madany wrote:i just found a lil problem...
i got 2 languages installed. when i change/switch the lang, the link disappears... :(

Looking into it.

Thanks
/Goober
OpenCart modules and custom programming
Please visit site and store www.opencartmods.com
Demo Site
Goober
 
Posts: 34
Joined: Tue Aug 18, 2009 2:44 am
Location: New York, USA

Re: [Released] Add "<< Previous" and "Next >>" links

Postby nzjolly » Sat Sep 12, 2009 1:00 am

thanks for this, legend , great work.

one thing, (Please Please) if possible, are we able to make it just <<<Previous & Next>>>> maybe optional?
would like to have Previous and Next instead of the name of the next and previous products.
nzjolly
 
Posts: 53
Joined: Mon Aug 31, 2009 10:52 pm

Re: [Released] Add "<< Previous" and "Next >>" links

Postby Goober » Thu Sep 17, 2009 9:10 pm

Goober wrote:
madany wrote:i just found a lil problem...
i got 2 languages installed. when i change/switch the lang, the link disappears... :(

Looking into it.

Thanks
/Goober


I looked into. Installed second langauge, on v1.3.2, and it works ok for me. I did find a problem with one of the language contributions. This problem is when the contribution is not "native" to OpenCart. When you install the language module, you should not have to overwrite any existing files. One of these contribs did. Adn that's the one that didn't work. The other, native, language contrib, installaed without a glitch and the links worked just fine.

You can PM me if you would like me to make it work on your site.

Thanks
/Goober
OpenCart modules and custom programming
Please visit site and store www.opencartmods.com
Demo Site
Goober
 
Posts: 34
Joined: Tue Aug 18, 2009 2:44 am
Location: New York, USA

Re: [Released] Add "<< Previous" and "Next >>" links

Postby Goober » Thu Sep 17, 2009 9:11 pm

nzjolly wrote:thanks for this, legend , great work.

one thing, (Please Please) if possible, are we able to make it just <<<Previous & Next>>>> maybe optional?
would like to have Previous and Next instead of the name of the next and previous products.


Sounds like a reasonable request. I'll look into it.

Thanks
/Goober
OpenCart modules and custom programming
Please visit site and store www.opencartmods.com
Demo Site
Goober
 
Posts: 34
Joined: Tue Aug 18, 2009 2:44 am
Location: New York, USA

Re: [Released] Add "<< Previous" and "Next >>" links

Postby Goober » Sun Sep 20, 2009 9:45 pm

nzjolly wrote:thanks for this, legend , great work.

one thing, (Please Please) if possible, are we able to make it just <<<Previous & Next>>>> maybe optional?
would like to have Previous and Next instead of the name of the next and previous products.


Support for the use of words such as Previous and Next has been added.
Also added support for the Category sort. After using the sort dropdown, you can now browse the category using previous and next links in a sorted order.

http://www.opencart.com/index.php?route ... ion_id=394

Thanks
/Goober
OpenCart modules and custom programming
Please visit site and store www.opencartmods.com
Demo Site
Goober
 
Posts: 34
Joined: Tue Aug 18, 2009 2:44 am
Location: New York, USA

Re: [Released] Add "<< Previous" and "Next >>" links

Postby nzjolly » Fri Sep 25, 2009 4:45 am

This works a treat, thank you so very very much, legend!!!!!
nzjolly
 
Posts: 53
Joined: Mon Aug 31, 2009 10:52 pm

Next

Return to Modifications

Who is online

Users browsing this forum: No registered users and 3 guests

Hosted by Arvixe Web Hosting