Home › Forums › Themes Support › Claue › Translation
- This topic has 5 replies, 2 voices, and was last updated 4 years, 3 months ago by Harry.
-
AuthorPosts
-
-
September 25, 2020 at 1:29 am #38643
Hi Harry,
Hope you are fine.When I define a product with
0
price, I see a stringBased on contract
on the cart (mini cart and page and checkout).Look here:
https://prnt.sc/un94lp
https://prnt.sc/un951k
https://prnt.sc/un95avI couldn’t find it via loco in the Woocommerce and theme!
Can you please help me where is this coming from?
Regards.
Rahim Vaziri
CEO & Founder at Look.ir -
September 25, 2020 at 10:08 am #38646
Hi Rahim,
These text not come from claue theme or WooCommerce, please check from other plugin.
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
September 25, 2020 at 11:58 am #38648
Hi 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.ir -
September 25, 2020 at 12:35 pm #38649
I check on my local it not have text like your https://prnt.sc/unho54 https://prnt.sc/unhocn
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
September 26, 2020 at 4:18 pm #38651
Hi 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.ir -
September 26, 2020 at 5:33 pm #38652
Hi Rahim,
Thank you for sharing you solution.
Have a great weekend!
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio
-
-
AuthorPosts
You must be logged in to reply to this topic.