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
2. Before placing order
3. After order is placed