• I am trying use a free shipping code on my site: https://www.westminstertech.com. I am using the Table Rate Shipping Plugin for our shipping zones. Right now when a free shipping coupon is entered this is the way shipping is displayed:
    Cart Display
    I would like to be set this up so that if a free shipping code is entered the regular shipping is not displayed – but shipping simply shows as $0.00. If this isn’t possible I would like to show the the words “Select Free Shipping” next to the select circle to do so and show $0.00 in the cost column.

    Any suggestions on how to achieve either of these would be greatly appreciated.

    Thanks.

    Ted

Viewing 2 replies - 1 through 2 (of 2 total)
  • D Smith a11n

    (@dsmithweb)

    Automattic Happiness Engineer

    Hi Ted!

    To hide other options when free shipping is available, I recommend this popular snippet.

    I do wonder, though, seeing how odd the above looks, whether you might not have some kind of code conflict going on. If you disable all other plugins, do the checkout shipping options display more clearly?

    Thread Starter klipklopp

    (@klipklopp)

    Hi,

    I added this code to my Child Theme Functions.php file, but nothing changed in the Cart. The only code modifications I have made are CSS codes to have the columns lineup properly. Here is that code:

    .cart_totals tr.shipping td,
    #order_review tr.shipping td {
    visibility: hidden;
    }
    
    .cart_totals tr.shipping td span.amount,
    #order_review tr.shipping td span.amount {
    	visibility: visible;
    }
    
    .cart_totals td {text-align:right}
    .woocommerce-tabs .panel h2 {display:none !important}
    
    .page-id-3056 #order_review tr.shipping td span.amount {
    	color: #000;
    	position: absolute;
    	left: 12px;
    }
    
    .page-id-3056 #order_review tr.shipping td {
    	visibility:visible!important;
    	color: #fff;
    	position: relative;
    }
    
    .page-id-3055 .cart_totals tr.shipping td {
    	visibility: visible;
    	color:#fff
    }
    .page-id-3055 .cart_totals tr.shipping td span.amount {
    	visibility: visible;
    	color:#000
    }

    Would this code affect what I am trying to do here? Any idea why the code you sent didn’t work for me?

    Thanks!

    Ted

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Free Shipping Questions’ is closed to new replies.