• Resolved jrothra

    (@jrothra)


    Store on FB: https://www.facebook.com/johnrothrastore/shop/

    Versions
    WordPress: 4.9.8
    WooCommerce: 3.4.4
    Facebook for WC: 1.9.5

    Problem
    On the FB store, all the products show either “Not published” or “Rejected.” Some are missing their images, too. Regardless, they all have this notice: “People cannot currently see this product because you haven’t selected it for sale on Facebook.”

    However, every one of them was selected for sale on FB.

    I’ll provide screen shots since non-admins can’t see the products.

    This wasn’t happening before, and I couldn’t tell you when it started. I tried re-syncing, and it says it was 100% successful. However, it wasn’t.

    Anyone else have this problem and fixed it?

    Screen shot 1: Missing products
    Screen shot 2: Product notice
    Screen shot 3: Marked for sale on FB

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

Viewing 15 replies - 16 through 30 (of 35 total)
  • espressivo

    (@espressivo)

    If you uncheck virtual but check download it works.

    Have this issues as well. And cannot fix this problem. Does anyone know how to fix it?

    As @espressivo stated, you have to go and uncheck virtual box.

    In your wordpress dashbord click on Products. Find the products which aren’t showing up in Facebook and click edit. Under Product Data section you will see a input check box for Virtual and Downloadable. Uncheck them if they are checked. Save.
    You will have to re-sync with the facebook plugin. It should all work now

    Same problem here.
    All of my products are virtual, with variations.

    Some are showing as “processing” and some as “unpublished”.

    Did anyone got some fix on this?

    @darrinr that means that if you are selling virtual products (like services), you will activate the shipping options if you uncheck “virtual”.
    Is this the only fix?

    Same problem here – products which were previously syncing fine with facebook now seem to be showing the “People cannot currently see this product because you haven’t selected it for sale on Facebook.” despite no settings changing. I can’t untick virtual since they are virtual products so there must be a bug somewhere.

    So – the problem lies within the plugin as of version 1.9.2 – code was added to prevent virtual products from being visible to fb users as virtual services are not supposed to be sold on FB (can’t find anywhere to confirm this). Locate the file includes/fbproduct.php and comment out the below (starts from line 544).

    // Exclude variations that are "virtual" products from export to Facebook &&
        // No Visibility Option for Variations
        if (true === $this->get_virtual()) {
        $product_data['visibility'] = 'staging';
        }

    This should allow virtual products to now show without any issues. Just be sure when the plugin is updated that you put this back in as any changes will be erased!

    Hi chucklebum0205, thanks for the solution! ??

    A little help please. What would be the exact “comment out” code to encapsulate the above code?

    Thanks!

    Thanks @chucklebum0205 I’m going to try this.

    Hi @chucklebum0205, thanks for the solution!

    A little help please. What would be the exact “comment out” code to encapsulate the above code?

    Thanks!

    Hi Mavpro – just insert // in front of all the lines that I’ve mentioned. (In the same way that the comment above the code is formatted). This will leave the code intact but it will be ignored. You will have to add this in each time you update the plugin though. Alternatively you could just delete the whole section.

    Hope this helps!

    @mavpro So the revised code should look like this:

    // Exclude variations that are "virtual" products from export to Facebook &&
        // No Visibility Option for Variations
        // if (true === $this->get_virtual()) {
        // $product_data['visibility'] = 'staging';
        // }

    @chucklebum0205

    I am getting an error from WordPress when I comment out the code that says:

    “Unable to communicate back with site to check for fatal errors, so the PHP change was reverted. You will need to upload your PHP file change by some other means, such as by using SFTP.”

    how do I get around this?

    Hi @mikestanzyk I think this is a new thing with WordPress 5.2 – you may have to download that file – make your changes and then re upload it rather than use the WordPress inbuilt plugin editor to get it to work.

    So, I am having this very same issue. It is a complete pain in the behind, to the point where I am contemplating shutting down my FB Shop. I have commented out the code above but this does not help so I suppose I will have to re-sync the entire catalog? Why on earth are virtual products a problem for FB??

Viewing 15 replies - 16 through 30 (of 35 total)
  • The topic ‘Facebook for WooCommerce Syncs, but Items Show “Not Published” or “Rejected”’ is closed to new replies.