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)

$('#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
JohntheFish
View Replies:

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.