Hi,
The code:
$key1 = $shipping['orderid'][0];
$key2 = $dbitem['ProductCode'];
// store the shipping details for the order
$this->cpc[$key1][$key2]['shiptype'] = $shipping['shiptype'][0];
$this->cpc[$key1][$key2]['marketplace'] = $shipping['marketplace'][0];
$this->cpc[$key1][$key2]['ship_name'] = $shipping['ship_name'][0];
$this->cpc[$key1][$key2]['ship_address1'] = $shipping['ship_address1'][0];
$this->cpc[$key1][$key2]['ship_address2'] = $shipping['ship_address2'][0];
$this->cpc[$key1][$key2]['ship_city'] = $shipping['ship_city'][0];
$this->cpc[$key1][$key2]['ship_state'] = $shipping['ship_state'][0];
$this->cpc[$key1][$key2]['ship_postcode'] = $shipping['ship_postcode'][0];
$this->cpc[$key1][$key2]['ship_countrycode'] = $shipping['ship_countrycode'][0];
$this->cpc[$key1][$key2]['ship_phone'] = $shipping['ship_phone'][0];
if you print any of these individually (except any that being with $this->cpc) the value is printed to the screen so I know that everything has a value. Why then, would $this->cpc array not hold any of these values?
$key1, $key2, all the $shipping variables all have values when printed. But none are assigned to the $this->cpc array.