Product Icon

Variations as Single Products for WooCommerce

Display variations on separate, searchable, individual product pages and improve your customers' experience.

Multisite support

Out of the box, this plugin does not support multisite. We’ve got a network of shops that we’re adding this plugin to. I’ve made a modification to allow the plugin to run, but it would be great to have that modification added to the plugin so it won’t break when we update.

In the main plugin file, there is a conditional checking to see if WooCommerce is active before launching the `run_variations_as_single_products_for_woocommerce()` function. The conditional works for single sites, but not for multisites (that have WooCommerce _network_ activated).

Remove:
`if ( in_array( ‘woocommerce/woocommerce.php’, apply_filters( ‘active_plugins’, get_option( ‘active_plugins’ ) ) ) ) {`

Replace with:
`if ( class_exists( ‘woocommerce’ ) ) {`

This method comes directly from the WooCommerce documentation: https://woocommerce.com/document/query-whether-woocommerce-is-activated/

Author

erikinverseparadox

Current Status

Open

Last updated: January 26, 2023

0 comments

Log in to comment on this feature request.

Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.