Support » Plugin: WC Fields Factory » Pricing Rules and Field Rules

  • When using both pricing rules & field rules I get this:

    jquery.js:2 Uncaught RangeError: Maximum call stack size exceeded
    at String.replace (<anonymous>)
    at Function.fa (jquery.js:2)
    at Function.a.find (jquery-migrate.min.js:2)
    at HTMLDocument.handlers (jquery.js:3)
    at HTMLDocument.dispatch (jquery.js:3)
    at HTMLDocument.r.handle (jquery.js:3)
    at Object.trigger (jquery.js:3)
    at Object.a.event.trigger (jquery-migrate.min.js:2)
    at HTMLInputElement.<anonymous> (jquery.js:3)
    at Function.each (jquery.js:2)

    Can be viewed here:
    https://woocommerce.photonicsg2.net/product/the-original-granny-p-a-c-burlap-pac/

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • More info:
    WP Version 4.9.8
    PHP Version 7.2 (Tried 5.6 too, same results )
    Theme Storefront version 2.41
    WC Fields Factory version 3.03
    Woocommerce version 3.52

    I have disabled all plugins but these 2. Still occuring

    • This reply was modified 1 year, 9 months ago by mjbehrii.
    Plugin Author sarkparanjothi

    (@sarkparanjothi)

    hi @mjbehrii,
    Sorry for that,
    Goto plugins/wc-fields-factory/includes/wcff-injector.php
    And find

    [data-is_pricing_rules=’yes’]\”)

    this line replace with

    [data-is_pricing_rules=’yes’]\”).not( this )

    It will work properly and also we will fix it on our next release.

    Thanks,

    @sarkparanjothi

    Thanks for the quick reply. I really appreciate it! Can you give me the whole line to replace? What I changed did not work. Here’s the line I found:

    Line 210:
    $field_rules_script .= “$(this).closest(\”.wccpf-fields-container\”).find(\”table:not(.wcff_is_hidden_from_field_rule) [data-is_pricing_rules=’yes’]\”).trigger( \”change\” ); }”;

    Thanks!

    Plugin Author sarkparanjothi

    (@sarkparanjothi)

    $field_rules_script .= “$(this).closest(\”.wccpf-fields-container\”).find(\”table:not(.wcff_is_hidden_from_field_rule) [data-is_pricing_rules=’yes’]\”).not(this).trigger( \”change\” ); }”;

    THANKS AGAIN for the quick response!!

    But I’m still getting the error.

    I confirmed that the changes are showing in the page source code.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Pricing Rules and Field Rules’ is closed to new replies.