Last active
August 2, 2019 06:54
-
-
Save yunusga/8940461274243064916823889cf2fc42 to your computer and use it in GitHub Desktop.
WooComerce обновление FormStyler select для вариаций
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
/** | |
* В случае, если у одной из вариаций отсутсвует цена, скрипты WooCommerce выпиливают этот option из select | |
* что приводит к глюкам в работе FormStyler плагина | |
*/ | |
$('select').styler({ | |
onFormStyled: function() { | |
$('.variations_form.cart').on('woocommerce_update_variation_values', function() { | |
$(this).find('.jq-selectbox select').trigger('refresh'); | |
}); | |
}, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment