News:

Looking for documentation? Take a look on our wiki

Main Menu

Product next/previous navigation looping

Started by julash, September 13, 2017, 08:18:35 AM

Previous topic - Next topic

julash

Hi,

Not sure if this is a bug. Product navigation not working with a loop of same 2 product. I found this problem also on virtuemart demo site. Check http://demo.virtuemart.net/skirt-knock-rock-detail or http://demo.virtuemart.net/cap-baseball-detail and try going next/previous products. At some point both next/previous keep looping in same products.

First found the problem on a website I am developing with virtueMart 3.2.2 and joomla 3.7.4.

Thanks
Julash

Ventsi Genchev

I can not confirm this. The switching of demo site products works well.
Audio Store:
https://vsystem.bg - Bulgarian language
https://vsystem.bg/en - English

Jörgen

Hello

I can confirm the faulty behaviour.

Choose cowboy hat and click on next. Now You start looping between Safety helmet nad Cap baseball.
Choose skirt and click on next. Now You start looping between Dress shirt with tie and T-shirt Classic blue.

regards

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

Ventsi Genchev

Audio Store:
https://vsystem.bg - Bulgarian language
https://vsystem.bg/en - English

Studio 42

Simply click on "previous" product and you see it loop from H20 Jacket to Skirt to H20 Jacket ....

Milbo

The problem is here, that the ordering must be correctly determined, else you get this effect. It is very hard to avoid it. The real solution would be an own temporary list keeping the product order. Please check the demo here http://demo.virtuemart.net/ghd-2-07-detail

The reason is, that any call to the db is new and has no knowledge about the last. So the real order can differ from call to call. The sql executes the same as for the browsing view, just with an extra filter, which excludes the current product.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

shyntaxx

#6
Hi,

I am not sure if I understand the solution here .. Could you please explain a littlebit more .. ? Whats should I do in order so the product navigation won't between two items ?

I am using Joomla! 3.9.6 | VirtueMart 3.4.2 | Shaper_helix3 template

Best regards.

shyntaxx

Okay I've just solved it by setting:

Default product sort order: Product name
Default category sort order: Ordering, Name

It doing its job now properly!

pellegrinoL

#8
Hi,

I am having the same issue, I have set category order "price ascending" and also in the product category I have ordered by price (see Pic) but after some products, there is the loop between the 2 products...

Is there any possibility to solve it?

Best

I am using:
J: 3.8.13
VM: 3.4.3 10005

pellegrinoL

Hi If i use the solution proposed by shyntaxx
Quote from: shyntaxx on May 29, 2019, 10:01:31 AM
Okay I've just solved it by setting:

Default product sort order: Product name
Default category sort order: Ordering, Name

It doing its job now properly!


It works, but I would order the products in the category by price and not by name. When I change this option, there is again the loop.

Studio 42

The problem is that code used by Virtuemart. It need a little more complex query but the team dont try to solve this since now many years.

pellegrinoL


StefanSTS

There might be the possibility to push that feature with a VirtueMart Supporter Membership.

There is so much work going on that some features just get put on a hold, if the main function - that is mostly used - works.

That membership thing worked in the past for my customers, so you might just ask iStraxx or send them a ticket at extensions.virtuemart.net.

Regards
Stefan
--
Stefan Schumacher
www.jooglies.com - VirtueMart Invoice Layouts

Please use only stable versions with even numbers for your live shop! Use Alpha versions only if you know what risk you are taking.

subn3t

Quote from: pellegrinoL on June 05, 2019, 11:10:05 AM
Hi,

I am having the same issue, I have set category order "price ascending" and also in the product category I have ordered by price (see Pic) but after some products, there is the loop between the 2 products...

Is there any possibility to solve it?

Best

Same problem here. This fix does not work for me. Any ideas guys?

Joomla 3.10.11
VirtueMart 4.0.6 10690

GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation