Announcement

Collapse
No announcement yet.

How to get a products alternate display page value?

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

    How to get a products alternate display page value?

    Is it possible to get a product's alternate display page value in a Miva template?
    HTML Code:
    <mvt:do name="l.result" file="g.Module_Library_DB" value="Product_Load_ID(123, l.settings:product)" />
    <!-- something like &mvt:product:alternateDisplayPage; maybe? -->
    Bonus question. Is there a better way of checking if the product load was successful other than doing something like this...
    HTML Code:
    <mvt:if expr="l.settings:product:name EQ ''">
         <!-- PART: not found -->
    </mvt:if>
    alt-page.png

    #2
    TipPro You should be able to check the Alternate Display Page value using the Product_Load_ID function by checking the page_id value.

    If l.settings:product:page_id has a value other than 0 then the product has been assigned an Alternate Display Page.

    Note: This has been updated in version 10.08.00 to be l.settings:product:page_code
    Last edited by Nick; 11-08-23, 03:16 PM.
    Nicholas Adkins
    Technical Training Specialist / Miva, Inc.
    [email protected]
    https://www.miva.com/mivalearn

    Comment


      #3
      Probably not what you are looking for but you can also add the alternate display page to any of the batch screens. Along with add/remove/change it there..
      Mark Hood
      Vermont Gear

      Comment

      Working...
      X