Page 1 of 1

Next Previous product in product-page

Posted: Mon Apr 23, 2018 6:30 pm
by herve11170
Hello,
I found a good extension to have "next/previous" products in product page, (https://e-ticaretdersleri.com/opencart- ... t-addition) but it works with the product_id.
And follows the order of creation of the products without caring about categories and subcategories.
I'm not a php expert and I just need help to know how can I do to make it stay in the same category of the product that I look.
Perhaps it will be very complicated and I also thought to attribute a number to every article according to his category and subcategory (for example: A category -> 100 to 199, B category 200 to 299, etc... ) using , for example, the SKU field or another...
Example: if I'm looking the product #101, it's include between 100 and 199 then it is in the A category.
If I click "NEXT" I will see the following product, #102, etc...
Thank you for your help and sorry for my bad english.
I'm using opencart OC 2.0.1.1.

Re: Next Previous product in product-page

Posted: Mon Apr 23, 2018 6:41 pm
by thekrotek
So you want to navigate products in the same category only? I mean, if you have 10 products in a category, then Prev/Next links should navigate only these 10 products.

Re: Next Previous product in product-page

Posted: Mon Apr 23, 2018 6:54 pm
by herve11170
Yes, exactly! If I'm lookiing a cake in thecategory "Cakes" and I click "previous" or "next" I will go to another cake in the same category.

Re: Next Previous product in product-page

Posted: Mon Apr 23, 2018 6:59 pm
by thekrotek
This can be done, yes. But additional parameters should be queried and checked to achieve this. To be more specific, it's category ID. Also links will change.

Re: Next Previous product in product-page

Posted: Mon Apr 23, 2018 7:03 pm
by herve11170
I thought it was possible, with the category ID but don't know how doing it or how modify the extension I have to do it.

Re: Next Previous product in product-page

Posted: Mon Apr 23, 2018 7:07 pm
by thekrotek
You can always ask for commercial support, if you can't do it yourself.

Re: Next Previous product in product-page

Posted: Mon Apr 23, 2018 7:14 pm
by herve11170
I search people who made it before or people who can help me, or give me a link about this. I've got a little website and I can't pay a development.
I think this is an option that Opencart would have by deffect.
Thanks for your help.

Re: Next Previous product in product-page

Posted: Mon Apr 23, 2018 7:25 pm
by thekrotek
If you can't afford to pay for custom job, you learn, how to do it yourself. This is how life goes.

Re: Next Previous product in product-page

Posted: Mon Apr 23, 2018 7:33 pm
by herve11170
No, sorry, there is people who help you, who give you some examples or link that they have used to do this, etc...
It's not a special development, it's something that a lot off people have in his website, opencart or not opencart.

Re: Next Previous product in product-page

Posted: Mon Apr 23, 2018 7:42 pm
by thekrotek
When you visit a grocery store next time, don't forget to tell them about this "free for all" policy - they will surely give you anything you want and won't ask to pay. It's not a "special development" anyway, a lot of people grow vegetables in their yards and bake bread at home. Some even have chicken!

Re: Next Previous product in product-page

Posted: Mon Apr 23, 2018 7:47 pm
by herve11170
sorry to know you.
The extension exist in opencart and it's FREE! but it's only for 1.x and I've got 2.x OC....

Re: Next Previous product in product-page

Posted: Fri Apr 27, 2018 3:56 pm
by herve11170
Hi,
for information, searching better in the Web, I found it and it works perfectly!
For Oc2.0.1.1 - and free!

Re: Next Previous product in product-page

Posted: Fri Apr 27, 2018 8:42 pm
by IP_CAM
Well, some next/previous Functions might not work in all cases, as I found out.
If one removes a Product from an existing range, it's product-number will no
longer exist, and this will prevent this function from further work, if such a
product number would be linked NEXT or PREVIOUS on a given Product Page.
Just to have it mentioned.
Ernie

PS: I've got a little website and I can't pay a development ...
I understand your Problem, but you always could learn, to 'handle' Modifications,
if you have no cash, to pay for Support. Just never forget, that this Sofware is not a
shareware Project, so better don't expect others, to share all their knowledge with
you, just for the fun of it, if you are unable to ever give something back in return.