On 5/18/2011 1:20 AM, macoln wrote:
I have some shopping cart code that I took over when I started with a
company, but unfortunately I'm weak on Java and integrating with
Paypal. Here is the form that sends data to Paypal when a customer
checks out of the shopping cart. I can get it to send one product,
but I would like it to include data on all the products purchased
from the cart. I am thinking logic:iterate will help me? But then how
do I increment the "on#" and "os#" when presented with a variable
amount of products?
No, logic:iterate is for output, not input. This form outputs HTML to the user
so they can click the accept button.
To increment variables that you output to the user, change the variables in a
scriptlet, JSP, Struts Action or the like before you send those to the user.
> <img name="Paypal" src="/images/qujiesuan.gif" class="jiesuan" border=0
style="cursor: pointer;" onclick="javascript:goPayPal();" />
> </form>
This is what sends your information to PayPal. "javascript:goPayPal()"
Unfortunately I don't know PayPal or JavaScript, you might want to check
PayPal's tech support to understand what that script does.
typically by appending an index to the specified name.
Honi soit qui mal y pense.