priceline
[priceline, text(, price1, price2)]
Display left-aligned text and 2 prices right-aligned.
Parameters
text - text to be displayed first
price1 - optional text to be displayed on the right
price2 - optional text to be displayed on the right
See Also
[pricehead][pricehigh][colorsection]content/system/classes Examples
Example#1 used in a colorsection
[colorsection]
[priceline,Product Description]
[colorsectionend]
Output:
Example#2 used in a colorsection with 1 price
[colorsection]
[priceline,Product Description,£9.00]
[colorsectionend]
Output:
Example#3 used in a colorsection with 2 prices
[colorsection]
[priceline,Product Description,£9.00,£10.00]
[colorsectionend]
Output:
Product Description
£10.00
£9.00
Example#4 creating a pricelist
[colorsection]
[pricehead,Product Category,(description),single,pack]
[priceline,Product Description,£5.00,£9.00]
[priceline,Product Description,£6.00,£10.00]
[pricehigh,Sub-Category]
[priceline,Product Description,£6.00,[]]
[priceline,Product Description, ,£10.00]
[pricehigh, , ,case,pallet]
[priceline,Product Description,£60.00,£500.00]
[colorsectionend]
include in content/system/classes
.PriceHead {
color:[var,colors.white];
}
.PriceHigh {
color:[var,colors.orange];
}
.PriceSub {
color:[var,colors.orange];
}
.PriceLine {
color:[var,colors.grey];
}
Output:
Product Category
(description)pack
single
Product Description
£9.00
£5.00
Product Description
£10.00
£6.00
Sub-CategoryProduct Description
[
£6.00
]
Product Description
£10.00
Product Description
£500.00
£60.00
Notes
for use in a [section] override the color in the PriceLine class in content/system/classes
to override the Price colours use: PriceHead, PriceHigh, PriceSub, PriceLine classes in content/system/classes