[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] forms, profiles, checkout
Jurgen Botz <jurgen@botz.org> writes:
> Forms, profiles and checkout seem to be the most poorly documented part
> of IC, or at least I couldn't find very much info on them. So I have
> some questions...
>
> 1) The profiles of the foundation store use a variety of IC tags. Are
> there any restriction on what you can do in a profile? Should I be
> able to manipulate all the session state? [userdb save] doesn't
> seem to work for me in a profile.
Basically any tag will work, but you have to be aware that a profile
has a different parsing scheme then a page (see docs).
>
> 2) &final triggers the actual order processing, right? Can that be
> inside a conditional, i.e. can I say something like...
>
> [if value user_checked_box]
> &final
> [/if]
>
> ..? And in general, how do these &thingies work, are they just
> subroutine calls and sure to be processed sequentially?
That'll work. First the profile is interpolated, than the profile
is parse again sequentially for &thingy etc.
>
> 3) In a profile, is there any difference between...
>
> &set=some_value 123
>
> ...and...
>
> [value name=some_value set=123] ...?
Certainly, see above.
>
> 4) After &final processing, what is the state of the session? Does
> $Values get reset? What about $Scratch?
The cart will be dropped after the order is finished, but this at
a later point.
Ciao
Racke
--
Think of it !
For projects and other business stuff please refer to COBOLT NetServices
(URL: http://www.cobolt.net; Email: info@cobolt.net; Phone: 0041-1-3884400)