• Resolved FS Group IT

    (@fsgroupit)


    Hi,

    Please can the product sync be updated to include variable products with catalogue visibility set to ‘search results only’

    We use a plug in called ‘IconicWP Show Single Variations’ that allows us to publish all variations to the WooCommerce catalogue without showing the parent product. To do this we can set catalogue visibility for each varation and then set the parent variation to ‘Search results only’.

    The current filter in place in \includes\ProductSync\ProductValidator.php on line 293 is set to ‘product->is_visible()’

        if ( ! $product->is_visible() ) {
            throw new ProductExcludedException( __( 'This product cannot be synced to Facebook because it is hidden from your store catalog.', 'facebook-for-woocommerce' ) );
        }

    This prevents products set to ‘Search results only’ from syncing. If we amend it to ‘product->product_visibility == ‘hidden’ like the example below then those products are synced.

        if ( $product->product_visibility == 'hidden' ) {
            throw new ProductExcludedException( __( 'This product cannot be synced to Facebook because it is hidden from your store catalog.', 'facebook-for-woocommerce' ) );
        }

    Any chance the plugin can be updated to sync these variable products please?

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Chris Moreira – a11n

    (@chrism245)

    Hello there,

    This will require customization to achieve that, so it will require help from a developer.

    This is a fairly complex development topic. I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

    I can also recommend the Woo Developer Resources Portal for resources on developing for Woo.

    You can also visit the WooCommerce Facebook group or the #developers channel of the Woo Community Slack. We’re lucky to have a great community of open-source developers for Woo, and many of our developers hang out there, as well.

    Thread Starter FS Group IT

    (@fsgroupit)

    Hi Chris,

    I’m not asking for custom development, I’m asking for Facebook to change the way the plugin works.

    Thanks

    Hey there, @fsgroupit!

    I’m not asking for custom development, I’m asking for Facebook to change the way the plugin works.

    Thanks for clarifying.

    And thank you for your feedback. User feedback is very important to us and always appreciated.

    As my colleague mentioned, at the moment, to achieve this, you can use custom code, so I hope the resources shared help you with that.

    Have a wonderful day!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Sync variable products with catalogue visibility set to ‘Search results only’’ is closed to new replies.