Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1336762
    Brian
    Guest

    I seem to be unable to post on your forums. I have a fix for this issue:
    https://kriesi.at/support/topic/woocommerce-one-page-checkout-not-working-with-enfold-theme/

    The fix is as follows: in woocommerce-mod.js line 51:

    //newNum = jQuery( jQuery( ‘<div />’ ).append( cloned ).html().replace( ‘number’,’text’ ) ).insertAfter( number );
    newNum = cloned.insertAfter( number );
    newNum.addClass(‘no-spin-num’);

    Then add somewhere in the css:
    .no-spin-num::-webkit-inner-spin-button, .no-spin::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
    }
    .no-spin-num {
    -moz-appearance:textfield !important;
    }

    The issue was that while you cloned the quantity field, but by changing its type from number to text you stripped the events (this would only work if you manually copied the events over for the modified elements). So easier to just clone as you have and hide the spinners via css. A more thorough solution would be to keep the change to a text field and then copy over the events, but this was quicker and easier.

    Et voila! Your theme now works with WooCommerce One Page Checkout!

    I also suggest you allow users to post on your forums even if their support is out of date (for cases like this – sales will have no idea what to do with this – send it to the developers).

    Thanks,
    Brian

    #1337068

    Hey Brian,

    Thanks for contacting us!

    We have forwarded your suggestion to our devs. We will request a copy from WooCommerce team and test it. Thank you so much for your help!

    Our devs have access to pre-sale question thread. If there is a post that requires their attention, we simply tag them in the thread. Thanks for your suggestion as well :)

    Enjoy the rest of your day!

    Best regards,
    Yigit

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