WooCommerce Product Feed PRO plugin please leave us a ★★★★★ rating. Thanks in advance!'; } add_filter('admin_footer_text', 'my_footer_text'); /** * Create notification object */ $notifications_obj = new WooSEA_Get_Admin_Notifications; $notifications_box = $notifications_obj->get_admin_notifications ( '7', 'false' ); /** * Create product attribute object **/ $attributes_obj = new WooSEA_Attributes; $attribute_dropdown = $attributes_obj->get_product_attributes(); /** * Update or get project configuration */ if (array_key_exists('project_hash', $_GET)){ $project = WooSEA_Update_Project::get_project_data(sanitize_text_field($_GET['project_hash'])); $channel_data = WooSEA_Update_Project::get_channel_data(sanitize_text_field($_GET['channel_hash'])); $count_mappings = count($project['attributes']); $manage_project = "yes"; } else { $project = WooSEA_Update_Project::update_project($_POST); $channel_data = WooSEA_Update_Project::get_channel_data(sanitize_text_field($_POST['channel_hash'])); } /** * Determine next step in configuration flow **/ $step = 4; if($channel_data['taxonomy'] != "none"){ $step = 1; } /** * Get main currency **/ $currency = get_woocommerce_currency(); /** * Create channel attribute object **/ require plugin_dir_path(__FILE__) . '../../classes/channels/class-'.$channel_data['fields'].'.php'; $obj = "WooSEA_".$channel_data['fields']; $fields_obj = new $obj; $attributes = $fields_obj->get_channel_attributes(); /** * Add the Item Group ID attribute for product variations **/ if(isset($_POST['product_variations'])){ $channels_with_item_id = array('google_shopping','facebook_drm'); if (in_array($project['fields'],$channels_with_item_id,TRUE)){ $attributes["Detailed product description"]["Item group ID"]["format"] = "required"; $attributes["Detailed product description"]["Item group ID"]["woo_suggest"] = "item_group_id"; if (in_array($project['fields'],$channels_with_item_id,TRUE)){ $attributes["Detailed product description"]["Item group ID"]["feed_name"] = "g:item_group_id"; } else { $attributes["Detailed product description"]["Item group ID"]["feed_name"] = "item_group_id"; } } } ?>

Field mapping

$row_value){ foreach($row_value as $row_k => $row_v){ if ($row_v['format'] == "required"){ ?> $attribute_array){ if(isset($project['attributes'][$attribute_key]['prefix'])){ $prefix = $project['attributes'][$attribute_key]['prefix']; } if(isset($project['attributes'][$attribute_key]['suffix'])){ $suffix = $project['attributes'][$attribute_key]['suffix']; } ?>
Prefix Value Suffix
][rowCount]" value=""> "; } else { print ""; } ?> ][suffix]" class="input-field-medium">
][rowCount]" value=""> ][prefix]" class="input-field-medium" value=""> "; } else { ?> ][suffix]" class="input-field-medium" value="">
"> ">     "> ">