Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

[mv] Raw_Subtotal



******    message to minivend-users from Victor Nolton <ven@pragakhan.com>     ******

Mike,

In Minivend 3 my friend found a tag called [raw_subtotal]
I haven't been able to find it in minivend 4. when I went through 
minivend 3 stuff I found this.

UserTag raw_subtotal Order noformat
UserTag raw_subtotal Routine <<EOF
sub {
	my $noformat = shift;
	my $save_entire = delete $Vend::Session->{discount}{ENTIRE_ORDER};
	my $save_all    = delete $Vend::Session->{discount}{ALL_ITEMS};
	my $sub = Vend::Interpolate::subtotal();
	$Vend::Session->{discount}{ENTIRE_ORDER} = $save_entire
		if $save_entire;
	$Vend::Session->{discount}{ALL_ITEMS} = $save_all
		if $save_all;
	return $noformat ? $sub : Vend::Util::currency($sub);
}
EOF

I admit right now I do not know much about minivend 4. Is this code 
compatible with minivend 4?

Ven

http://www.vensnews.com

Victor "Ven" Nolton __________________________ http://www.VensNews.com
http://PragaKhan.com  http://LordsofAcid.com  http://DarlingNikkie.com

         All HTML Encoded email will be ignored. Learn Standards.
-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: