E-Junkie Forum http://www.e-junkie.com/bb/ E-Junkie Forum RSS en-us Copyright 2012, 19.5 Degrees. All rights reserved. webmaster@e-junkie.com webmaster@e-junkie.com Fri, 29 Jan 2010 03:51:00 GMT Fri, 10 Feb 2012 16:03:55 GMT 681 E-JUNKIE 5 E-Junkie Forum http://www.e-junkie.com/bb/ http://www.e-junkie.com/ej/logo.gif 290 104 Post #8 http://www.e-junkie.com/bb/topic/3978/pg/0#post13108 http://www.e-junkie.com/bb/topic/3978/pg/0#post13108 Fri, 29 Jan 2010 03:51:00 GMT E-junkie Discussions; E-junkieGuru Post #7 http://www.e-junkie.com/bb/topic/3978/pg/0#post13108 http://www.e-junkie.com/bb/topic/3978/pg/0#post13108 Fri, 15 Jan 2010 04:35:46 GMT
I reposted it here: candytorahs.com/ej/test-three.php. Some of the image links are broken - just ignore them. The problem is still demonstrated.

In Chrome, I can choose a rush fee and it's added correctly. Regarding the double-ampersand, it's gone now. And the "red and blue" text (os2) is optional. Whether it's a string with spaces or just a null value has no effect on the problem.

Thanks]]>
E-junkie Discussions; Harry
Post #6 http://www.e-junkie.com/bb/topic/3978/pg/0#post13108 http://www.e-junkie.com/bb/topic/3978/pg/0#post13108 Thu, 14 Jan 2010 21:51:22 GMT
<form id="orderform" name="orderform" style="margin:0;padding:0;" action="javascript:EJEJC_multiAdd(Array('https://www.e-junkie.com/ecom/gb.php?c=cart&i=111111&cl=99999&ejc=2&o1=regular&&on0=design&os0=Adam&on1=cel&os1=Harry&on2=colors&os2=red and blue&quantity=76','https://www.e-junkie.com/ecom/gb.php?c=cart&i=222222&cl=99999&ejc=2'));" target="ej_ejc" method="POST" accept-charset="UTF-8">

I noticed a couple things that may be relevant to the problem you were having. First, you've got a double & where there should be only one -- i.e., 'o1=regular&&on0=design' should be 'o1=regular&on0=design'. Second, there may be a problem using spaces in option values within a URL -- i.e., 'os2=red and blue' should be either 'os2=red+and+blue' or if that doesn't work, 'os2=red%20and%20blue' (%20 is the proper URL-encoding for an ASCII [space] character, but using + for a [space] should work as well).]]>
E-junkie Discussions; E-junkieGuru
Post #5 http://www.e-junkie.com/bb/topic/3978/pg/0#post13108 http://www.e-junkie.com/bb/topic/3978/pg/0#post13108 Wed, 30 Dec 2009 00:11:51 GMT
It works in Chrome, but not in Firefox.]]>
E-junkie Discussions; Harry
Post #4 http://www.e-junkie.com/bb/topic/3978/pg/0#post13108 http://www.e-junkie.com/bb/topic/3978/pg/0#post13108 Wed, 30 Dec 2009 00:03:26 GMT E-junkie Discussions; E-junkieNinja Post #3 http://www.e-junkie.com/bb/topic/3978/pg/0#post13108 http://www.e-junkie.com/bb/topic/3978/pg/0#post13108 Sat, 26 Dec 2009 15:45:51 GMT
What resources are available?

Harry]]>
E-junkie Discussions; Harry
Post #2 http://www.e-junkie.com/bb/topic/3978/pg/0#post13108 http://www.e-junkie.com/bb/topic/3978/pg/0#post13108 Fri, 25 Dec 2009 04:26:03 GMT
Harry
Here's the summary:

Chrome3; hard-coded string SUCCESS; dynamic string FAIL
Safari4; hard-coded string SUCCESS; dynamic string FAIL
Firefox3.5: hard-coded string FAIL; dynamic string FAIL
IE8.0: hard-coded string FAIL; dynamic string FAIL


adding a single product is always successful]]>
E-junkie Discussions; Harry
Post #1 http://www.e-junkie.com/bb/topic/3978/pg/0#post13108 http://www.e-junkie.com/bb/topic/3978/pg/0#post13108 Fri, 25 Dec 2009 04:16:26 GMT
I'm trying to use the multiAdd function, in a form, to add a "rush processing" fee to an order. The idea is that a customer can configure a product and specify rush processing. Then when they click "Add to Cart," the product is added along with an additional charge.


Overview of the process:
User fills out a form.
When any field changes, I read all of the forms values and prepare an action string
I put the action string into the form's action value


Here's the summary:

testpage 1: testpage 2: add a
Browser form action form action single product
is hard coded set by script to the cart
======================================
Chrome 3.0 success! fail success
Safari 4 success! fail success
Firefox 3.5 fail fail success
IE8.0 fail fail success


Here's the hard-coded string that works in two browsers. The first product has options, the second -- the rush processing fee -- does not:

<form id="orderform" name="orderform" style="margin:0;padding:0;" action="javascript:EJEJC_multiAdd(Array('https://www.e-junkie.com/ecom/gb.php?c=cart&i=111111&cl=99999&ejc=2&o1=regular&&on0=design&os0=Adam&on1=cel&os1=Harry&on2=colors&os2=red and blue&quantity=76','https://www.e-junkie.com/ecom/gb.php?c=cart&i=222222&cl=99999&ejc=2'));" target="ej_ejc" method="POST" accept-charset="UTF-8">

My dynamically prepared string looks identical to the hard-coded string (at least in alert statements and Firefox's debugger). Also, I've combed thru the variables multiple times to make sure they're straight.

I deeply appreciate any help or insights]]>
E-junkie Discussions; Harry