Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #734864

    I’m using the “Quantities and Units for WooCommerce” plugin to enable decimal quantities and Kg as units.
    I tried to disable the Enfold +/- as suggested by Josue in his answer HERE, but there are some problems. Here are my try:

    Theme: Twenty Seventeen – Plugin: enabled
    the HTML +/- buttons are revealed, fractional quantities can be saved to cart

    Theme: Enfold – Plugin: enabled
    the Enfold +/- buttons are not working, manual input with fractional quantities is not accepted by page

    Theme: Enfold child with Josua code to disable Enfold +/- buttons – Plugin: enabled
    Enfold +/- buttons are disappeared as expected
    The HTML +/- buttons are not revealed, manual input with fractional quantities is accepted by page
    The decimal separator in the header cart is wrong (‘.’ instead of ‘,’ as defined in woocommerce config)
    https://drive.google.com/file/d/0B7baurTblFiQQWloLUVmeEJCN2M/view?usp=sharing
    https://drive.google.com/file/d/0B7baurTblFiQX0x0X2pwRGF1V1U/view?usp=sharing

    Obviously, the fractional quantities directly supported by Enfold +/- buttons … is the desired solution :-)

    #736211

    Hey tipinoncomuni,

    Thank you for using Enfold.

    Please remove all modifications or revert the files back to their original state then edit the config-woocommerce > woocommerce-mod.js file. Look for this code around line 23:

    newNum = jQuery(jQuery('<div />').append(number.clone(true)).html().replace('number','text')).insertAfter(number);
    

    .. replace it with:

    newNum = jQuery(jQuery('<div />').append(number.clone(true)).html()).insertAfter(number);
    

    Remove browser cache or hard refresh before checking the product again.

    Best regards,
    Ismael

    #736551

    Thanks Ismael but still i need your help:
    https://drive.google.com/file/d/0B7baurTblFiQSnFseFlveFZ2NWM/view?usp=sharing
    A – Enfold +/- buttons aren’t working with fractional increment (they works well with integer increments)
    B – purchased quantity message is incorrect (number truncated to near integer)
    C – header cart decimal separator is incorrect
    D – how to disable HTML +/- buttons? The same problem arise in the cart.

    Thanks again

    • This reply was modified 7 years, 10 months ago by tipinoncomuni.
    #738153

    Hi!

    Could you please provide a link to the actual product with the issue? I visited the shop page but I can’t access the products.

    // http://shop.servizinoncomuni.it/negozio/

    And please contact the plugin author for additional help regarding the issue.

    Regards,
    Ismael

    #738273

    Sorry. Permalink error. A refresh was needed.

    For additional help you mean the issues B,C? oh. I was convinced it was an Enfold output.
    Could you tell me the CSS style to disable the +/- HTML in-field buttons?

    #740231

    Hi,

    are you talking about +/- from this website? if yes then use this code inside Quick CSS field to hide it:

    input.plus, input.minus {
    display: none !important;
    }

    Best regards,
    Andy

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.