Base Tag Library
Note: We have updated our folder structure in Neto 6 and this has not been updated on all tweaks yet. More info.

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 [@maxqty@] 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%]

multilevelpricing Parameters

Name Options Description
id:'' String The SKU of the item you'd like to query for the bulk pricing figures
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
ifempty:'' HTML & b@se tags If the multilevelpricing returns no results, it'll load this block instead

multilevelpricing Data Tags

Name Description
[@minqty@] Minimum purchase quantity for that price group
[@maxqty@] Maximum purchase quantity for that price group
[@price@] The price for that price group
[@unit@] The unit of measure for purchase