• Resolved mineotserv

    (@mineotserv)


    I need to calculate weight in alternative way, due to particular product options.
    There is no filter for $weight value in cart_weight() function.
    Will it be possible to create filter in newer plugin version?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Piotr Jablonowski

    (@jablonowski)

    I will discuss this with the team and I’ll let you know.

    Thread Starter mineotserv

    (@mineotserv)

    Or instead of adding new filter, use in plugin inbuilt woocommerce function $weight = WC()->cart->cart_contents_weight; (because this function has filter “woocommerce_cart_contents_weight”)

    Plugin Author Piotr Jablonowski

    (@jablonowski)

    Hi,

    we changed the function to calculate the weight of the cart.

    Now it’s $weight = WC()->cart->cart_contents_weight;.

    Thanks for the suggestion.

    For information, the plugin now requires WooCommere 2.5.x minimum.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Filters for weight in cart_weight()’ is closed to new replies.