ksere
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Bodymovin] Where are uploaded JSON files?Hi,
They are stored in the database. No need to cleanup old files.Forum: Plugins
In reply to: [WP Bodymovin] autoplay_viewvport isnt functioning properlyCan you share the URL so we can check for console errors?
Forum: Plugins
In reply to: [WP Bodymovin] smaller in internet explorerHi James,
It could be anything from lottie/bodymovin, to the theme you are using, to svg issues with IE.
The thing is that IE11 is a 5 year old browser and supported by less and less themes and sites in general. I can’t even get codepen.io to load in IE just to test this..
As a next step i would try adding a simple SVG to the exact place of the lottie animation to see if its related to the enclosing elements.
If i can help with a patch/PR let me know.
Regards
Thanks yews-grigory for the fix!
It would be great if we could also get a response from the plugin author.
I ‘ve encountered the same issue and i think i have figured out the cause.
When you have more than 30 variations WC changes the way it fetches them and uses an AJAX call.
30 is the default ‘setting’ so the code the author gave you above has no effect unless you change the number to something bigger than the number of variations your product has (as he suggests in the comment).
This plugin uses the
woocommerce_available_variation
filter in order modify the variation data and add the variation image so that the frontend code can get it.That filter is hooked in
yith-woocommerce-zoom-magnifier\class.yith-wcmg-frontend.php:48
And that code block is run in the
template_redirect
action hook which (probably) doesn’t run in an AJAX call.Until they fix it you can use this to properly modify the data in order for it to work:
function wcmg_fix_ajax_filter_variations( $data, $wc_prod, $variation ) { $attachment_id = get_post_thumbnail_id ( version_compare ( WC ()->version, '3.0', '<' ) ? $variation->get_variation_id () : $variation->get_id () ); $attachment = wp_get_attachment_image_src ( $attachment_id, 'shop_magnifier' ); $data['image_magnifier'] = $attachment ? current ( $attachment ) : ''; return $data; } add_filter ( 'woocommerce_available_variation', 'wcmg_fix_ajax_filter_variations', 20, 3 );
(this ideally goes into your child theme’s functions.php)
- This reply was modified 7 years, 9 months ago by ksere.
Forum: Plugins
In reply to: [Debug Bar] PHP 7.0 Deprecated MethodsYou can apply the changes manually until the plugin author issues an update.
You just have to change:function Debug_Bar() {
to
function __construct() {
in debug-bar.php line:23and
function Debug_Bar_Panel( $title='' ) {
to
function __construct( $title='' ) {
in panels/class-debug-bar-panel.php line:7@adam thanks for the patch.
Forum: Plugins
In reply to: [Mailbag] jQuery undefinedThanks!
Thank you!
…or it could (more likely) come from handle_row_actions() in class-wp-list-table.php (wp-core)