Quoting Ed LaFrance (New Media E.M.S.) (ic_users at newmediaems.com):
> At 12:42 AM 7/5/2004, you wrote:
>> >Using the foundatiuon demo from 5.2
> >
> >Problem Description
> >---------------------
> >When using search for keyword resulting in multiple page list return or
> >menu item that has multipage list,
> >quanity box seems to be ignored on following second or more pages, adding
> >item only ..
> >Adds one to cart instead of the number put in the quanity box .
> >This only seems to happen on next page not first page but any following
> >pages .
> >Has any one else had this problem or can confirm that its not just my
> >store doing this ?
> >
> >
> >Thanks
> >Regards
> >Sean Benton
>> I could have sworn that this bug was fixed some time ago, but it seems that
> it has found it's way back into the code base. Here's one way to fix it:
What is the problem? Is it that [item-increment] doesn't start from 1?
I think the best way to solve it is to give a first-match pointer and
have the index subtracted from that.
Try this patch instead:
Index: templates/components/results_buylist
===================================================================
RCS file: /var/cvs/interchange/dist/standard/templates/components/results_buylist,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 results_buylist
--- templates/components/results_buylist 25 Apr 2004 17:07:55 -0000 1.1.1.1
+++ templates/components/results_buylist 5 Jul 2004 16:32:23 -0000
@@ -50,6 +50,7 @@
my $item = $parms[0];
$item =~ /(\d+)/ or return;
my $idx = $1;
+ $idx -= $CGI->{first_match};
$idx--;
$CGI->{mv_order_item} = $CGI->{$item};
$CGI->{mv_order_quantity} = "$q[$idx]";
@@ -64,6 +65,7 @@
<INPUT TYPE=hidden NAME=mv_action VALUE=refresh>
<INPUT TYPE=hidden NAME=mv_separate_items VALUE=0>
<INPUT TYPE=hidden NAME=mv_click VALUE=munge_quantity>
+<INPUT TYPE=hidden NAME=first_match VALUE="[value mv_first_match]">
<table width="95%" border="0" cellspacing="0" cellpadding="3">
<tr class="contentbar2">
--
Mike Heins
Perusion -- Expert Interchange Consulting http://www.perusion.com/
phone +1.765.647.1295 tollfree 800-949-1889 <mike at perusion.com>
I am convinced that life is 10% what happens to me and 90%
how I react to it. And so it is for you... we are in charge
of our attitudes. -- Charles Swindoll