andreicos82 Posted August 14, 2010 Share Posted August 14, 2010 Ok...i need to add the word price in front of the product price. Here is a link to a product.http://sanita.ro/baterii-monocomanda-main/321-baterie-cada-hanba-2.htmlThe product price is 99,20 RON . I just need to add word price in fornt of 99,20 ron to look like... Price: 99,20 ron Link to comment Share on other sites More sharing options...
rocky Posted August 15, 2010 Share Posted August 15, 2010 Change line 158 of themes/darylita 2/product.tpl from: {convertPrice price=$product->getPrice(true, NULL, 2)} {if $product->getPrice(true, NULL, 2) != $product->getPrice(false, NULL, 2)}{l s='incl. tax'}{/if} to: {l s='Price:'} {convertPrice price=$product->getPrice(true, NULL, 2)} {if $product->getPrice(true, NULL, 2) != $product->getPrice(false, NULL, 2)}{l s='incl. tax'}{/if} and change line 241 of themes/darylita 2/js/product.js from: $('#our_price_display').text(formatCurrency(priceProduct, currencyFormat, currencySign, currencyBlank)); to: $('#our_price_display').text('Price: ' + formatCurrency(priceProduct, currencyFormat, currencySign, currencyBlank)); Link to comment Share on other sites More sharing options...
andreicos82 Posted August 15, 2010 Author Share Posted August 15, 2010 Solved Thx Link to comment Share on other sites More sharing options...
sooroos Posted July 2, 2013 Share Posted July 2, 2013 (edited) hi can u please help me with the same problem above but in product-list.tpl? Thx. At line 52 i think, but do i need to change something else? Edited July 2, 2013 by sooroos (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted July 2, 2013 Share Posted July 2, 2013 hi can u please help me with the same problem above but in product-list.tpl? Thx. At line 52 i think, but do i need to change something else? you use default template? let me know and i will give you solution Link to comment Share on other sites More sharing options...
sooroos Posted July 2, 2013 Share Posted July 2, 2013 hi, yes i use the default template, P.S. 1.5x Link to comment Share on other sites More sharing options...
vekia Posted July 2, 2013 Share Posted July 2, 2013 you've got in the code something like this: <div class="content_price"> {if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)}<span class="price" style="display: inline;">{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</span><br />{/if} {if isset($product.available_for_order) && $product.available_for_order && !isset($restricted_country_mode)}<span class="availability">{if ($product.allow_oosp || $product.quantity > 0)}{l s='Available'}{elseif (isset($product.quantity_all_versions) && $product.quantity_all_versions > 0)}{l s='Product available with different options'}{else}{l s='Out of stock'}{/if}</span>{/if} </div> right after the <div class="content_price"> add: {l s='price:'} effect: Link to comment Share on other sites More sharing options...
sooroos Posted July 2, 2013 Share Posted July 2, 2013 thx vekia, i kinda need it inside the second line, in order to keep the font, style and color from the price Link to comment Share on other sites More sharing options...
vekia Posted July 2, 2013 Share Posted July 2, 2013 that's right if you put it there, then you will the same font size, color etc. 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