The description for the Next/Previous buttons function is "go to the next or previous product in the same category". The code includes the category code
But what if your link doesn't include a category code? I have tried using
http://www.leedsworldrefill.com/p_1591-01RF.html
With that said, I have tried both the original snippet and my short link friendly version and the previous and next items are still not the correct items. What determines the previous and next items using this snippet? It doesn't seem to follow what the items are even with the original snippet. The products are sorted by code ascending both by the category template and in the store admin.
Code:
<mvt:item name="toolkit" param="nextprevious|l.all_settings:product:code" /> <mvt:if expr="l.settings:tkskip:previous"> <a href="&mvte:global:sessionurl;Screen=PROD&Product_Code=&mvte:tkskip:previous;&Category_Code=&mvte:global:Category_Code;"> <strong><<< Previous Product</strong></a> </mvt:if> <mvt:if expr="l.settings:tkskip:next"> <a href="&mvte:global:sessionurl;Screen=PROD&Product_Code=&mvte:tkskip:next;&Category_Code=&mvte:global:Category_Code;"> <strong>Next Product >>></strong></a> </mvt:if>
Code:
<div class="column whole"> <div class="row"> <div class="column half left"> <mvt:item name="toolkit" param="nextprevious|l.all_settings:product:code" /> <mvt:if expr="l.settings:tkskip:previous"> <a href="/p_&mvte:tkskip:previous;.html"> <strong><<< Previous Product</strong></a> </mvt:if> </div> <div class="column half right"> <mvt:if expr="l.settings:tkskip:next"> <a href="/p_&mvte:tkskip:next;.html"> <strong>Next Product >>></strong></a> </mvt:if> </div> </div> </div>
With that said, I have tried both the original snippet and my short link friendly version and the previous and next items are still not the correct items. What determines the previous and next items using this snippet? It doesn't seem to follow what the items are even with the original snippet. The products are sorted by code ascending both by the category template and in the store admin.
Comment