snippet incompatability | WordPress.org

[ad_1]

Hi

I am trying to use a snippet that Remove Billing Fields if Cart contains Virtual Products, but it renders some incompatability with your plugin, It is curious because there is nothing weird with the snippet, it is very simple.

You can see the snippet here (it is from a well known developer): https://www.businessbloomer.com/woocommerce-hide-checkout-billing-fields-if-virtual-product-cart/

Everytime I enable the snippet, your SMS plugin continues to work, but the plugin option page appears defaced, as a long list of all the possible SMS’s gateways and then a PHP error “Call to a member function get_cart() on null”.

Reading the code, this error does not make sense. Can you hint me, please?

Thanks

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer