Jump to content

Price display changes


Recommended Posts

Hello

I 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 chosen

after goes some atributes with price increase

and finally comes the total price (incluiding all increasing).

A am trying to modify product.tpl

But 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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...