• Resolved Millby Furniture

    (@darrenn123)


    Hi
    The feed has been working fine for the last couple of months without any changes it has run into a number of issues

    Getting an error with facebook products, firstly it said I had duplicate ID’s which I havent and it was excluding 60% of the products in my feed which is around 320
    so I exported the products from woocommerce as CSV and ran remove duplicates on the ID field and none deleted. so there are no duplicates in the catalogue, either there is an error with facebook or your plugin is manipulating the data somehow?

    deleted the feed from facebook, and all products and done a fresh upload, now My feed for Facebook has around 670 products, this is after filtering for out of stock etc but now I am not getting any duplicate errors, but only showing 230 products.

    there is a serious lack of consistency with the plugin

Viewing 12 replies - 1 through 12 (of 12 total)
  • Hi,

    Thanks for using our plugin and reaching out to us. Sorry to hear you are experiencing issues with your feed.

    Can you share the following with us:

    Thread Starter Millby Furniture

    (@darrenn123)

    Hi

    I will do, just waiting for it to finish an update of the feed

    Thread Starter Millby Furniture

    (@darrenn123)

    how do I sent you the debug log?

    You can share the debug.log URL here

    Thread Starter Millby Furniture

    (@darrenn123)

    Hi
    There are still issues with duplicated content, I believe this is to do with how the feed is built as it is not checking for duplicates on the ID field.

    can a check be put into the code, so prior to the feed being completed it looks for duplicates and removes them?

    Try lowering the batch size of the plugin as when the plugin gets stuck processing because of server configuration limitations this can be causing duplicates. The default batch size is 750, try lowering it too 250.

    This is how you can do so:
    https://adtribes.io/batch-size-configuration-product-feed/

    Thread Starter Millby Furniture

    (@darrenn123)

    Hi

    Have already reduced to 150 and the number of products in the feed varies by over 100 each time it is ran.

    can you set the feed to check for duplicates on the ID?

    Thread Starter Millby Furniture

    (@darrenn123)

    Hi

    have you looked at putting in place a check for duplicates by ID?

    I am at the point where I am wasting far too much time rectifying issues with the plugin where it appears to be a simple fix and a sensible check to put in place

    please let me know

    Yes we have and the code for that is even still in the plugin but disabled for now as we found that such a checking, having to do a check on 10’s of thousands of products for big feeds took far too much server resources and caused issues on its own.

    When you are interested we can tell you what changes to make to uncomment the code so the check is added but it might cause other issues like mentioned.

    Thread Starter Millby Furniture

    (@darrenn123)

    Hi
    if you can let me know the code to uncomment I will try it out, you have my email address if easier

    Sure, do bear in mind that with every new release of the plugin you will have to make the changes again or never install new releases anymore.

    Now with regards to the changes that need to be made, go to this PHP file:
    ../wp-content/plugins/woo-product-feed-pro/classes/class-get-products.php

    On line 2393 you will find this piece of code:

    // Make sure we do not process duplicate products that are already feed
    // $channel_hash = $project_config['channel_hash'];
    // $channel_duplicates = "woosea_duplicates_".$channel_hash;
    // $prevent_duplicates = get_option($channel_duplicates);
    // if(empty($prevent_duplicates)){
    //        $prevent_duplicates = array();
    //        $fake_id = 99999999;
    //        array_push($prevent_duplicates, $fake_id);
    //        update_option($channel_duplicates, $prevent_duplicates, 'no');
    //}

    Remove all the // apart from the first line of the above code.

    On line 2423 you will find this code:

    // Add to the prevent duplication array
    // if(!in_array($product_data['id'], $prevent_duplicates)){
    //      array_push($prevent_duplicates, $product_data['id']);
    //} else {
    //      // duplicate product, do not add
    //      continue;
    //}

    Again remove all // apart from the first line of the above code and 5th line

    And on line 4863 you will find this code:

    // Add processed products to array
    //if(get_option('woosea_duplicates')){
    //        update_option($channel_duplicates, $prevent_duplicates, 'no');
    //}

    Again remove all // apart from the first line again

    On line 4978 you will find this code:

    // Delete processed product array for preventing duplicates
    // $channel_duplicates = "woosea_duplicates_".$project_hash;
    // delete_option($channel_duplicates);

    Again remove all // apart from the first line again

    On line 5032 you will find this code:
    // Delete processed product array for preventing duplicates
    // $channel_duplicates = “woosea_duplicates_”.$project_hash;
    // delete_option($channel_duplicates);

    Again remove all // apart from the first line again

    That should do the trick. Please bear in mind that this feature has only been tested for over a week and was causing issues so we cannot offer you support on it.

    Assuming the issue at hand has been resolved and/or our assistance is no longer required I will close this topic for now for housekeeping reasons.

    Do not hesitate to reach out to us again when you need our support.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Facebook Duplicates’ is closed to new replies.