Home Forums Themes Support Claue Woocommerce extension compatibity.

Viewing 1 reply thread
  • Author
    • #37815


      First, Im sorry for my support was not renew yet, i will try renew pay soon.

      Then, Iwas buy a two woocmmerce extension, to try make better optios to choice product, to the custom.

      The plugin in wc are” mix and match product” and ‘ assorted products”. from the oficial store.

      But, in the hour to use, there some problema with you try inputs any number or quantity.

      To me, code is like I speak japanesse, cannot undestand, Im sorry.

      This is a copy of the answer from the other support send me:

      Hi Esteban,

      Thanks for getting in touch. Looking at your site, it appears that your theme has custom quantity inputs. Mix and Match does not add plus/minus buttons to inputs. By default the inputs should look like this screenshot: https://share.getcloudapp.com/ApukQKx0

      The issue looks like it is specifically coming from Line 199 of the theme’s script: https://indiafactorybr.com.br/wp-content/themes/claue/assets/js/theme.js

      $val = parseInt( $input.val() ),

      The Mix and Match quantity inputs are null by default, and you can’t run parseInt() on a null value… you get a NaN (not a number). I would recommend that you contact the theme and ask them to check the value is not null before trying to use parseInt(). It looks like they also don’t support placeholder texts, which are supported by WooCommerce since 4.0.

      In the meantime, you can set the default input quantity to 0 by adding the following snippet to your theme’s functions.php or via the Code Snippets plugin.

      add_filter( ‘woocommerce_mnm_quantity_input’, ‘__return_zero’ );

      With plus/minus inputs it probably makes more sense to have an actual number in the input right away.

      I hope that helps. Let me know if there’s anything else I can assist you with.

      Cheers, “”””

      If you can help i what to do, I will be thank, if canot, very thank anyway, i undestand.

      pd; I already desactive the plugins to dont make more trouble in the webstore.


      Esteban - indiafactorybr.com.br

    • #37821

      Hi Esteban,

      For this case please add the suggest code to claue-child > functions.php

      add_filter( 'woocommerce_mnm_quantity_input', '__return_zero' );

      or please copy file quantity-input.php in plugins > woocommerce > templates > global to claue-child > woocommerce > global

      Kind regards

      Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

Viewing 1 reply thread

You must be logged in to reply to this topic.