sietser
Forum Replies Created
-
I’ve tried a different approach, by using a snippet. And this works fine. Would have liked to keep using your plugin, but this is even easier.
add_filter( 'woocommerce_checkout_fields' , 'bbloomer_simplify_checkout_virtual' ); function bbloomer_simplify_checkout_virtual( $fields ) { $only_virtual = true; foreach( WC()->cart->get_cart() as $cart_item_key => $cart_item ) { // Check if there are non-virtual products if ( ! $cart_item['data']->is_virtual() ) $only_virtual = false; } if( $only_virtual ) { unset($fields['billing']['billing_company']); unset($fields['billing']['billing_address_1']); unset($fields['billing']['billing_address_2']); unset($fields['billing']['billing_city']); unset($fields['billing']['billing_postcode']); unset($fields['billing']['billing_country']); unset($fields['billing']['billing_state']); add_filter( 'woocommerce_enable_order_notes_field', '__return_false' ); } return $fields; }Nope, doesn’t help… Still critical error.
I haven’t changed any code, apart from the file you sent and the attempt to change just the one line –> $wc_active = true;
Getting desperate here…
Thanks for the new file, the previous one was not available for download. But it still breaks my site completely.
Even when I just alter this line in the original file:
From: $wc_active = in_array( ‘woocommerce/woocommerce.php’, get_option( ‘active_plugins’ ), true );
to: $wc_active = true );
Any idea?
You don’t understand. The plugin does not work on a multisite. It gives the error that Woocommerce is not installed. That’s why I tried the solution in the other post, but that one breaks the site.
So I need a different line of code that works on multisite, but does not break the whole site.
Forum: Plugins
In reply to: [WC External Variations] Plugin not working at allYes, I do, but when nothing is working it doesn’t help to share the URL…
On a different website (not multisite) it does work fine. Same plugins.
Maybe I can grant you access to my website? Send an email to [email protected] (which is also the website).
Forum: Themes and Templates
In reply to: [Twenty Twenty-Two] Site editor – Blank screenI found out what the problem was. Somehow it is a problem when you enter http://www.yourwebsite.com in the WordPress settings, instead of just yourwebsite.com. I fixed this through wpconfig.php. And now it all works fine.