Support » Plugin: WC Fields Factory » WCC fields duplicated a few times on related products sections

  • Resolved mpurdom6903

    (@mpurdom6903)


    Hello,

    It seems that the WCC fields are being duplicated and printed to an area they shouldn’t be showing up at. On the website linked, if you scroll to near the bottom, you will see a section labeled Best Selling Products, this is where the problem is showing up on the products where I have added a WCC field to the product. It is repeating the WCC field in the product titles, in which it should NOT show up at all. On the actual product, the fields and information seems fine. How can I remove those text strings?

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

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

    (@sarkparanjothi)

    Please Check any empty field group with Archive Product Page selected.

    Hello.

    I have the same problem with a variable product. I have checked all field groups(none are empty and all have Archive Page set to None). The string shown seems to be the Cloning Group Title. In the link, it’s the last product in that list.

    I’d appreciate any suggestions on how to remove them.
    Thanks

    https://www.clonard.co.za/product-category/extra-resources/

    Plugin Author sarkparanjothi

    (@sarkparanjothi)

    hi @r-kay, @mpurdom6903,
    I checked your website on archive page wcff-client.js is not loading because of this only the extra variation label is showing.

    Please reset website script cache.

    Thanks.

    Nothing has worked so far, including removing and reinstalling the plugin.

    Plugin Author sarkparanjothi

    (@sarkparanjothi)

    @r-kay,
    Goto plugin/wc-fields-factory/includes/wcff-product-fields.php and find add_action( 'wp_head', array( $this, 'wcff_

    to entire line replace with add_action( 'wp_enqueue_scripts', array( $this, 'wcff_client_script' ) );

    @sarkparanjothi – have replaced the line, but still showing the same.

    Thread Starter mpurdom6903

    (@mpurdom6903)

    I replaced the line and do not have any script caching installed on site or via the server that I know of. It is only displaying on Variable products, of which I have 3 that are displayed in various places on my site, so it’s very much an eyesore with this duplicated content everywhere. Please look at just the shop page below to see how bad it looks:

    https://fallguysproducts.com/fall-guys-products-shop/

    Any other suggestions? I tried all of the above.

    Thread Starter mpurdom6903

    (@mpurdom6903)

    It’s almost been two weeks since my last reply. Can someone please look at the website https://fallguysproducts.com/fall-guys-products-shop/ and explain to me how to get rid of all of those extra fields showing up, Ceiling Height & User Weight:1 is showing up for any of the variable priced products?

    Hi @sarkparanjothi!

    We are running into this issue as well. I’m thinking that @mpurdom6903 may have resolved this topic because he was able to hide those elements via CSS, but the main issue with the plugin isn’t resolved for others.

    If you could please take a look at Wcff_FieldsInjector::enqueue_client_side_assets(). In the first conditional in that function there is an AND condition which should likely be changed to an OR condition:

    if ( is_product() || is_cart() || is_checkout() && is_archive() || is_shop() ) :

    should likely change to

    if ( is_product() || is_cart() || is_checkout() || is_archive() || is_shop() ) :

    Note: For developers, it is not recommended to edit plugins directly because those edits will be lost when the plugin is updated.

    Thank You,
    Scott

    • This reply was modified 2 years, 5 months ago by Slocum Themes.
Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘WCC fields duplicated a few times on related products sections’ is closed to new replies.