[ic] [total-cost] & [salestax] & manually added items

Stefan Hornburg racke at linuxia.de
Mon Oct 11 03:59:13 EDT 2004


On Mon, 11 Oct 2004 09:10:20 +0200
Carsten Jahnke <carstenjahnke at web.de> wrote:

> Hello list,
> 
> for an SAP-OCI-interface implementation I put items (not existing in the
> products db) manually into the users basket. Price, taxrate, description
> etc. come per item dynamically from the interface (simple http-post
> submission...), so I loop through $CGI and put these items into the
> active cart:
> 
> push (@{$Carts->{main}}, { 
> 			code=>"$v",
> 			description=>$desc,
> 			price=>$price,
> 			quantity=>$qty,
> 			comment => $long,
> 			supplier_id => $sup,
> 			taxrate => $tax,
> 			oci => 1, 
> 		});
> 
> In the [item-list] I can access several item properties (e.g. taxrate,
> price) only by using [item-modifier ...], that's ok and I can handle
> that but how can I make [total-cost] and [salestax] at the end of my
> basket page show the correct values including quantity,price and taxrate
> of my manually added items?!?! :|
> Do I have to add the items otherwise? As onfly-items? Who can help me?

You can define custom functions for calculating item price and salestax.

Price:
CommonAdjust [calc-price]

Tax (salestax.asc):
default [calc-salestax]

See the archives for example implementations of that.

Bye
	Racke


-- 
LinuXia Systems => http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP => http://www.icdevgroup.org/
Interchange Development Team



More information about the interchange-users mailing list