sage pay is throwing an error about my basket. if i take the delivery part off then it works but i want delivery on.
// Ordering Shopping Basket
//
$ThisBasket = count( $items );
foreach( $items as $item ) {
preg_match( "#^[([^]]+)][([^]]+)][([^]]+)]$#is", $item, $match );
$ThisBasket .= : . $match[2]; // Item Name ( - attribute/options )
$ThisBasket .= : . $match[1]; // Quantity
$ThisBasket .= : . self::$cp . ( $match[3] / $match[1] ); //Item Value
$ThisBasket .= : . self::$cp . global_data::get_vat( $match[3] / $match[1], true ); // Item Tax
$ThisBasket .= : . self::$cp . global_data::get_vat( $match[3] / $match[1] ); // // Item Total
$ThisBasket .= : . self::$cp . global_data::get_vat( $match[3] ); // // Line Total
}
$ThisBasket .= :Delivery:1: . self::$cp . 4.99:---: . self::$cp . 4.99: . self::$cp . 4.99 ;
I have no idea how the delivery is structured and cannot find any documentation. regards phil