Remove WooCommerce Checkout Fields for Virtual Products with Code Snippets

Поделиться
HTML-код
  • Опубликовано: 15 сен 2024
  • ХоббиХобби

Комментарии • 19

  • @maddy1mymk
    @maddy1mymk 2 года назад +1

    As always, on point and excellent work!

  • @gurushakti69
    @gurushakti69 Год назад +2

    This code is incomplete - This adds the code sitewide whereas we need to add it based on when a virtual product is in cart.

  • @MrJacobpoliquin
    @MrJacobpoliquin 2 года назад +4

    Could you have that but only for the virtual products and not affecting the physical ones? I offer both products on a website and I am using a plugin to customize the checkout fields and hidding some but its for all the products, hence i can't hide the fields related to shipping even for the virtual products... thanks in advance for any tips.

    • @websquadron
      @websquadron  2 года назад +4

      Good question. Let me have a think about that!

    • @37V
      @37V Год назад

      @@websquadron Following any advice on this question as well, I also offer both physical and virtual/downloadable products.

  • @chriswarwick8934
    @chriswarwick8934 2 года назад

    is the code the same for the elementor pro checkout widget that im using because i dont use woocommerce checkout widget unless im missing something as you can tell im pretty new

    • @websquadron
      @websquadron  2 года назад +1

      In a way yes - as it's connected to WooCommerce.

  • @MannetjeF
    @MannetjeF Год назад

    The code doesn't work/ Fatal error on row 4

    • @websquadron
      @websquadron  Год назад

      Never fails for me.
      See a video I released a few days ago on how to activate safe mode if it affects the site

  • @vitthalkarche7299
    @vitthalkarche7299 Год назад

    dosent work totally.
    it just hides the fields
    cant complete checkout because asking for adress

    • @websquadron
      @websquadron  Год назад +1

      Depends on what kind of products you’re selling such as downloadable or virtual.

  • @liyaocreative
    @liyaocreative Год назад

    This code has issues man! After activated it the site just went down!

    • @websquadron
      @websquadron  Год назад

      I'm using this on many sites and it's fine for me.

    • @liyaocreative
      @liyaocreative Год назад

      Well... I couldn't access the site and got an email saying "WordPress caught an error with one of your plugins, Code Snippets". So I deleted the plugin and re downloaded it, this time I activate the code, nothing happens on my checkout page. Any idea why?@@websquadron

  • @aishawilson7649
    @aishawilson7649 2 года назад

    how do I remove virtual products from the free shipping cart total?

    • @websquadron
      @websquadron  2 года назад +1

      Have you tried using a shipping plugin?

    • @aishawilson7649
      @aishawilson7649 2 года назад

      @@websquadron I am using css code to accomplish it. thanks!

    • @websquadron
      @websquadron  2 года назад +1

      @@aishawilson7649 Excellent - do paste it here, and hopefully you're using Code Snippets