Forums / Templates, Stylesheets, Page Layout / display total price on product info page

display total price on product info page

Locked

Started by shaz915 on 24 Mar 2010, 8:19 PM · Views: 506

Results 1 to 1 of 1
This thread is locked. New replies are disabled.
24 Mar 2010, 8:19 PM
#1
shaz915 avatar

shaz915

New Zenner

Join Date:
Feb 2010
Posts:
4
Plugin Contributions:
0

display total price on product info page

Hi,

Not sure if I've picked the right spot to post this question, but here goes:

I am setting up my products to show their unit price, with a minimum quantity of 50. I'd like to show the total price underneath the unit price on the product info page.

I'm not a PHP expert, but I can read and understand a small amount. I have tried the following, but it doesn't work because the currency symbol is in the way.

	
$totalprice = zen_get_products_display_price((int)$_GET['products_id'])*50; 
	echo '<p class="biggerText">50 for ' . $totalprice . '</p>'; 

Can anyone help me with how to strip the currency symbol, multiply the resulting number by 50, and then add the currency symbol back in?