Announcement

Collapse
No announcement yet.

Points & Loyalty Function

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

    Points & Loyalty Function

    Ok, I give up. Can someone point me to the correct function to display on the product page the amount of points that can be earned for that product.

    #2
    You can find the function here: https://docs.miva.com/how-to-guides/...alty#functions

    HTML Code:
    Product_Points
    Product_Points( basket var, product var, subterm_id, variant_id, quantity, points_information var)
    
    :points_information:base_points = Number
    :points_information:base_points_total = Number
    :points_information:points = Number
    :points_information:points_total = Number
    :points_information:promotions[ x ]:descrip = String
    :points_information:promotions[ x ]:display = Boolean
    :points_information:promotions[ x ]:points = Number
    
    Example
    <mvt:item name="points" param="Product_Points( l.settings:basket, l.settings:product, 0, 0, 1, l.settings:product:points_information )" />
    Nicholas Adkins
    Technical Training Specialist / Miva, Inc.
    [email protected]
    https://www.miva.com/mivalearn

    Comment


      #3
      Is there a way to also display the dollar amount of the points?
      Leslie Kirk
      Miva Certified Developer
      Miva Merchant Specialist since 1997
      Previously of Webs Your Way
      (aka Leslie Nord leslienord)

      Email me: [email protected]
      www.lesliekirk.com

      Follow me: X | Facebook | Pinterest

      Comment

      Working...
      X