*/ class Rex_Feed_Template_Pricerunner extends Rex_Feed_Abstract_Template { protected function init_atts(){ $this->attributes = array( 'Required Information' => array( 'Product_name' => 'Product name', 'SKU' => 'SKU', 'Category' => 'Category', 'Price' => 'Price', 'Product_URL' => 'Product URL', 'Description' => 'Description', 'Image_URL' => 'Image URL', 'In_Stock' => 'In Stock', 'Shipping_Cost' => 'Shipping_Cost', 'EAN' => 'EAN', 'Manufacturer' => 'Manufacturer', 'Manufacturer_SKU' => 'Manufacturer SKU', 'Delivery_Time' => 'Delivery Time', ), 'Additional Information' => array( 'marque' => 'Marque', 'Full_price' => 'Full Price', 'currency' => 'Currency', 'second-hand' => 'Second Hand', 'type_promotion' => 'Type Promotion', 'mobile_URL' => 'Mobile URL', 'guarantee' => 'Guarantee', 'availability' => 'Availability', 'delivery_charge' => 'Delivery Charge', ), ); } protected function init_default_template_mappings(){ $this->template_mappings = array( array( 'attr' => 'Product_name', 'type' => 'meta', 'meta_key' => 'title', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'SKU', 'type' => 'meta', 'meta_key' => 'id', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'Category', 'type' => 'meta', 'meta_key' => 'product_cats', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'Price', 'type' => 'meta', 'meta_key' => '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' => 'Description', 'type' => 'meta', 'meta_key' => 'description', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'Image_URL', 'type' => 'meta', 'meta_key' => 'featured_image', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'In_Stock', 'type' => 'static', 'meta_key' => 'yes', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'Shipping_Cost', 'type' => 'static', 'meta_key' => '', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'Manufacturer', 'type' => 'static', 'meta_key' => '', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'Manufacturer_SKU', 'type' => 'meta', 'meta_key' => 'sku', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'EAN', 'type' => 'static', 'meta_key' => '', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'Delivery_Time', 'type' => 'static', 'meta_key' => '5 days', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), ); } }