Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

188
Vistas
Hide Shipping Options Woocommerce Checkout

I have Clickship plugin that shows live shipping rates from different couriers via their rest api and I have a flat rate shipping option which is added via woocommerce, my question is I want to hide the shipping options coming from Clickship depending on the users state or country and retain shipping option added from woocommerce (which is the flat rate).

Shipping options preview

function checkForInput($) {
  var val = $('input#billing_city');
  if (val === 'victoria') {
  $('label[for="shipping_method_0_3400"]').css('display','none');
  } else {
  $('label[for="shipping_method_0_3400"]').css('display','block');
  }
}
jQuery('input#billing_city').each(function() {
  checkForInput(this);
});
jQuery('input#billing_city').on('change', function() {
  checkForInput(this);  
});

so what should happen is when user enters city equal to victoria it should remove that shipping option from Canpar Ground Shipping option from clickship, but i cant seem to get it working

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda