Author Topic: Display Total Price in Joomla Template or Module  (Read 1111 times)

xso232

  • Beginner
  • *
  • Posts: 7
Display Total Price in Joomla Template or Module
« 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

Code: [Select]
$GLOBALS['order_total'];This is the value people are saying to use....

Code: [Select]
<?php

$val
=$GLOBALS['order_total'];

if ( 
$val ) {
$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?