I set up a multi items cart (_cart) according to your guide, but I don't get back the values of item_number and price.
How and where should I set these values on PayPal Redirect - Full .
How can I add fields such as a color dropdown?
I tried setting plugin a custom field and everything is loaded correctly.
Best regards
Cornelio
I don't know (you need Bob to help with v5) but let me just say
DO NOT USE FRONTEND PRICE VALUES FOR CALCULATING YOUR BACKEND PRICES. If I open up your form, I can use devtools to set all the prices to $0.
Frontend prices should only be for display to the user, not for sending to PayPal. Store your prices in a database or just use PHP to calculate them with hardcoded values
Hi Cornelio,
Please see this note from the action: "The field name holding the item's title, if the field value is an array then multiple items will be shown on the PayPal page, and both the amount and quantity fields should be of type array too. also for this to work, the Command should be set to '_cart' and you should add upload="1" to the extra params box."
If PayPal is not returning these values then I suggest that you set an ID for the transaction and save the data in a database table before redirecting to PayPal, you can include the ID in the data sent to PayPal and use it to recover the data after the IPN confirmation is received.
There are two ways to save the data in your database - the better one is to use two tables: the first to record the transaction data, the second with one row for each item in the cart identified by the transaction/record ID. The alternative, which is simpler is to json encode the data before saving and add it to a text column in the table along with the transaction data.
Bob