to pass the selected shipping option, you need to add code to set a session variable with the name of the selected shipping option based on the ShipType session. change this line:
if (isset($_POST['ShipType'])) $_SESSION['ShipType'] = $_POST['ShipType'];
to:
if (isset($_POST['ShipType'])) $_SESSION['ShipType'] = $_POST['ShipType'];
switch ($_SESSION['ShipType']) {
case 1:
$_SESSION['ShipTypeString'] = "UPS Ground";
break;
case 2:
$_SESSION['ShipTypeString'] = "USPS First-Class Mail";
break;
case 3:
$_SESSION['ShipTypeString'] = "USPS First Class Mail";
break;
default:
$_SESSION['ShipTypeString'] = "USPS Priority";
break;
}
then concatenate the size and the shipping to the item name being passed to PayPal:
<input type="hidden" name="item_name_<?php echo $LuckiexLosersCart_Index+1; ?>" id="item_name_<?php echo $LuckiexLosersCart_Index+1; ?>" value="<?php echo $LuckiexLosersCart->DisplayInfo("Name") ?> Size:<?php echo $LuckiexLosersCart->DisplayInfo("size") ?> Shipping Option: <?php echo((isset($_SESSION["ShipTypeString"]))?$_SESSION["ShipTypeString"]:"") ?>" />