Support » Plugin: WC Fields Factory » WooCommerce images not showing after latest update

  • Hi,
    After yesterday’s update, the woocommerce images are not showing on the single product page. I deactivated the plugin and then the images are showing.

    PLease look into this plugin conflict with WooCommerce

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author sarkparanjothi


    I have checked everything working for me.
    Can you post woocommerce version and php error log about wcff.

    I’m getting the same issue.

    (index):392 Uncaught TypeError: $ is not a function
    Error is occurring in this block

    <script> var $ = jQuery;
    // Error occurs on the next line
    $(document).on(“change”, “[data-has_field_rules=yes]”, function(){

    I believe you want

    <script> var $ = jQuery;
    var $ = jQuery;
    $(document).on(“change”, “[data-has_field_rules=yes]”, function(){

    Daniel Mesteru


    +1. Woocommerce product images not working and the virtual products selection is not working either after the last update (2.0.8)

    WC: 3.3.5
    WP: 4.9.5

    I’m also having the same issue.

    WC : 3.3.5 and
    WP : 4.9.6.

    I believe it’s a jQuery conflit. I noticed the Quantity button were also not working properly. When disabling the display of the custom fields from WC Field Factory, everything (quantity buttons and image included) loads and works fine.

    So following @protostack‘s suggestion (thanks!), I edited the wp-content/plugins/wc-fields-factory/includes/wcff-injector.php file, on line 142 and added the “var $ = jQuery;” declaration inside the ready function.

    It works now, but hopefully the next update won’t crush this fix!

    Thanks @protostack
    This hotfix works perfect. Wasted lot of time before I found this post

    Hi, I’ve just come across this issue, the fix above doesn’t look like it works now? Or at least the file has changed and I’m not putting it in the right place!?

    Anyone else?


    • This reply was modified 3 months, 3 weeks ago by  leeshields.

    Found Protostacks new update replacing line 644 (in my case) with

    $color_picker_script .= ‘$(document).ready(function() {var $=jQuery;if( typeof $.spectrum != “undefined” ){‘;

    Just for anyone else that comes across this, credit to Protostack


    @sarkparanjothi Please, update and fix this issue. I can’t watch over my client’s website every time I update this plugin and having to charge fee for my time I have to spend editing the plugin’s source code!

    To summerize :
    You still need to edit wp-content/plugins/wc-fields-factory/includes/wcff-injector.php file, on line 182 (no longer 142) and add the “var $ = jQuery;” declaration inside the ready(function()). For simplicity’s sake, I parsed the tabulation for display here…

    	var $ = jQuery;
    	$(document).on("change", "[data-has_field_rules=yes]", function(){

    Then you also need to edit the same file at line 645 with @leeshields addition to the fix and replace
    $color_picker_script .= '$(document).ready(function() {if( typeof $.spectrum != "undefined" ){';
    with :
    $color_picker_script .= '$(document).ready(function() {var $=jQuery;if( typeof $.spectrum != “undefined” ){';

    • This reply was modified 3 months, 3 weeks ago by  Nickolabs. Reason: Adding code
    • This reply was modified 3 months, 3 weeks ago by  Nickolabs. Reason: More code

    I have the same problem. I edited the file wcff-injector.php, unfortunately, it not work for me. Any idea?
    Thank you!

    I have the same issue but I don’t have wc-fields-factory folder, I also searched for the wcff-injector.php it couldn’t be found in my website folder anywhere??!!

    Any ideas anyone

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