Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- foreach ($order_info['products'] as $k => $v) {
- // Generate ekey if EDP is ordered
- if (!empty($v['extra']['is_edp']) && $v['extra']['is_edp'] == 'Y') {
- continue; // don't track inventory
- }
- // Update product amount if inventory tracking is enabled
- if (Registry::get('settings.General.inventory_tracking') == 'Y') {
- /**
- * Executes when changing order status before changing a product stock balance in the database.
- *
- * @param int $order_id Parent order identifier
- * @param string $status_to New parent order status (one char)
- * @param string $status_from Old parent order status (one char)
- * @param array $force_notification Array with notification rules
- * @param boolean $place_order True, if this function have been called inside of fn_place_order function.
- * @param int $child_order_id Child order identifier
- * @param string $child_status_to New child order status (one char)
- * @param boolean $change_child_status If true, the child order status will be changed
- * @param string $k Product cart ID
- * @param array $v Cart product data
- */
- fn_set_hook('change_order_status_before_update_product_amount', $order_id, $status_to, $status_from, $force_notification, $place_order, $order_info, $k, $v);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement