[interchange-docs] xmldocs - racke modified glossary/price

docs at icdevgroup.org docs at icdevgroup.org
Mon Dec 10 15:08:31 EST 2007


User:      racke
Date:      2007-12-10 20:08:31 GMT
Modified:  glossary price
Log:
Vend::Interpolate qualifcation not needed

Revision  Changes    Path
1.6       +5 -4      xmldocs/glossary/price


rev 1.6, prev_rev 1.5
Index: price
===================================================================
RCS file: /var/cvs/xmldocs/glossary/price,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- price	10 Dec 2007 11:09:38 -0000	1.5
+++ price	10 Dec 2007 20:08:30 -0000	1.6
@@ -38,16 +38,17 @@
 </para>
 <para>
 The following example can be used to base your own usertag on. Product code and
-quantity for the price calculation can be found in 
-<literal>$Vend::Interpolate::item</literal>.
+quantity for the price calculation can be found in the 
+<literal>$item</literal> variable from the
+<literal>Vend::Interpolate</literal> namespace.
 
 <programlisting><![CDATA[
 UserTag calc_price Routine <<EOR
 sub {
 	my ($code, $quantity, $set);
 
-	$code = $Vend::Interpolate::item->{code};
-	$quantity = $Vend::Interpolate::item->{quantity};
+	$code = $item->{code};
+	$quantity = $item->{quantity};
 
 	$Tag->perl({tables => 'vendors_pricing'});
 








More information about the docs mailing list