Jump to content

[SOLVED] the word price in fornt of product price


Recommended Posts

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

  • 2 years later...

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

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:

N9KGlSN.png

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...