• Resolved tictok

    (@tictok)


    Hi Fahad

    I’m really hoping you might be able to help with this one. It feels like the last piece in a big puzzle!

    We use a plugin called Woocommerce Product Bundles
    https://woocommerce.com/products/product-bundles/
    The plugin allows shop managers to create a ‘bundle’ out of existing products. A bit like a product group, but with the ability to set a ‘bundle’ price and other extra features.

    Unfortunately it doesn’t work too well with your order splitter plugin.

    When it comes to splitting an order, your plugin parses all line items within an order. In the case of a product bundle it parses both the parent bundle as well as the individual items within the bundle and treats them separately. Both the bundle and the items within a bundle get listed separately as line items within the new order ID, along with a price for each. This really confuses the customer as it looks like they’re been charged way too much and have too many items within their order.

    For example, a customer orders an item called ‘Big Bundle’ which contains individual items (‘product A’ and ‘product B’), but at a discounted price.

    Without the order splitter, the customer would never see the items within the bundle. Those child items wouldn’t be visible at the checkout, thank you page or in their customer emails. They’d only see the parent bundle item called ‘Big Bundle’ and a single price for that.

    With your order splitter plugin active, the customer sees the items within the bundle AND the parent bundle, as well the additional cost of the bundled items added to the price of the bundle parent. On the order thank-you page and in emails they see ‘BIG Bundle’ and also ‘Product A’ and ‘Product B’ listed as separate items all with individual prices.

    It’s possible to check if the bundle plugin is active with:
    if ( class_exists( 'WC_Bundles' ) ) { ... }

    There are various ways to identify a bundled line item.
    Perhaps the easiest and most reliable way is to call:
    wc_pb_is_bundled_order_item( $order_item )

    which returns true if the line item belongs within a bundle.

    I also have examples of what a parent product bundle and a child product item object looks like:
    https://gist.github.com/tictok/3887a5035476da554d58bfa4a3df3d2f
    As you’ll see there are various meta keys that denote whether the item is a bundled product or not.

    I need to find a way to not show the individual bundled items and somehow keep the overall product bundle intact when the order item is processed by your order splitter.

    I really hope that makes sense and wonder if you have any ideas?

    I’m a bit stumped with this.

    With hope and many thanks,

    Stef

Viewing 2 replies - 1 through 2 (of 2 total)
  • Dear Stef,

    We can understand that you are really appreciating our work and using this plugin but this is a new feature requirement or compatibility with another plugin.

    https://ps.w.org/woo-order-splitter/assets/screenshot-1.png?rev=2364024

    If you see this screenshot so, all of those plugins which are compatible with this plugin are listed.

    Kindly understand this is not a bug, there are number of plugins which might be required compatibility in future we cannot immediately provide all of the plugin’s compatibility with this plugin overnight, as users will use it and confirm us, they will be quoted according to the nature of task and will be served with the required feature.
    It would take time and effort to add another feature or to make it compatible with other plugins. Kindly contact the plugin author at https://demo.androidbubble.com/contact/ for new feature request or plugin compatibility. We appreciate your patience. Please always mention what method, are you using? Last time you are using shredder method. Can you please confirm which split method are you using this time?

    Thanks,
    Freddie

    Thread Starter tictok

    (@tictok)

    Hi Freddie & thanks for your reply.

    I’m wondering if you have me mistaken as don’t think I’ve ever used the shredder method. Currently using the Exclusive method to split orders containing specific items. I *think* it’s the only method I’ve used.

    Please don’t get me wrong, I really appreciate the amount of work that goes into the development and maintenance of a plugin, theme or app.

    I was hoping yourself or Fahad might just be able to give me a hint or pointer as to where to look in your plugin, or basic info on how it works internally, as was only really looking ideas of how I might go about customising it or extending it and where I should target.

    Kind regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Product bundles being split into items’ is closed to new replies.