Skip Navigation


Reported for: WooCommerce Multilingual & Multicurrency 5.3.6

Topic Tags: Compatibility, WCML

Overview of the issue

If you are using WooCommerce Product Bundles plugin, you will notice that a PHP notice occurs when a bundle product is added to the cart:

PHP Notice: Function product_type was called incorrectly. Product properties should not be accessed directly...


Please, make sure of having a full site backup of your site before proceeding.

  • Open …/wp-content/woocommerce-multilingual/compatibility/WcProductBundles/class-wcml-product-bundles.php file
  • Look for line 796.
  • Replace:
    if ( isset( $cart_item['bundled_items'] ) && $cart_item['data']->product_type === 'bundle' ) {
  • With:
    if ( isset( $cart_item['bundled_items'] ) && $cart_item['data']->get_type() === 'bundle' ) {

Leave a Reply

Please stay on topic and be respectful to others. If you need help with issues not related to this post, use our Support Forum to start a chat or submit a ticket.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>