Jump to content

[SOLVED] how to show currency sign in wholesale price in prestashop?


ahmadsajid
 Share

Recommended Posts

hi

I want to display the currency symbol, like dollar, pound or euro or other currency symbol right after the wholesale price.

I know prestashop doesn't show the wholesale price in the product page. but to show that I put this code in the product.tpl

 {if $product->wholesale_price}
{l s='Wholesale price: '}{$product->wholesale_price}{/if}



but there is no currency symbol showing up, so please help me how to display the currency symbol.

Thanks

Ahmad

Share this post


Link to post
Share on other sites

  • 3 weeks later...

Hi,

problem again!!! Now the wholesale price shows perfectly, but the price doesn't update with currency change. It's always same no matter what currency is selected. I.E, if I have a products wholesale price of 0.12 pound, when I switch to dollar, the price stays same. Any help please?

Share this post


Link to post
Share on other sites

Strange. The convertPrice function is supposed to take the currency into account. Try:

{if $product->wholesale_price}

{l s='Wholesale price:'} {convertPrice price=$product->wholesale_price currency=$cookie->id_currency}{/if}

Share this post


Link to post
Share on other sites

  • 5 weeks later...

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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More