[ic] Will the Real Saved Carts Solution Please Stand Up
Jon
interchange-users@icdevgroup.org
Tue Jan 28 00:19:00 2003
This seems to exist in both 4.8.5 and 4.9.3. Maybe it has been fixed
since then.
The difference between component saved_carts_list_small and
saved_carts.html is the structure of the looping ITL code.
At the top of both modules is [if value carts] which branches
around the perl code in saved_carts.html but yet still flows
through [loop list="saved_carts_carts saved_carts_recurring"]
section of code so that it can display ' No Saved Carts entered.'
and/or No Recurring Orders entered. However, in
saved_carts_list_small the [if value carts] branches around
both the perl and the looping ITL code so that nothing is
displayed unless [if value carts] is true.
My solution is to add the following lines to saved_carts.html
above the [if value carts].
[perl]
$Scratch->{saved_carts_carts} = '';
$Scratch->{saved_carts_recurring} = '';
[/perl]
This will clear out the variables used by
[loop list="saved_carts_carts saved_carts_recurring"]
giving the perl code a change to legitimately set them up if
appropriate. Sorry for the wordy answer but didn't know
how else to get it out.
Anyone think of a better way to fix this ??
Jon