Page 1 of 1

PayPal Shopping Cart

PostPosted: Wed Mar 11, 2009 5:02 am
by jlawrencephotography
I went through the steps called out in Pbasewiki to set up a shopping cart an dit works wekk except for one problem.

The Wiki said that the variables for Item Name/Service (IMAGE_TITLE()) and ITEM ID/Number (IMAGE_ID()) would be replaced by the actual image title and image number in the PayPal order. I typed in these variables as instructed by the wiki but when I checked out in a trial run, I didn't get the actual image name and number in the order. What was printed out instead in the order was the names "IMAGE_TITLE()" and "IMAGE_ID()", not the names I expected, like Blue Mesa reservoir 12345678. What happened or what did I do wrong?

Thanks

Re: PayPal Shopping Cart

PostPosted: Wed Mar 11, 2009 3:15 pm
by rollosphotos
/

Re: PayPal Shopping Cart

PostPosted: Wed Mar 11, 2009 4:08 pm
by jlawrencephotography
rollosphotos wrote:Jim,

You would need to have the "variables" in the paypal code you insert into the description area. I do not see the variables when I view your code, where did you put them? Here's an example that might help you

<input type="hidden" name="item_name" value="IMAGE_TITLE()"><input type="hidden" name="item_number" value="IMAGE_ID()">

best wishes,


Christina,

I assumed that what they meant was when the code saw "IMAGE_TITLE()", the code would look in the Title area of the image itself and substitute the title for "IMAGE_TITLE()". Was that an incorrect assumption? It sounds like you are saying I have to put the code you supplied above in the description box on the root page, since the image page does not have a Description Box. Do I also have to put all my image descriptions in the Description box also? I am thinking not. I am not a software guru, so bear with me. I'll try inserting the code you supplied in the root page description box. Thanks.

Jim

Re: PayPal Shopping Cart

PostPosted: Wed Mar 11, 2009 6:32 pm
by jlawrencephotography
jlawrencephotography wrote:
rollosphotos wrote:Jim,

You would need to have the "variables" in the paypal code you insert into the description area. I do not see the variables when I view your code, where did you put them? Here's an example that might help you

<input type="hidden" name="item_name" value="IMAGE_TITLE()"><input type="hidden" name="item_number" value="IMAGE_ID()">

best wishes,


Christina,

I assumed that what they meant was when the code saw "IMAGE_TITLE()", the code would look in the Title area of the image itself and substitute the title for "IMAGE_TITLE()". Was that an incorrect assumption? It sounds like you are saying I have to put the code you supplied above in the description box on the root page, since the image page does not have a Description Box. Do I also have to put all my image descriptions in the Description box also? I am thinking not. I am not a software guru, so bear with me. I'll try inserting the code you supplied in the root page description box. Thanks.

Jim


It worked after I figured out the above code had to be inserted into the PayPal generated code. Thanks for your help. :D