Unknown shipping cost
Permalink Browser Info Environment
Ideally, a site admin will build rules that cater for all shipping variations. However, should an unknown shipping cost crop up, here is one way of dealing with it by using jQuery to move the message into the cost/total column of the cart (this code is in use on a site I work with)
The above trick could be extended with a bit more jQuery, where noted by the comment, to remove the next button (this bit of code has not been tested!):
The overall jQuery statements can be anywhere in the checkout pages, or could be in the overall site header or footer.
$('#ccm-core-commerce-checkout-cart').find('.zone-tbd').each(function(ix,elem){ var msg = $(elem).text(); $('#ccm-core-commerce-checkout-cart').find('.zone-tbd'). parents('td'). nextAll('td').remove(). end().parents('tr'). append(elem).find('.zone-tbd').wrap('<td colspan="3" style="text-align:center"></td>'); $('#ccm-core-commerce-checkout-cart').find('.ccm-core-commerce-cart-price').last().parent('tr').remove(); // more jQuery here to remove the next button });
The above trick could be extended with a bit more jQuery, where noted by the comment, to remove the next button (this bit of code has not been tested!):
$('#submit_next').remove();
The overall jQuery statements can be anywhere in the checkout pages, or could be in the overall site header or footer.
Type: | Discussion |
---|---|
Status: | Archived |