*/ class Rex_Feed_Template_Pricegrabber extends Rex_Feed_Abstract_Template { protected function init_atts(){ $this->attributes = array( 'Required Information' => array( 'Retsku' => 'Retsku', 'Product Title' => 'Product Title', 'Detailed Description' => 'Detailed Description', 'Product URL' => 'Product URL', 'Primary Image URL' => 'Primary Image URL', 'Regular Price' => 'Regular Price', 'Selling Price' => 'Selling Price', 'Condition' => 'Condition', 'Manufacturer Name' => 'Manufacturer Name', ), 'Additional Information' => array( 'Categorization ' => 'Categorization', 'UPC/EAN' => 'UPC / EAN', 'Manufacturer Part Number' => 'Manufacturer Part Number', 'Alternate Image URL 1' => 'Alternate Image URL', 'ISBN' => 'ISBN', 'Availability' => 'Availability', 'On Sale' => 'On Sale', 'Video URL' => 'Video URL', 'Color' => 'Color', 'Size' => 'Size', 'Material' => 'Material', 'Gender' => 'Gender', 'Shipping Cost' => 'Shipping Cost', 'Weight' => 'Weight', ), ); } protected function init_default_template_mappings(){ $this->template_mappings = array( array( 'attr' => 'Retsku', 'type' => 'meta', 'meta_key' => 'sku', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'Product Title', 'type' => 'meta', 'meta_key' => 'title', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'Detailed Description', 'type' => 'meta', 'meta_key' => 'description', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'Regular Price', 'type' => 'meta', 'meta_key' => 'price', 'st_value' => '', 'prefix' => '', 'suffix' => ' '.get_option('woocommerce_currency'), 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'Selling Price', 'type' => 'meta', 'meta_key' => 'sale_price', 'st_value' => '', 'prefix' => '', 'suffix' => ' '.get_option('woocommerce_currency'), 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'Product URL', 'type' => 'meta', 'meta_key' => 'link', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'cdata', 'limit' => 0, ), array( 'attr' => 'Primary Image URL', 'type' => 'meta', 'meta_key' => 'featured_image', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'Manufacturer Name', 'type' => 'static', 'meta_key' => '', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'Condition', 'type' => 'meta', 'meta_key' => 'condition', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), ); } }