Home › Forums › WoodMart support forum › Checkout issue with version 8.0 and YITH Bundle
Checkout issue with version 8.0 and YITH Bundle
- This topic has 9 replies, 2 voices, and was last updated 50 minutes ago by metuza.
-
AuthorPosts
-
November 19, 2024 at 10:58 am #613281
metuzaParticipantHello,
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
RuneAttachments:
You must be logged in to view attached files.November 19, 2024 at 2:55 pm #613416
Artem TemosKeymasterHello,
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
November 19, 2024 at 3:20 pm #613438
metuzaParticipantHello,
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
RuneNovember 19, 2024 at 4:55 pm #613481
Artem TemosKeymasterIn this case, please create a staging where we can test both versions and default theme to see what is wrong.
November 19, 2024 at 5:17 pm #613498
metuzaParticipantOk, i have setup a staging site and added the new login credentials.
Brgds
RuneNovember 19, 2024 at 5:23 pm #613501
Artem TemosKeymasterCould 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
November 19, 2024 at 5:35 pm #613503
metuzaParticipantYou 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
RuneNovember 19, 2024 at 5:54 pm #613519
metuzaParticipantOk, i just did find something. I changed the priority for the below filter from 99 to 10 then it seems to work OK.
add_filter( ‘woocommerce_checkout_cart_item_visible’, ‘yith_wcpb_customization_show_hidden_items_in_cart_and_orders’, 10, 2 );
So any idea why that should be necessary with Woodmart 8.0 ?
Brgds
RuneNovember 19, 2024 at 6:28 pm #613538
Artem TemosKeymasterSorry, but we don’t know how exactly this code is supposed to work and why it works differently with our latest version.
November 19, 2024 at 6:42 pm #613545
metuzaParticipantOk.. Well, it works now so you can just close this ticket, tank you.
Brgds
Rune -
AuthorPosts
- You must be logged in to create new topics. Login / Register