Title: 1:1 Mapping
Last modified: September 5, 2017

---

# 1:1 Mapping

 *  Resolved [kandap](https://wordpress.org/support/users/kandap/)
 * (@kandap)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/11-mapping/)
 * 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)

 *  [AdTribes.io Development Team](https://wordpress.org/support/users/jorisverwater/)
 * (@jorisverwater)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/11-mapping/#post-9470266)
 * [@karen](https://wordpress.org/support/users/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](https://wordpress.org/support/users/kandap/)
 * (@kandap)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/11-mapping/#post-9470645)
 * 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
 *  [AdTribes.io Development Team](https://wordpress.org/support/users/jorisverwater/)
 * (@jorisverwater)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/11-mapping/#post-9471713)
 * 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
 *  [AdTribes.io Development Team](https://wordpress.org/support/users/jorisverwater/)
 * (@jorisverwater)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/11-mapping/#post-9472790)
 * 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](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](https://wordpress.org/support/users/kandap/)
 * (@kandap)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/11-mapping/#post-9474242)
 * 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
 *  [AdTribes.io Development Team](https://wordpress.org/support/users/jorisverwater/)
 * (@jorisverwater)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/11-mapping/#post-9475014)
 * 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](https://wordpress.org/support/users/kandap/)
 * (@kandap)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/11-mapping/#post-9476780)
 * 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://wordpress.org/plugins/webappick-product-feed-for-woocommerce/](https://wordpress.org/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](https://wordpress.org/support/users/kandap/)
 * (@kandap)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/11-mapping/#post-9514045)
 * 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.

 * ![](https://ps.w.org/woo-product-feed-pro/assets/icon-256x256.png?rev=3111496)
 * [Product Feed PRO for WooCommerce by AdTribes – Product Feeds for WooCommerce](https://wordpress.org/plugins/woo-product-feed-pro/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-product-feed-pro/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-product-feed-pro/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-product-feed-pro/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-product-feed-pro/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-product-feed-pro/reviews/)

## Tags

 * [category](https://wordpress.org/support/topic-tag/category/)
 * [mapping](https://wordpress.org/support/topic-tag/mapping/)

 * 8 replies
 * 2 participants
 * Last reply from: [kandap](https://wordpress.org/support/users/kandap/)
 * Last activity: [8 years, 8 months ago](https://wordpress.org/support/topic/11-mapping/#post-9514045)
 * Status: resolved