Product Pricing

Product pricing on product attributes uses Ruby code.

Example Pricing Formulas

20 + (pages-20)/2 * 0.50
20 + extra_pages/2 * 0.50
20 + ((pages-uncounted_pages)-20)*0.50 
{1..1=>(20 + (pages-20)/2 * 0.50), 2..9=>(18.99 + (pages-20)/2 * 0.45), 10..1000=>(17.99 + (pages-20)/2 * 0.40)}.find { |range,unit_price| range.include?(units)}.last 

Last updated