[ic] How can i handle two different carts for the same order?

Mike Heins interchange-users@icdevgroup.org
Wed Apr 30 18:14:00 2003


Quoting Luiz Carlos Maciel Junior (lmacieljr@adv.oabsp.org.br):
> At the end of the order it would show:
> 
> "
> SubTotal for items to be paid after 30 days: x
> SubTotal for items to be paid after  7 days: y
> Total to be paid for this order            : x+y
> "
> 
> Now come the question.
> 
> How can i handle two (or more) different carts (and, of course, subtotals)
> for the same order, based on itens that will be payd on different days?
> 

Easy:

    [subtotal cart=30days]
    [subtotal cart=7days]

You can always order items into different carts with mv_cartname variable,
and just about every totalling/taxing/shipping tag handles a named cart.

There are a multitude of mechanisms for handling multiple carts. When
it comes down to it, all they are is an array of hashes. Do a 

	[dump carts]

sometime to see what is there.

-- 
Mike Heins
Perusion -- Expert Interchange Consulting    http://www.perusion.com/
phone +1.513.523.7621      <mike@perusion.com>

Light travels faster than sound. This is why some people appear bright
until you hear them speak. -- unknown