soflyy / breakdance-bugs

Bug reports from Breakdance users.
38 stars 5 forks source link

Disabling Woo Variations #1064

Open hagedigital opened 1 month ago

hagedigital commented 1 month ago

Originally reported via breakdance.com support Thu, 21 Dec 2023. Bugged confirmed by Kevin @ Breakdance Wed, 3 Jan with no estimated time for resolution " The development team is aware of this issue, but I cannot estimate when a resolution will be available."

The php file below contains a filter to remove WooCommerce variations outputs, which is not globally compatible with a handful of plugins I've worked with. For example the official WooCommerce Back In Stock Notifications plugin removes all variation outputs from their CSV exports when this filter is enabled via Breakdance by default. Stock Manager by StoreApps is rendered unusable.

The debug process to find this filter, and action a solution by adding a custom override in the functions.php took a ton of time. It's stated no where that Breakdance enable this feature by default, with zero settings to adjust via the plugin.

The snippet below runs globally across the entire site. Add an option to disable this filter via settings, or remove/do not enable it by default.

breakdance/subplugins/breakdance-woocommerce/mods/cart.php

// Remove variations from product title add_filter('woocommerce_product_variation_title_include_attributes', '__return_false');

Breakdance 1.7.2 & Breakdance 2.0.0 beta Chrome/Safari/Arc. Mac/Windows