Hi all
I am currently designing a store using a php shopping cart and know little (although i am learning) about PHP, I want to be able to add 2 rows to this bit of code that where it shows the price in UK pounds, it also shows it underneath in $ and Euros, here's the code"
$prod_total = $price * $contents[quantity][$x];
$price = sprintf("%.2f", $price);
echo"<TD align=center>$currency$price</TD>\n";
$product = $contents[product][$x];
$id = $contents[id][$x];
echo"<TD align=center><INPUT TYPE=text class=\"textbox\" size=3 name=quantity[$id] ";
echo"value=\"".$contents[quantity][$x]. "\"></TD>";
$prod_total = sprintf("%.2f", $prod_total);
echo"<TD align=center>$currency$prod_total</TD>\n";
echo"<TD align=center><A HREF=\"view_cart.php?product_options=$pass_options&remove=".urlencode($contents[product][$x]);
echo"".(!$ShoppingCart? "&session=$session": ""). "\">$la_view_car_rem</A>";
$cart_total2 = $cart_total2 + $prod_total;
$x ++;
}
echo"</TD></TR>";
echo"<tr bgcolor='$colour_1'><td colspan='$colspan' align='right'><b>$la_order_bask_tot</b></td><td align='center'>$currency".$cart->cart_total($prefix,$session,$sale). "</B></td><td> </td></tr></TABLE></td></tr>";
Could anyone kindly help me with this please.
Thank you.