[ic] Different Order Number based on Affiliate

Mike Heins mike at perusion.com
Wed Mar 22 11:27:19 EST 2006

Quoting Chris Bair (interchange at tssphoto.com):
> Been looking around the archives and the code, I was wondering if 
> anyone knows a way to have a different order number generated based 
> on the [data session source] affiliate value. I need it to add a R to 
> the beginning of the normal order number. I could just use some 
> If-then stuff to add it to the displayed number but that wouldn't 
> change the real number for when they are looking up order history and 
> such.

In the latest demo catalog, the order number is generated in 
etc/log_transaction by setting $Session->{mv_order_number}. 
Use that as an example.

You could also use a custom counter routine (as documented in the
counter tag docs) if you want, but the above would probably be easier.

Mike Heins
Perusion -- Expert Interchange Consulting    http://www.perusion.com/
phone +1.765.647.1295  tollfree 800-949-1889 <mike at perusion.com>

Find the grain of truth in criticism, chew it, and swallow
it. -- anonymous

More information about the interchange-users mailing list