public function ajax_wpla_load_template_data_for_product()
 {
     // TODO: check nonce
     if (isset($_REQUEST['tpl_id'])) {
         $template = new WPLA_AmazonFeedTemplate($_REQUEST['tpl_id']);
         $post_id = $_REQUEST['post_id'];
         $field_data = get_post_meta($post_id, '_wpla_custom_feed_columns', true);
         if ($template) {
             // build settings form
             $data = array();
             $data['fields'] = $template->getFieldData();
             $data['values'] = $template->getFieldValues();
             $data['profile_field_data'] = is_array($field_data) ? $field_data : array();
             $data['product_attributes'] = WPLA_ProductWrapper::getAttributeTaxonomies();
             @WPLA_Page::display('profile/edit_field_data', $data);
             exit;
         } else {
             echo "invalid template id";
         }
     }
 }