Announcement

Collapse
No announcement yet.

Token for Minimum Order Price Value

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

    Token for Minimum Order Price Value

    I'm trying to find a token for the Minimum Order Price that I can use in the Store Settings > Order Minimums > Minimum Not Met message.

    I couldn't find it listed anywhere so I thought it might be listed in the Token List utility.

    I was unable to find it there, and when I clicked on View All Tokens I got an errror:
    Code:
    { "success": 0, "error_code": "MER-UTIL-TKNL-00021", "error_message": "JSON_Save_Template_Source_To_Temporary_File: Function miva_template_compile Failed with error At 211:111-211:115 - syntax error, unexpected IDENTIFIER, expecting \u0027\u003E\u0027 on file: prod-product_display.mvc" }
    Does anyone know if that token exists and what it is?

    Also, what/where would be the best documentation or location to find that token? (Teach a man to fish...)

    Thanks,
    Psydde
    Psydde Delicious
    Delicious Boutique & Corseterie
    Philadelphia, PA
    www.DeliciousBoutique.com
    www.DeliciousCorsets.com

    #2
    delcorsets The TokenList error is because there is a syntax error on the prod-product_display template (specifically on line 211). This typically happens when there is a Miva conditional inside of an HTML tag. Try to move the conditional outside of the HTML tag and assign a variable within the condition, then you can render the variable in the HTML attribute.

    As for the minimum variable they are:

    Minimum Price = l.settings:store:omin_price
    Minimum Quantity = l.settings:store:omin_quant
    Minimum Not Met Message = l.settings:store:omin_msg
    Must Meet Both Minimums = l.settings:store:omin_all

    You are on the right track for the best method to find the variables/entities. Looking in the TokenList is the best option to find the variable names.

    Another option is to search the LSK: https://apps.miva.com/miva-merchant-...ource-kit.html
    Nicholas Adkins
    Technical Training Specialist / Miva, Inc.
    [email protected]
    https://www.miva.com/mivalearn

    Comment

    Working...
    X