*/ class Rex_Feed_Template_Hintaseuranta extends Rex_Feed_Abstract_Template { protected function init_atts(){ $this->attributes = array( 'Required Information' => array( 'title' => 'Product Name', 'price' => 'Price', 'category' => 'Category', 'direct_link' => 'Direct Link', 'producer_product_code' => 'Producer Product code', 'postage_and_parcking' => 'Postage and Parcking', 'delivery_time' => 'Delivery Time', 'ean' => 'EAN', ), 'Additional Information' => array( 'store_product_code' => 'Store Product code', 'product_picture_url' => 'Product Picture Url', 'description' => 'Description', 'producer_home_page' => 'Producer Home page', 'producer_product_page' => 'Producer Product Page', 'guarantee' => 'Guarantee', 'price_tracking_id' => 'Price Tracking ID', 'additional_info' => 'Additional Info', ), 'Recommended Information' => array( 'producer_name' => 'Producer Name', ), ); } protected function init_default_template_mappings(){ $this->template_mappings = array( array( 'attr' => 'title', 'type' => 'meta', 'meta_key' => 'title', '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' => 'category', 'type' => 'meta', 'meta_key' => 'product_cats', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'direct_link', 'type' => 'meta', 'meta_key' => 'link', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'cdata', 'limit' => 0, ), array( 'attr' => 'producer_product_code', 'type' => 'static', 'meta_key' => '', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'postage_and_parcking', 'type' => 'static', 'meta_key' => '', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'delivery_time', 'type' => 'static', 'meta_key' => '', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'ean', 'type' => 'static', 'meta_key' => '', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), ); } }