multilevelpricing

multilevelpricing

Generates a list of data about the bulk pricing of an item

Example

[%multilevelpricing id:'[@sku@]'%]
    [%param *header%]
        <h4>Bulk Pricing</h4>
    [%/param%]
    [%param *body%]
        <p>Buy [%format type:'number' dp:'0' sp:','%][@minqty@][%/format%] to [%format type:'number' dp:'0' sp:','%][@maxqty@][%/format%] : Pay [%format type:'currency'%][@price@][%/format%] [@unit@]</p>
    [%/param%]
    [%param *footer%]
    [%/param%]
[%/multilevelpricing%]

Usage

The multilevelpricing tag prints bulk pricing information based on what is configured in neto. In the sample above, it repeats the body tag for each price group based on min/max

"Or more" logic

By default we use this code in our templates, where we add some "if" logic to look at the for 0 to add some "or more" text as in this case neto see's 0 as infinite.

[%multilevelpricing id:'[@sku@]'%]
    [%param *header%]
        <h4>Bulk Pricing</h4>
    [%/param%]
    [%param *body%]
        <p> Buy [%format type:'number' dp:'0' sp:','%][@minqty@][%/format%]
        [%if [@maxqty@] > 0%]
            to [%format type:'number' dp:'0' sp:','%][@maxqty@][%/format%] :
        [%else%]
            or more :
        [%/if%]
        Pay [%format type:'currency'%][@price@][%/format%] [@unit@] </p>
    [%/param%]
    [%param *footer%]
    [%/param%]
[%/multilevelpricing%]

Parameters

Name Options Description
id:'' String The SKU of the item you'd like to query for the bulk pricing figures
ifempty:'' HTML & b@se tags If the multilevelpricing returns no results, it'll load this block instead
*header HTML & b@se tags Renders a single usable space above the body
*body HTML & b@se tags Runs an array for result
*footer HTML & b@se tags Renders a single usable space below the body

Data Tags (body)

Name Product Field Example Description
[@count@] 0 Minimum purchase quantity for that price group
[@maxqty@] Max 5 Maximum purchase quantity for that price group
[@minqty@] Min 2 Minimum purchase quantity for that price group
[@price@] Price 74.95 The price for that price group

Data Tags (product page)

Name Product Field Example Description
[@unit@] Selling Unit of Measure ea The unit of measure for purchase. This is a field from the product page

Was this article useful?

Be notified when this page is updated. Optional.