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 ?
Thanks
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.
Here is my solution ... This I did and it works perfectly:
In any .tpl file, find this:
... and replace with this:
I hope it will be helpful to all ...
Have fun.
In any .tpl file, find this:
Code: Select all
<?php echo $product['price']; ?>
Code: Select all
<?php
$pricenocurrency = $product['price'];
$pricenocurrency = preg_replace( '/\D/', '', $pricenocurrency );
echo $pricenocurrency ;
?>
Have fun.
Who is online
Users browsing this forum: No registered users and 11 guests