Post by johnzhang » Sat Jun 04, 2011 9:42 am

How i get the price value (NO currency symble on the price) on product.tpl file ?
<?php echo $text_price; ?> ,this price have currency symble on the price

such as $50 i need it is 50

please help me ?

New member


Sun Apr 18, 2010 11:02 am

Post by mberlant » Sat Jun 04, 2011 9:48 am

A complete discussion of this exact topic, originated by you, is here. Please refer to that thread for all discussion on this topic. You have been given good advice in your other thread. Starting a new thread here with the exact same question will not yield an answer that is any more understandable to you.

Please use proper English at all times, so that all members may understand you.

User avatar
Active Member


Sun Mar 13, 2011 8:33 pm

Post by dan74mm » Wed Jan 21, 2015 8:41 pm

Here is my solution ... This I did and it works perfectly:

In any .tpl file, find this:

Code: Select all

<?php echo $product['price']; ?>
... and replace with this:

Code: Select all

				$pricenocurrency = $product['price'];
				$pricenocurrency  = preg_replace( '/\D/', '', $pricenocurrency  ); 
				echo $pricenocurrency ; 
I hope it will be helpful to all ...

Have fun.

New member


Sat Oct 22, 2011 11:08 am
Who is online

Users browsing this forum: No registered users and 18 guests