elixtm
Forum Replies Created
-
Forum: Plugins
In reply to: [CoDesigner - All in One Elementor WooCommerce Builder] Edit pricing filter ?The MAX price number should match the current query most expensive article on vertical filter. Now it gives me the max number of all my products. How to restrict it to only current query ?
Forum: Plugins
In reply to: [CoDesigner - All in One Elementor WooCommerce Builder] Edit pricing filter ?Nevermind, got it.
Yup, this solved everything. lol Once i removed hooks it fixed everywhere, now i see it on anything. Thank’s so much, all the best.
Nope, doesn’t show at all on homepage (where “WL: Universal Product Layout” is). Maybe i’m doing something wrong? I currently have only this in hooks https://prnt.sc/10nfeob (tried almost anything i could think of) do i need to add something else? Because it did removed the default “SALE!” but did not put label on it
Sure! No problem. Best of luck, and thanks
Yeah, still nothing. π How can i help more? Do you need access or something so i could help you figure it out?
The plugin is : WooLentor – WooCommerce Elementor Addons + Builder
“I added βWL: Universal Product Layoutβ through my Elementor on my home page built with ElementorPro & Astra theme.”
To functions.php, where i also added “single product” snippet
add_filter( ‘awl_labels_hooks’, ‘awl_labels_hooks’ );
function awl_labels_hooks( $hooks ) {
$hooks[‘on_image’][‘archive’] = array( ‘woocommerce_sale_flash’ => array( ‘priority’ => 10, ‘type’ => ‘filter’ ) );
$hooks[‘before_title’][‘archive’] = array( ‘woocommerce_sale_flash’ => array( ‘priority’ => 10, ‘type’ => ‘filter’, ‘js’ => array( ‘.font-titles’, ‘before’ ) ) );
return $hooks;
}add_filter( ‘awl_label_container_styles’, ‘awl_label_container_styles’, 10, 3 );
function awl_label_container_styles( $styles, $position_type, $labels ) {
$styles[‘display’] = ‘flex’;
return $styles;
}`and that’s working like a charm. Also i do have, and i refreshed cache but nothing
I added the snippet and tested, doesn’t seem to work. Do i need to add some other custom hook or something?
Yes, you can can check my link, on Shop archive and single product is working just fine. But on home page where is WooLentor plugin it doesnt show the label, just his “SALE!” text
I had the same problem, the archive (shop grid) showed the label but not the single product page.
The code snippet worked for me! *on Astra theme with Elementor Pro*
Btw I had to add two hooks, wp_after_single_product_summary and wp_before_shop_loop_item and now it works just fine.
Thank’s:)