• Resolved JLoureiro

    (@pattuka)


    Hi from Spain and many thanks for your work.

    I’m testing your plugin and I like it very much.

    I have one question. If you sell various type of products that should correspond to different google product categories, is there any way the feed could indicate the correct google category for each product?

    Kind regards,
    Jaime Loureiro.

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

    (@antoscarface)

    Hi,

    actually, it’s not possible to select different google category to different products.

    The only way to do that is by code, but you need some PHP expertise in order to write the right algorithm for your case. Here an example:

    
    add_filter('aepc_feed_item', function($fields, $item) {
            if ( /* Something */ ) {
                $fields['g:google_product_category'] = 'Your Google Category';    
            } else {
                $fields['g:google_product_category'] = 'Your another Google Category';    
            } 
    
    	return $fields;
    }, 10, 2);
    

    Adjust this snippet according to your case.

    Here the full list of google categories you need to use to have a valid feed: https://support.google.com/merchants/answer/6324436?hl=en&visit_id=637084662001966991-83695166&rd=1

    Thread Starter JLoureiro

    (@pattuka)

    Hi and sorry for the late answer.

    Many thanks for the approach.

    It would be great if the feature is included in the plugin in the future.

    ??

    Plugin Author Antonino Scarfì

    (@antoscarface)

    Yeah, it’s on my backlog. I hope to work on it as soon as possible ??

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