Home Forums WoodMart support forum Checkout issue with version 8.0 and YITH Bundle

Checkout issue with version 8.0 and YITH Bundle

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #613281

    metuza
    Participant

    Hello,

    I am in process of updating my sites to version 8.0 but did find a issue in checkout with version 8.0 and YITH Bundled Products. The bundled items are listed 2 times in checkout, so it shows like double line items.

    Works ok in cart and previous versions of Woodmart.

    See the attached image.

    Brgds
    Rune

    Attachments:
    You must be logged in to view attached files.
    #613416

    Artem Temos
    Keymaster

    Hello,

    To check this issue, we need your admin access and permission to switch between themes to see if it is related to our theme or caused by the plugin itself.

    Kind Regards

    #613438

    metuza
    Participant

    Hello,

    Find login credentials in private. And as mentioned this happens only with version 8.0, this i have tested and i also have my second site on previous version and it works perfect.

    So please do not switch theme as this is a very active production site. If needed i can setup a staging site.

    Brgds
    Rune

    #613481

    Artem Temos
    Keymaster

    In this case, please create a staging where we can test both versions and default theme to see what is wrong.

    #613498

    metuza
    Participant

    Ok, i have setup a staging site and added the new login credentials.

    Brgds
    Rune

    #613501

    Artem Temos
    Keymaster

    Could you please clarify what steps should we take to reproduce the issue? Currently, we don’t see what is wrong there https://gyazo.com/2c2ded67d2a0b37cd27339fe2e47a531

    #613503

    metuza
    Participant

    You are on the right track. I have reactivated child them which includes the filters used to show the bundled items. So it should work now.

    This is the function / filters used to display the budled items around:

    if ( ! function_exists( ‘yith_wcpb_customization_show_hidden_items_in_cart_and_orders’ ) ) {
    add_filter( ‘woocommerce_cart_item_visible’, ‘yith_wcpb_customization_show_hidden_items_in_cart_and_orders’, 99, 2 );
    add_filter( ‘woocommerce_checkout_cart_item_visible’, ‘yith_wcpb_customization_show_hidden_items_in_cart_and_orders’, 99, 2 );
    add_filter( ‘woocommerce_widget_cart_item_visible’, ‘yith_wcpb_customization_show_hidden_items_in_cart_and_orders’, 99, 2 );
    add_filter( ‘woocommerce_order_item_visible’, ‘yith_wcpb_customization_show_hidden_items_in_cart_and_orders’, 99, 2 );

    function yith_wcpb_customization_show_hidden_items_in_cart_and_orders( $visible, $cart_item ) {
    if ( isset( $cart_item[‘bundled_by’] ) && ! empty( $cart_item[‘yith_wcpb_hidden’] ) ) {
    $visible = true;
    }

    return $visible;
    }
    }

    Brgds
    Rune

Viewing 7 posts - 1 through 7 (of 7 total)