Your account expired support, please renew to get your support.

Home Forums Themes Support Claue Checkout Page – Free shipping appears twice

Viewing 3 reply threads
  • Author
    Posts
    • #38416
      Dwayne Xavier
      Support Expired

      Hi,

      Please see attached image. Free shipping appears twice. Need it just appear once. We do free shipping for all our products across India. So the customer does not need to take any action for shipping section in the checkout page.

      Customer does not need to calculate shipping either.

       

       

      Attachments:
      You must be logged in to view attached files.
    • #38420
      Harry
      Support Expired

      Hi,

      please add below code to claue-child > functions.php

      function my_hide_shipping_when_free_is_available( $rates ) {
      	$free = array();
      	foreach ( $rates as $rate_id => $rate ) {
      		if ( 'free_shipping' === $rate->method_id ) {
      			$free[ $rate_id ] = $rate;
      			break;
      		}
      	}
      	return ! empty( $free ) ? $free : $rates;
      }
      add_filter( 'woocommerce_package_rates', 'my_hide_shipping_when_free_is_available', 100 );

      Hide other shipping methods when “Free Shipping” is available

      Kind regards

      Harry
      Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

    • #38432
      Dwayne Xavier
      Support Expired

      Hi,

      How do I access claue-child > functions.php ? I only see Claue theme options.

      Let me know.

      Thanks.

    • #38434
      Harry
      Support Expired

      Hi,

      To access claue-child > functions.php you need install claue-child.zip (included in package you download from Themeforest) via Themes > Add new and after install please go to Appearance > Theme Editor > Choose Claue Child https://prnt.sc/uepew2 or other way is access via FTP > public_html > your site folder > wp-content > themes > claue-child.

      Kind regards

      Harry
      Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

Viewing 3 reply threads

You must be logged in to reply to this topic.