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
Variable | Explanation | Output |
---|---|---|
$product.product_price | The price of the product, as entered into Aurora. This is before any discounts have been applied | 18.99 |
$product.my_price | The 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_rrp | The Recommended Retail Price | 26.99 |
$product.price_was | The Was Price | 35.99 |
$product.price_saving | price_rrp - my_price | 8 |
$product.price_saving_percent | The 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_savings | The original product price against the RRP | 8 |
$product.price_saving_percent_pre_savings | The 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_savings | The 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_savings | The 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 saving | 18 |
$product.loyalty_points | The number of loyalty points someone will get for completing this purchase | 18 |
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}
Updated over 2 years ago