[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] Chaining together OrderProfiles?
****** message to minivend-users from cfm@maine.com ******
On Thu, Aug 24, 2000 at 09:35:32PM +0200, Hans-Joachim Leidinger wrote:
> ****** message to minivend-users from Hans-Joachim Leidinger <jojo@buchonline.net> ******
>
> cfm@maine.com schrieb:
> >
> > ****** message to minivend-users from cfm@maine.com ******
> >
> > Has anyone ever done any work to chain together OrderProfiles?
> >
> > Rather than calling profile:
> > a for part a
> > b for part b
> > c for part c (where c is just sum of a and b)
> >
> > I'd rather call profile:
> > a for part a
> > b for part b
> > a+b for part c (where c is just sum of a and b)
>
> Hmmm...can't you use different profiles for different case? For example
>
> [if scratch a]
> [set checkout]
> address=required Oops! No address.
> [/set]
> [elsif scratch b]
> [set checkout]
> name=required You must give us your name.
> [/set]
> [/elsif]
> [else scratch c]
> [set checkout]
> name=required You must give us your name.
> address=required Oops! No address.
> [/set]
> [/else]
> [/if]
Yes, that is exactly what we want to avoid. Not only are the profiles
way more complex, they are in multiple pages in various combinations
depending on what is required. Not only do we have to keep all the
instances of b in sync (easy) but all the instances of any combination
with b (the hard part). And its more like a..e unique "mini" profiles
in various combinations. I bet it won't be too hard to stack and iterate
the profiles in Order::check_order.
--
Christopher F. Miller, Publisher cfm@maine.com
MaineStreet Communications, Inc 208 Portland Road, Gray, ME 04039
1.207.657.5078 http://www.maine.com/
Database publishing, e-commerce, office/internet integration, Debian linux.
-
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