Forum Replies Created
-
AuthorPosts
-
Harry,
I just realized the changes: https://prnt.sc/v0ivj0
Did you add this in recent updates?
Is this coming from your side or the latest version of WOO?Regards.
Rahim Vaziri
CEO & Founder at Look.irHi Harry,
Hope you are fine.Did you update to theme?
I am using version 2.0.6Kind regards.
Rahim Vaziri
CEO & Founder at Look.irHi Harry,
Hope you are fine.This was coming from a custom function on the functions.php file.
// Hiding Price for Out of Stock Products add_filter( "woocommerce_variable_price_html", "theanand_remove_prices", 10, 2 ); add_filter( "woocommerce_get_price_html", "theanand_remove_prices", 10, 2 ); function theanand_remove_prices( $price, $product ) { if ( ! $product->is_in_stock()) { $price = ""; } return $price; } // Cart items displayed prices and line item subtotal add_filter( 'woocommerce_cart_item_subtotal', 'free_cart_item_price_custom_label', 20, 3 ); add_filter( 'woocommerce_cart_item_price', 'free_cart_item_price_custom_label', 20, 3 ); function free_cart_item_price_custom_label( $price, $cart_item, $cart_item_key ) { // HERE your custom free price label $free_label = '<span class="amount">' . __('رایگان') . '</span>'; if( $cart_item['data']->get_price() > 0 ) return $price; else return $free_label; } // Order items displayed prices (and also email notifications) add_filter( 'woocommerce_order_formatted_line_subtotal', 'free_order_item_price_custom_label', 20, 3 ); function free_order_item_price_custom_label( $subtotal, $item, $order ) { // HERE your custom free price label $free_label = '<span class="amount">' . __('رایگان') . '</span>'; if( $order->get_line_subtotal( $item ) > 0 ) return $subtotal; else return $free_label; }
The string which is Persian now, was
Based on Contract
Just wanted to share it with you.
Regards
Rahim Vaziri
CEO & Founder at Look.irHi Harry,
Is this happening on your local too?
Can you please try to add a free product on your cart and checkout?
Regards
Rahim Vaziri
CEO & Founder at Look.irThis reply has been marked as private.Rahim Vaziri
CEO & Founder at Look.irHi Harry,
It’s fine on some mobiles and it’s not on the others.
The screenshot that I sent you comes from a big screen xiaomi phone.
Rahim Vaziri
CEO & Founder at Look.irHi Harry,
Hope you are fine. 🙂Harry, why is this happening on some mobile devices? https://prnt.sc/u8ikf1
How can I fix the
Filter
word, next to the icon?Regards.
Rahim Vaziri
CEO & Founder at Look.irHi Harry,
I did it myself.Final code:
.filter-trigger::after { content: 'فیلتر'; padding-right: 10px; font-size: 18px; vertical-align: 2px; } .filter-trigger { border: 1px solid #ddd; padding: 0 20px; }
Check here: https://look.ir/women-clothing/
Is it all right in your opinion?
Rahim Vaziri
CEO & Founder at Look.irHi Harry,
I’m happy you are fine. 🙂Harry this is my final code:
.filter-trigger::after { content: 'فیلتر'; padding-right: 10px; font-size: 18px; vertical-align: text-top; }
You can check it here: https://look.ir/women-clothing/
Is there any way to add a border to this section?
Something like product listing method? https://prnt.sc/u62mneRahim Vaziri
CEO & Founder at Look.irPlease update your Woocommerce to version 4.4.1
Most of the issues are resolved via this update.
Regards.
Rahim Vaziri
CEO & Founder at Look.ir -
AuthorPosts