Created
June 5, 2025 11:16
-
-
Save xlplugins/5e30a94d0f7303344b73fa8c51203ead to your computer and use it in GitHub Desktop.
Funnelkit Cart: Template mela variation swatches Conflict
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class FKCART_TemplateMela { | |
public function __construct() { | |
add_action( 'fkcart_quick_before_view_content', [ $this, 'remove_action' ] ); | |
} | |
public function is_enable() { | |
return function_exists('bt_variation_swatches_attribute_options'); | |
} | |
public function remove_action() { | |
if(!$this->is_enable()){ | |
return; | |
} | |
global $bt_woo_extras; | |
$bt_woo_extras['variation_label']=false; | |
?> | |
<style> | |
#fkcart-modal .fkcart-quick-view-drawer .fkcart-product-form-field .variations_form .woocommerce-variation-add-to-cart { | |
display: block; | |
gap: initial; | |
} | |
#fkcart-modal .fkcart-quick-view-drawer .fkcart-form-input-wrap { | |
display: inline-block; | |
} | |
#fkcart-modal .lieferzeit-zeile { | |
margin-top: 20px; | |
} | |
#fkcart-modal .wcsatt-options-wrapper { | |
display: none; | |
} | |
#fkcart-modal form.cart .button{ | |
float:none !important; | |
} | |
#fkcart-modal .fkcart-order-summary p { | |
margin: 0; | |
} | |
</style> | |
<?php | |
add_filter('base_variation_swatch_type',function(){ | |
return ''; | |
}); | |
//add_filter('woocommerce_dropdown_variation_attribute_options_html',[$this,'action_dropdown']); | |
} | |
} | |
new FKCART_TemplateMela(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment