webpn Posted March 16, 2014 Share Posted March 16, 2014 Hello everybody.In my shopping cart summary (I use the Fast checkout), my customer can get easily the "No carriers available" warning, because I offer by default a limited series of carriers that can hold a limited amount of weight for different regions.I want my customer to email me if they want to order a great amount of items, so that I can choose the best carrier and offer them a quantity discount.Instead of showing the yellow box warning "None of your chosen carriers deliver to the address you've selected", I'd like to hide "Delivery methods" and "payment method" tabs and show my custom message "Mail me ..".I can do that in the static way by editing "order-opc.tpl".The only problem comes when the customer edit the order via ajax.I.e., there is a default european courier, called SDA, that can be applied if the order weighs less than 5ks. An european customer orders 7 books (1.5 kg/each): the SDA cannot be applied (the total weight is over 5kg), so that I show my custom message "Mail me ..".In the shopping cart page, the customer can remove 5 books from the order (that is done via ajax), so that the order is only 3kg and the SDA courier could be applied. The pages doesn't refresh, and so, my warning is still displayed until the customer refreshes the page.How can I show my custom message dynamically, without messing with ajax calls? Link to comment Share on other sites More sharing options...
Recommended Posts