VirtueMart Forum
VirtueMart 1.1.x [ Old version - no longer supported ] => Questions VM 1.1 ( the only active board for the old version) => Topic started by: xso232 on September 19, 2012, 00:26:14 am
-
on Joomla 1.5.26 using Virtuemart 1.1.9 I have been looking around on how to echo the total price or even use it in a IF/ELSE Statement - As to my research I've found
$GLOBALS['order_total'];
This is the value people are saying to use....
<?php
$val=$GLOBALS['order_total'];
if ( $val > 0 ) {
$aa='images/title-off.gif';}
else {
$aa='images/title-on.gif';
}
?>
However If I made a Module that had the above statements, then the output would always be the same. How do I call & declare $val to be the shopping cart total in virtuemart?