Announcement

Collapse
No announcement yet.

How do you make the EmporiumPlus Next/Previous function short link friendly?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How do you make the EmporiumPlus Next/Previous function short link friendly?

    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

    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>&lt;&lt;&lt; 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 &gt;&gt;&gt;</strong></a>
    </mvt:if>
    But what if your link doesn't include a category code? I have tried using

    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>&lt;&lt;&lt; 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 &gt;&gt;&gt;</strong></a>
    </mvt:if>
    </div>
    </div>
    </div>
    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.
    Leslie Kirk (aka Leslie Nord leslienord)
    Miva Merchant Certified Developer
    Miva Merchant Specialist since 1998
    Previously of Webs Your Way

    Email me: leslie@lesliekirk.com
    www.lesliekirk.com

    Follow me: Twitter Twitter Twitter Twitter | Facebook | FourSquare | Pinterest | Flickr

  • It might be a good idea to only include next product in-stock.
    Thank you, Bill Davis

    Comment


    • Originally posted by William Davis View Post
      It might be a good idea to only include next product in-stock.
      Can you explain or provide sample code?
      Leslie Kirk (aka Leslie Nord leslienord)
      Miva Merchant Certified Developer
      Miva Merchant Specialist since 1998
      Previously of Webs Your Way

      Email me: leslie@lesliekirk.com
      www.lesliekirk.com

      Follow me: Twitter Twitter Twitter Twitter | Facebook | FourSquare | Pinterest | Flickr

      Comment


      • I just thought it may be a good idea when a customer proceeds to the next in-stock product only. For example in a collectible store, the rate of out of stock products is significantly higher that most online stores. Could you imagine moving to the next product only to find that is sold out, again and again, ....
        Thank you, Bill Davis

        Comment


        • The store owner wants the customer to be able to proceed in a code ascending manner. Sold out products can be hidden if needed.
          Leslie Kirk (aka Leslie Nord leslienord)
          Miva Merchant Certified Developer
          Miva Merchant Specialist since 1998
          Previously of Webs Your Way

          Email me: leslie@lesliekirk.com
          www.lesliekirk.com

          Follow me: Twitter Twitter Twitter Twitter | Facebook | FourSquare | Pinterest | Flickr

          Comment


          • Can you post the solution once you come up with it in RJRSSJ (run Jane run see spot jump)?
            Thank you, Bill Davis

            Comment

            Working...
            X