ahmadsajid Posted December 27, 2010 Share Posted December 27, 2010 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 Link to comment Share on other sites More sharing options...
rocky Posted December 28, 2010 Share Posted December 28, 2010 Use: {if $product->wholesale_price} {l s='Wholesale price:'} {convertPrice price=$product->wholesale_price}{/if} Link to comment Share on other sites More sharing options...
ahmadsajid Posted December 28, 2010 Author Share Posted December 28, 2010 Thank you very much it worked perfectly. Link to comment Share on other sites More sharing options...
rocky Posted December 28, 2010 Share Posted December 28, 2010 Great. Please edit your first post and add [sOLVED] to the front of the title. Link to comment Share on other sites More sharing options...
ahmadsajid Posted January 14, 2011 Author Share Posted January 14, 2011 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? Link to comment Share on other sites More sharing options...
rocky Posted January 14, 2011 Share Posted January 14, 2011 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} Link to comment Share on other sites More sharing options...
ahmadsajid Posted January 14, 2011 Author Share Posted January 14, 2011 no mate, it's not working. you can check it here: Deen and Duniya Link to comment Share on other sites More sharing options...
ahmadsajid Posted January 14, 2011 Author Share Posted January 14, 2011 guys any Idea? Link to comment Share on other sites More sharing options...
vasekcekal Posted February 13, 2011 Share Posted February 13, 2011 Wholesale? What module are you using?THX Link to comment Share on other sites More sharing options...
ahmadsajid Posted February 14, 2011 Author Share Posted February 14, 2011 no module using default prestashop feature. code can be found at product.tpl 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