sokpet Posted August 25, 2010 Share Posted August 25, 2010 HelloI want to have two prices on my product page, that means:Fisrt comes Basic price of the product (this only has to change if discount exists) - Does not has to change if atributes are chosenafter goes some atributes with price increaseand finally comes the total price (incluiding all increasing).A am trying to modify product.tplBut I can not get base price showing properly.Base price code {if !$priceDisplay || $priceDisplay == 2} {convertPrice price=$product->getPrice} span> {l s='tax incl.'} {/if} Total price: (this is correct) {if !$priceDisplay || $priceDisplay == 2} {convertPrice price=$product->getPrice(true, $smarty.const.NULL, 2)} {l s='tax incl.'} {/if} What should I write in the base price code? Link to comment Share on other sites More sharing options...
Patric Posted August 25, 2010 Share Posted August 25, 2010 Topic moved. Link to comment Share on other sites More sharing options...
sokpet Posted August 25, 2010 Author Share Posted August 25, 2010 I hope this is the right way, well at least it functions:I only changed the id for the first price, so it always show only the basic price and the second price now function like Total Price.Base price: {if !$priceDisplay || $priceDisplay == 2} {convertPrice price=$product->getPrice(true, $smarty.const.NULL, 2)} {l s='tax incl.'} {/if} +Nochange for the total price: {if !$priceDisplay || $priceDisplay == 2} {convertPrice price=$product->getPrice(true, $smarty.const.NULL, 2)} {l s='tax incl.'} {/if} Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now