Skip to content

WooCommerce - split cart items with multiple quantity into separate order item after order is processed ( or after order checkout)

Notifications You must be signed in to change notification settings

woo-hacks/split-multiple-qty-order-item-on-checkout

Repository files navigation

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


About

WooCommerce - split cart items with multiple quantity into separate order item after order is processed ( or after order checkout)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published