Post by herve11170 » Mon Apr 23, 2018 6:30 pm

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.

New member

Posts

Joined
Wed Feb 15, 2017 1:39 pm

Post by thekrotek » Mon Apr 23, 2018 6:41 pm

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.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by herve11170 » Mon Apr 23, 2018 6:54 pm

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.

New member

Posts

Joined
Wed Feb 15, 2017 1:39 pm

Post by thekrotek » Mon Apr 23, 2018 6:59 pm

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.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by herve11170 » Mon Apr 23, 2018 7:03 pm

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.

New member

Posts

Joined
Wed Feb 15, 2017 1:39 pm

Post by thekrotek » Mon Apr 23, 2018 7:07 pm

You can always ask for commercial support, if you can't do it yourself.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by herve11170 » Mon Apr 23, 2018 7:14 pm

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.

New member

Posts

Joined
Wed Feb 15, 2017 1:39 pm

Post by thekrotek » Mon Apr 23, 2018 7:25 pm

If you can't afford to pay for custom job, you learn, how to do it yourself. This is how life goes.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by herve11170 » Mon Apr 23, 2018 7:33 pm

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.

New member

Posts

Joined
Wed Feb 15, 2017 1:39 pm

Post by thekrotek » Mon Apr 23, 2018 7:42 pm

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!

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by herve11170 » Mon Apr 23, 2018 7:47 pm

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....

New member

Posts

Joined
Wed Feb 15, 2017 1:39 pm

Post by herve11170 » Fri Apr 27, 2018 3:56 pm

Hi,
for information, searching better in the Web, I found it and it works perfectly!
For Oc2.0.1.1 - and free!

New member

Posts

Joined
Wed Feb 15, 2017 1:39 pm

Post by IP_CAM » Fri Apr 27, 2018 8:42 pm

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.

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland
Who is online

Users browsing this forum: No registered users and 54 guests