• Hey again,

    Sorry to keep blowing you up. I plan on using this plugin pretty extensively in my shop, so we might get to know each other well.

    I have a nice form at the link I posted, and turned on the Price Rules -> Update Price? setting for the real-time price updates. Everything else set to Default or Hide.

    This creates the following JavaScript error and makes the WCFF form act funny on the page. When I turn off the Update Price? setting, everything goes back to normal.

    Uncaught RangeError: Maximum call stack size exceeded
    at String.replace (<anonymous>)
    at Function.fa.matchesSelector (jquery.js?ver=1.12.4:2)
    at a.fn.init.closest (jquery.js?ver=1.12.4:2)
    at HTMLSelectElement.<anonymous> ((index):491)
    at HTMLDocument.dispatch (jquery.js?ver=1.12.4:3)
    at HTMLDocument.r.handle (jquery.js?ver=1.12.4:3)
    at Object.trigger (jquery.js?ver=1.12.4:3)
    at Object.a.event.trigger (jquery-migrate.min.js?ver=1.4.1:2)
    at HTMLSelectElement.<anonymous> (jquery.js?ver=1.12.4:3)
    at Function.each (jquery.js?ver=1.12.4:2)

    I really love what I’ve seen so far. Keep up the good work!!

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Did this ever get fixed?

    It works for me when there’s no Field Rules.

    Thread Starter matthewasibe

    (@matthewasibe)

    Not fixed. Thanks for the further info.

    My fields do contain field rules.

    Thread Starter matthewasibe

    (@matthewasibe)

    Please help. Making a push to get the site live this week.

    Thread Starter matthewasibe

    (@matthewasibe)

    Further testing shows:

    • I am able to successfully show and hide fields one by one, but this error occurs each time.
    • The Javascript attempts to hide all fields on page load. It crashes on the first one, leaving all the others exposed.
    • The price never updates

    I looked up the error that we are getting. It seems that one of your recursive functions has a base case that cannot be met.

    I would guess that this error is occurring when a field is updated after the conditional fields are shown or hidden. Maybe where the price is supposed to be updated. Once it throws the error, the rest of the Javascript on the page stops.

    Trying to help as much as possible. I need to push this site live this week, and this would be a key feature for what we are offering customers.

    Please help. Thanks in advance!

    Thread Starter matthewasibe

    (@matthewasibe)

    Alright, well, I’ve waited over a month for a reply. I’m moving on.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Price Rules setting creates JavaScript error’ is closed to new replies.