On the site I'm building there are two prices for each product a retail price and a trade price. If the user has logged in and is a Trade User the site shows Trade Prices, if the user hasn't logged in or is not a trade user they see the Retail Price.
I've written the conditional "IF... THEN" statements to ensure the correct price is shown on my product detail page and when a user clicks "Add to Cart" both price are added to the cart.
Is is possible to create an alternate "SubTotal" and "GrandTotal" that adds up the "Trade Price" so that on the "Shopping Cart" and "Order Confirmation" page the Trade user will see the total trade price and the retail user will see the total retail price. At the minute the SubTotal add up all the Retail Prices okay but I need a second option that adds up all the Trade Prices.
I'm okay with writing the conditional arguements to ensure the correct price is displayed but I don't know how to add (or calculate) a second (alternative) sub total or grand total function.
I hope this all makes sense.
|
|
|