本文整理汇总了PHP中Customization::getReturnedCustomizations方法的典型用法代码示例。如果您正苦于以下问题:PHP Customization::getReturnedCustomizations方法的具体用法?PHP Customization::getReturnedCustomizations怎么用?PHP Customization::getReturnedCustomizations使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Customization
的用法示例。
在下文中一共展示了Customization::getReturnedCustomizations方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getReturnedCustomizedProducts
public static function getReturnedCustomizedProducts($id_order)
{
$returns = Customization::getReturnedCustomizations($id_order);
$order = new Order((int) $id_order);
if (!Validate::isLoadedObject($order)) {
die(Tools::displayError());
}
$products = $order->getProducts();
foreach ($returns as &$return) {
$return['product_id'] = (int) $products[(int) $return['id_order_detail']]['product_id'];
$return['product_attribute_id'] = (int) $products[(int) $return['id_order_detail']]['product_attribute_id'];
$return['name'] = $products[(int) $return['id_order_detail']]['product_name'];
$return['reference'] = $products[(int) $return['id_order_detail']]['product_reference'];
$return['id_address_delivery'] = $products[(int) $return['id_order_detail']]['id_address_delivery'];
}
return $returns;
}