thank you that works.
can you help me with a couple more?
Like this One
The 'Weight' code in red does not round or mutiply, is there another way to write this to round product quantity and product weight, then mutiply?Code:if ($data->fields['products_freightquote_enable'] == '1') { $product_list[] = array( 'Class' => (zen_not_null($data->fields['products_freightquote_class']) ? $data->fields['products_freightquote_class'] : '50'), 'ProductDescription' => $product['name'], 'Weight' => ceil($product['quantity'] * (int)$product['weight']), 'Length' => ceil($data->fields['products_freightquote_length']), 'Width' => ceil($data->fields['products_freightquote_width']), 'Height' => ceil($data->fields['products_freightquote_height']), 'PackageType' => (zen_not_null($data->fields['products_freightquote_package_type']) ? $data->fields['products_freightquote_package_type'] : 'Boxes'), 'DeclaredValue' => round($product['price']), 'CommodityType' => (zen_not_null($data->fields['products_freightquote_commodity_type']) ? $data->fields['products_freightquote_commodity_type'] : 'GeneralMerchandise'), 'ContentType' => (zen_not_null($data->fields['products_freightquote_content_type']) ? $data->fields['products_freightquote_content_type'] : 'NewCommercialGoods'), 'IsHazardousMaterial' => $data->fields['products_freightquote_hzmt'], 'NMFC' => $data->fields['products_freightquote_nmfc'], 'PieceCount' => ceil$product['quantity'], Added ceil here 'ItemNumber' => $counter );
'Piececount' also in red, i just need to add round or ceil to the front.


Reply With Quote
