Home Forums Themes Support Claue Translation

Viewing 5 reply threads
  • Author
    Posts
    • #38643

      Hi Harry,
      Hope you are fine.

      When I define a product with 0 price, I see a string Based on contract on the cart (mini cart and page and checkout).

      Look here:
      https://prnt.sc/un94lp
      https://prnt.sc/un951k
      https://prnt.sc/un95av

      I 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

    • #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

    • #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

    • #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

    • #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

    • #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

Viewing 5 reply threads

You must be logged in to reply to this topic.