PDA

View Full Version : Help - Problem with v6.1.3 patch


skinnybloke
14-Jul-2003, 08:55 AM
Hi - I have just patched a site I am working on from v6.1.2 to v6.1.3.

I have a problem in that the quantity field that used to show "0" as the default quantity against products now shows as "1240444"

I am showing the quantity in the product page and using one checkout button per page.

cdicken
14-Jul-2003, 09:41 AM
That's really strange.

Would you be able to email a snapshot of your store (File | Export Snapshot) to communityadmin@actinic.co.uk and I'll get someone to take a look at what has happened.

cdicken
14-Jul-2003, 10:32 AM
Right - the problem is with the format for your Quantity box in 'Design | Text'.

If you click 'Go to' and go to prompt 2173, you have

%s<INPUT class="formfield" TYPE=text NAME="%s" SIZE="%d" VALUE="%d">

But the Actinic default has now changed to

%s<INPUT TYPE=text NAME="%s" SIZE="4" VALUE="%d">

...in order to allow people to more easily change the 'SIZE=' value. This unfortunately means that your %d and %s variables are being populated out of sequence.

The way to fix it is to change

%s<INPUT class="formfield" TYPE=text NAME="%s" SIZE="%d" VALUE="%d">

to

%s<INPUT class="formfield" TYPE=text NAME="%s" SIZE="4" VALUE="%d">

skinnybloke
14-Jul-2003, 10:36 AM
Hi Chris - thanks for the prompt reply - I'll give that a go.

skinnybloke
14-Jul-2003, 12:13 PM
sorted !!!

NormanRouxel
15-Jul-2003, 08:53 AM
In case anyone's interested in getting around skipping an intermediate variable and not losing the sequence for following variables:-

Just use DUMMY="%s" instead. As browsers will ignore the dummy sub-tag then the parameter sequence is preserved.

Norman