• Resolved kandap

    (@kandap)


    We are new users of this plug in.

    Specific to Google shopping taxonomy:

    1) we don’t want to build all of our local categories/product hierarchy the exact same way as defined by Google Shopping. Is it possible to override the 1:1 mapping that is created through the plug in for some of the products?

    2) We list a few products in more than one local category. In the 1:1 mapping, how can we designate which category gets chosen for the mapping? We thought maybe it would choose the one marked as primary, but it doesn’t seem to be doing that on all of them.

    Regards,
    Karen

Viewing 8 replies - 1 through 8 (of 8 total)
  • @karen,

    Thanks for using our plugin and reaching out to us, greatly appreciated!

    Let me try to answer your questions:

    1.) I am not exactly sure if I understand your question correctly. You want to add your products to Google Shopping but do not want to map all your products to the Google Shopping category taxonomy? May I ask why you want to do that? Do you want to exclude those products all together from the product feed?

    2.) Our plugin should respect the primary category functionality of the Yoast SEO plugin. Am I right to assume you are using the Yoast plugin, set some categories to primary, but those categories are not being put in the product feed?

    Thanks for your reply.

    All the best,
    Joris

    Thread Starter kandap

    (@kandap)

    Hello-

    Thanks for the quick reply.

    1) We do not want to exclude certain products but we don’t want to have to set up our local category structure to exactly match 1:1 the Google Shopping Taxonomy. We would have to have too many categories on the site and some might only have one product in them. Now that I’ve looked more I see there see there is an option to map a product to a google shopping category. If I do that for a product that falls into a local category that also has a mapping, will it override the category mapping? I think that would solve our need.

    2) We are using Yoast and the primary category does seem to be working. I might have looked at an un-refreshed feed by accident.

    Regards,
    Karen

    Hi Karen,

    1.) If you first do the mappings based on ‘Category’ and do the mappings based on ‘Product name’ after than it works as you desire. The product name mapping will override the category mapping in that case.

    2.) Good ??

    Let me know if you need more help, I will be glad to help you out.

    Best,
    Joris

    Some extra information with regards to the google_product_category field. This field is not mandatory for all product categories according to Google. See this link: https://support.google.com/merchants/answer/6324436?hl=en

    So, if the products it concerns are not in the list of required categories you do not need bother to map them at all ??

    Thread Starter kandap

    (@kandap)

    Hi Joris-

    Thanks for the info on google_product_category. We like to include as much data as possible to Google so the products show up for the most relevant search terms.

    We have a different issue right now to solve. We have added a upc field to our products via the woocommerce_product_options_inventory_product_data() hook to track UPC for all our inventory needs. It doesn’t show up in the dropdown as an option for Attribute Mapping in Product Feed Pro. How can we map g:gtin and g:mpn to this custom field?

    Thanks,
    Karen

    Hi Karen,

    Thanks for the clarification. I have to admit that I did not know of the existence of the woocommerce_product_options_inventory_product_data hook. How did you implement that into your WooCommerce shop. Did you implement it(technically) yourself or is it a plugin you are using for this?

    I’d love to help you out on this but I need some more information to implement support for this in one of the upcoming releases.

    Thanks
    Joris

    Thread Starter kandap

    (@kandap)

    Hi Joris-
    We added UPC in-house. Here is the code snippet:

    // Add Custom UPC Meta Field
    add_action(‘woocommerce_product_options_inventory_product_data’,’woocom_simple_product_upc_field’, 10, 1 );

    function woocom_simple_product_upc_field(){
    global $woocommerce, $post;
    $product = new WC_Product(get_the_ID());
    echo ‘<div id=”upc_attr” class=”options_group”>’;
    //add UPC field for simple product
    woocommerce_wp_text_input(
    array(
    ‘id’ => ‘_upc’,
    ‘label’ => ‘UPC’,
    ‘desc_tip’ => ‘true’,
    ‘description’ => ‘Enter the UPC’)
    );
    echo ‘</div>’;
    }

    // save UPC Meta Field
    add_action(‘woocommerce_process_product_meta’,’woocom_simple_product_upc_save’);
    function woocom_simple_product_upc_save($post_id){
    $upc_post = $_POST[‘_upc’];
    // save the ups
    if(isset($upc_post)){
    update_post_meta($post_id,’_upc’, esc_attr($upc_post));
    }
    // remove if UPC meta is empty
    $upc_data = get_post_meta($post_id,’_upc’, true);
    if (empty($upc_data)){
    delete_post_meta($post_id,’_upc’, ”);
    }
    }

    This results in a new field showing up on the Inventory tab for ANY Woocommerce product that allows you to give it a UPC.

    The UPC is then stored as a standard post meta field titled _upc. We simply need to be able to select it as an option in attribute mapping.

    We initially purchased this plug in https://www.ads-software.com/plugins/webappick-product-feed-for-woocommerce/ and it pulls the post meta fields in but does not seem to have the same flexibility as your plug in for the category mapping.

    Thanks,
    Karen

    Thread Starter kandap

    (@kandap)

    Hi Joris- Do you have any feedback on how we can get UPC to show in our feed?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘1:1 Mapping’ is closed to new replies.