Skip to content

Latest commit

 

History

History
41 lines (26 loc) · 1.26 KB

File metadata and controls

41 lines (26 loc) · 1.26 KB

HACK #3 - Split product with multiple qty in cart into seperate order items after order is placed.

Build Status

Check the plugin code for usage.

Don't get overwhelmed! Most of the file in this repo is related to unit testing or integrated build.


Following files are all need to get this running :
split-multiple-qty-order-item-on-checkout/
├── class-split-multiple-qty-order-item-on-checkout.php   (your intrested code)
└── init.php                                     (plugin main file)

Main Action -

//loc: woocommerce/includes/class-wc-checkout.php
do_action( 'woocommerce_checkout_create_order_line_item', $item, $cart_item_key, $values, $order );

1. Cart page

Alt text


2. Before placing order

Alt text


3. After order is placed

Alt text