Home Forums WoodMart support forum Split: Problem with Fancy Product Designer Plugin

Split: Problem with Fancy Product Designer Plugin

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #388235

    tg
    Participant

    Hello! We are facing the exact same issue. We went ahead and took the .js files (addToCartAllTypes.js and addToCartAllTypes.min.js in wp-content/themes/woodmart/js/scripts/wc) from a different site still running WoodMart 6.4.2 to have a temporary fix. But this only works if the “Combine JS files” is off. If combine is on, we still see the following error:

    combine.min.js?ver=6.5.4:1 Uncaught TypeError: Cannot read properties of undefined (reading 'submitter')
        at HTMLFormElement.<anonymous> (combine.min.js?ver=6.5.4:1:96687)
        at HTMLBodyElement.dispatch (jquery.min.js?ver=3.6.0:2:43064)
        at v.handle (jquery.min.js?ver=3.6.0:2:41048)
        at Object.trigger (jquery.min.js?ver=3.6.0:2:71515)
        at HTMLFormElement.<anonymous> (jquery.min.js?ver=3.6.0:2:72110)
        at Function.each (jquery.min.js?ver=3.6.0:2:3003)
        at s.fn.init.each (jquery.min.js?ver=3.6.0:2:1481)
        at s.fn.init.trigger (jquery.min.js?ver=3.6.0:2:72086)
        at s.fn.<computed> [as submit] (jquery-migrate.min.js?ver=3.3.2:2:8557)
        at fancyProductDesigner.viewInstances.<computed>.toDataURL.format ((index):1968:19)
        at FancyProductDesigner-all.min.js?ver=5.3.1:8:59774
        at i._initPattern (fabric-3.0.0.min.js?ver=3.0.0:1:5498)
        at i.__setBgOverlayColor (fabric-3.0.0.min.js?ver=3.0.0:1:67022)
        at i.setBackgroundColor (fabric-3.0.0.min.js?ver=3.0.0:1:66377)
        at FancyProductDesignerView.toDataURL (FancyProductDesigner-all.min.js?ver=5.3.1:8:59694)
        at HTMLFormElement.<anonymous> ((index):1964:45)

    The issues seems to be caused by the change in addToCartAllTypes.js in Line 16:

    WoodMart 6.4.2:

    			if ($productWrapper.hasClass('product-type-external') || $productWrapper.hasClass('product-type-zakeke') || $productWrapper.hasClass('product-type-gift-card')) {
    				return;
    			}

    WoodMart 6.5.4:

    			if ($productWrapper.hasClass('product-type-external') || $productWrapper.hasClass('product-type-zakeke') || $productWrapper.hasClass('product-type-gift-card') || $(e.originalEvent.submitter).hasClass('wd-buy-now-btn')) {
    				return;
    			}

    Regards,
    Stefan

    #388448

    Hello,

    Please update the theme till the recent version and apply the patch: 388364

    Find our documentation tutorial about this here: https://xtemos.com/docs-topic/automatic-patcher/

    If you have any questions please feel free to contact us.

    Best Regards

    #388518

    tg
    Participant

    Hello!

    We applied the patch and cleared the Browser cache / tried in incognito mode (Google Chrome) but the error unfortunately persists:

    addToCartAllTypes.min.js?ver=6.5.4:1 Uncaught TypeError: Cannot read properties of undefined (reading 'submitter')
        at HTMLFormElement.<anonymous> (addToCartAllTypes.min.js?ver=6.5.4:1:404)
        at HTMLBodyElement.dispatch (jquery.min.js?ver=3.6.0:2:43064)
        at v.handle (jquery.min.js?ver=3.6.0:2:41048)
        at Object.trigger (jquery.min.js?ver=3.6.0:2:71515)
        at HTMLFormElement.<anonymous> (jquery.min.js?ver=3.6.0:2:72110)
        at Function.each (jquery.min.js?ver=3.6.0:2:3003)
        at s.fn.init.each (jquery.min.js?ver=3.6.0:2:1481)
        at s.fn.init.trigger (jquery.min.js?ver=3.6.0:2:72086)
        at s.fn.<computed> [as submit] (jquery-migrate.min.js?ver=3.3.2:2:8557)
        at fancyProductDesigner.viewInstances.<computed>.toDataURL.format (VM13:1943:19)
        at FancyProductDesigner-all.min.js?ver=5.3.1:8:59774
        at i._initPattern (fabric-3.0.0.min.js?ver=3.0.0:1:5498)
        at i.__setBgOverlayColor (fabric-3.0.0.min.js?ver=3.0.0:1:67022)
        at i.setBackgroundColor (fabric-3.0.0.min.js?ver=3.0.0:1:66377)
        at FancyProductDesignerView.toDataURL (FancyProductDesigner-all.min.js?ver=5.3.1:8:59694)
        at HTMLFormElement.<anonymous> (VM13:1939:45)
    #388759

    Hello,

    Please insert the site admin access as well as FTP into the Private content below the message area. We will take a closer look at the case.

    If you have any questions please feel free to contact us.

    Best Regards

    #389441

    tg
    Participant

    Providing credentials.
    Site is fully updated (relevant plugins +WoodMart patcher).

    Steps to reproduce:
    1. Load sample product page
    2. Select any option in “Gedenktafel-Konfigurator 30×20”
    3. Click “in den Warenkorb”
    4. Error will occur.

    Thanks,
    Stefan

    #389626

    Hello,

    Please deactivate all the plugins except these ones:

    Slider Revolution
    Elementor
    Woodmart Core
    Contact Form 7
    MailChimp for WordPress
    WooCommerce
    Safe SVG
    Switch to the parent theme and check the issue.

    If the problem has gone, activate the plugins one by one, checking the issue to detect which one causes the problem.

    Best Regards

    #389646

    tg
    Participant

    Hello!

    I just did this. And to no surprise the issue arises as soon as Fancy Product Designer is active – which the Javascript error message already hints at. You already released a patch (#388364) which should fix this issue, but didn’t for us.
    Why are we starting at the beginning of debugging again?

    #390198

    Hello,

    We are sorry for the delay.

    Please apply patch 390080 Find our documentation tutorial about this here: https://xtemos.com/docs-topic/automatic-patcher/

    If you have any questions please feel free to contact us.

    Best Regards

Viewing 8 posts - 1 through 8 (of 8 total)