Posted By

ryarwood on 10/06/11


Tagged

javascript jquery cart Shopping foxycart


Versions (?)

Foxycart Free Shipping


 / Published in: JavaScript
 

  1. jQuery(document).ready(function(){
  2.  
  3. jQuery("label[for='shipping_service_60']").hide();
  4.  
  5. jQuery("#fc_shipping_methods_inner").ajaxComplete(function(event, request, settings) {
  6.  
  7. jQuery("label[for='shipping_service_60']").hide();
  8.  
  9. if(fc_json.hasOwnProperty('coupons'))
  10. {
  11. if (fc_json.coupons['SHIP4FREE'].name == "Free Shipping!") {
  12. jQuery("label[for='shipping_service_60'] .fc_shipping_service").text("Free Ground Shipping!");
  13.  
  14. jQuery("label[for='shipping_service_60']").show();
  15. }
  16.  
  17. }
  18.  
  19. });
  20.  
  21. });

Report this snippet  

You need to login to post a comment.