Does that space at the end matter? Between the last bracket and the period?
no the space does not matter
Also, if I want to separate my cart columns with something like a forward slash or upright slash, so it's easier to read on the PayPal side, how would I edit the concatenated string?
use the substr function:
http://www.php.net/manual/en/function.substr.php, for example to limit the description to 12 characters:
$WA_PP_ECO_Do_itemized[1][$nextIndex] = "".$cartName->DisplayInfo("Name") ." - ".substr($cartName->DisplayInfo("Description"),0,12)."" ;
is there a way to limit the number of characters displayed
here is an example using a hyphen:
$WA_PP_ECO_Do_itemized[1][$nextIndex] = "".$cartName->DisplayInfo("Name") ." - ".$cartName->DisplayInfo("Description")."" ;
It's producing the following error on submission:
you have to substitute your cart name in the code, in my example code, i used $cartName as the name of the car object. you need to adjust accordingly, for example::
$cartName->DisplayInfo("Colour")
should be:
$LEDCart->DisplayInfo("Colour")