awesto / django-shop

A Django based shop system
http://www.django-shop.org
BSD 3-Clause "New" or "Revised" License
3.18k stars 1.04k forks source link

Add Previous/Next product #734

Closed haricot closed 4 years ago

haricot commented 6 years ago

This adds the possibility of linking the previous product and the next product in the detail of a product.

The template product_figure.html had to be reviewed because if a product is assigned to two category page, product.get_absolute_URL returns to the last category assigned which may not match the current category. that's why I replaced {{ product.get_absolute_URL}} with {{ request.path }} {{ product.slug }}

peek 28-05-2018 14-37

when the page is collapsed, previous / next are not displayed by choice. A swipe would be better.

I'm not particularly fond of this feature but it's part of a request.

jrief commented 6 years ago

👍 nice feature, always wanted to implement something like this myself!

haricot commented 4 years ago

closed in flavor #797