Aurora Pricing Variables

Pricing

The following diagram is intended to describe and help maintain the coherent pricing logic of products in Aurora.

All prices in Aurora are stored including VAT and then pulled out for display or use by the Aurora_Basket class. Shipping and Handling charges are also dealt with by the Basket.

Displaying the price

Every time you call the price you should be using the following code:

{$product.my_price|displayPrice}

By using displayPrice it will add all of the relevant information assigned to that currency, such as the £ symbol and the currency conversion if applicable

Variables

VariableExplanationOutput
$product.product_priceThe price of the product, as entered into Aurora. This is before any discounts have been applied18.99
$product.my_priceThe price that any person will pay, including all of the discounts applied. A discount can be applied either via a Product Sale, or a Group/User discount.18.99
$product.price_rrpThe Recommended Retail Price26.99
$product.price_wasThe Was Price35.99
$product.price_savingprice_rrp - my_price8
$product.price_saving_percentThe price, with all discounts applied, compared to the RRP. A percentage of how much the customer is saving based on the my_price against the price_rrp.30
$product.price_saving_pre_savingsThe original product price against the RRP8
$product.price_saving_percent_pre_savingsThe price, without any discounts applied, compared to the RRP. A percentage of how much the customer is saving based on the my_price against the price_rrp.30
$product.price_saving_percent_with_savingsThe price, with all discounts applied, compared to the original price. A percentage of how much the customer is saving based on the my_price against the original product price.30
$product.price_saving_with_savingsThe price compared to the price before savings. So if any User/Group discount is applied, or the product is on a price promotion, you can show the customer how much they're saving18
$product.loyalty_pointsThe number of loyalty points someone will get for completing this purchase18

Display RRP

You only ever want to display the RRP or any type of saving if there is one in the first place. To do so you would just use code like the below:

{if $product.price\_rrp > $product.my\_price}  

You Save:

{$product.price\_saving|displayPrice} ({$product.price\_saving\_percent}%)  
{/if}