Home › Forums › WoodMart support forum › Reopen https://xtemos.com/forums/topic/issue-after-theme-update/#new-post
Reopen https://xtemos.com/forums/topic/issue-after-theme-update/#new-post
- This topic has 6 replies, 2 voices, and was last updated 2 years, 9 months ago by
Elise Noromit.
-
AuthorPosts
-
September 13, 2022 at 12:21 pm #403214
Madoo WebdesignParticipantHello,
I found more stylings after the update, see image + link below
https://dev.pflex.eu/webshop/hydrauliek-slangen/en856-4sh/aeroquip-gh506-en856-4sh/
this is without the update, see https://pflex.eu/webshop/hydrauliek-slangen/en856-4sh/aeroquip-gh506-en856-4sh/
texts are on the image, can you let me know.
Attachments:
You must be logged in to view attached files.September 15, 2022 at 1:14 am #405584
Elise NoromitMemberHello,
Please provide FTP access we will give you code into the child theme to fix that, and insert the access into the Private content below the message area.
Best Regards
September 15, 2022 at 1:52 pm #405811
Madoo WebdesignParticipantbelow the private details, can you tell me after, the fixing steps?
September 17, 2022 at 2:59 am #406376
Elise NoromitMemberHello,
Thank you for the access. I have submitted the case to our developers and we will get back to you asap.
Best Regards
September 18, 2022 at 5:35 am #406503
Elise NoromitMemberHello,
Thank you for your patience.
Please add this code to the functions.php of the child theme:
if ( ! function_exists( 'wd_yith_update_loop_positions' ) ) { function wd_yith_update_loop_positions( $positions ) { if ( 'button' === woodmart_loop_prop( 'product_hover' ) ) { $positions['before_add_to_cart']['hook'] = 'woodmart_add_loop_btn'; $positions['after_add_to_cart']['hook'] = 'woodmart_add_loop_btn'; } return $positions; } add_filter('yith_wcwl_loop_positions', 'wd_yith_update_loop_positions'); }
In addition, you add a custom button in the child theme. Please replace this code:
add_action( 'woocommerce_after_shop_loop_item', 'bbloomer_view_product_button', 10 );
for this one:
add_action( 'woodmart_add_loop_btn', 'bbloomer_view_product_button', 20 );
If you have any questions please feel free to contact us.
Best Regards
September 28, 2022 at 11:24 am #408978
Madoo WebdesignParticipantthanks, one more thing. after the update the text “login and see prices”. before the update it was in the image.
see image knipsel-original.
image knipsel is how it now looks.can you give me the right css?
Attachments:
You must be logged in to view attached files.September 29, 2022 at 2:44 pm #409268
Elise NoromitMemberHello,
Please add this code to the functions.php of the child theme:
add_action( 'init', function() { if ( ! class_exists("WooCommerceWholeSalePrices")){ return; } $wc_wholesale_prices = WooCommerceWholeSalePrices::instance(); remove_action('woocommerce_after_shop_loop_item', array($wc_wholesale_prices->wwp_wholesale_prices, 'display_replacement_message'), 10); add_action('woodmart_add_loop_btn', array($wc_wholesale_prices->wwp_wholesale_prices, 'display_replacement_message'), 10); });
-
AuthorPosts
- You must be logged in to create new topics. Login / Register