• prodograw

    (@prodograw)


    Hi we presently work out the weight value of order to upload to shipping company but since moving over to bundled products the total weight is wrong and the plugin works out the bundle parent weight if there is one and also adds the child item weights.

    with a lot of our customising we utilise

    At present we have over 40 profiles and do utilise your weight hook but just means I’ll have to edit each one individually rather than a global setting

    !wc_pb_is_bundled_order_item( $order_item )

    or you could implement below if bundled item

    get_product_from_item
    
    Description
    
    mixed get_product_from_item( WC_Product $product , array $order_item , WC_Order $order )
    
    Modifies products constructed from bundle parent/child order items. Used to reconstruct an accurate physical representation of a bundle, typically as a callback conditionally attached to the woocommerce_get_product_from_item filter when exporting order data to external fulfillment, shipping or inventory management services.
    
    The method applies the following modifications:
    
    If the product object is associated with a bundle container item, then its weight is modified to include the weight of all assembled children.
    If the product object is associated with an assembled bundled/child item, then it is marked as virtual.
    Note that “assembled” is used in this context to refer to items that are not Shipped Individually.

    documentation hooks for bundled items HERE

Viewing 1 replies (of 1 total)
  • Plugin Author algol.plus

    (@algolplus)

    hello

    But it’s not free plugin. We must test it.
    Please, submit ticket to https://algolplus.freshdesk.com/ and upload this plugin to the ticket.

    we need your settings too. visit tab Tools to get them.
    thanks, Alex

Viewing 1 replies (of 1 total)
  • The topic ‘Change Total Weight if bundled item child’ is closed to new replies.