function commerce_gc_product_commerce_checkout_complete in Commerce GC 7
File
- modules/
commerce_gc_product/ commerce_gc_product.module, line 366 - Provides Giftcard product type and support.
Code
function commerce_gc_product_commerce_checkout_complete($order) {
$order_wrapper = entity_metadata_wrapper('commerce_order', $order);
foreach ($order_wrapper->commerce_line_items as $line_item_wrapper) {
if (commerce_gc_product_line_item_is_giftcard($line_item_wrapper)) {
// Run giftcard generation rules for this line item.
commerce_gc_product_process_line_item_giftcards($line_item_wrapper);
}
}
}