• joaoaso

    (@joaoaso)


    I have this error

    Product #5978 error: the field “description” in must not be empty.

    we have more the 30k of products we don’t field the descrition

    What to do?

    thanks

Viewing 1 replies (of 1 total)
  • Plugin Author Antonino Scarfì

    (@antoscarface)

    Hello,

    unfortunately, Facebook request a description for each product as mandatory.

    So the only workaround I can suggest you is adding a custom code that adds a default description to all products.

    To do that, copy and paste the code below in the functions.php of your current theme or in a new plugin. Here the code:

    
    add_filter('aepc_feed_item', function($params, \PixelCaffeine\ProductCatalog\FeedMapper $item){
        if (empty($params['g:description'])) {
            $params['g:description'] = 'A default empty message'; // <-- CHANGE HERE WITH SOMETHING OTHER
        }
        
        return $params;
    }, 10, 2);
    

    I hope that can help you.
    Let me know.

Viewing 1 replies (of 1 total)

The topic ‘Error’ is closed to new replies.