*/ class Rex_Feed_Template_Sparmedo extends Rex_Feed_Abstract_Template { protected function init_atts(){ $this->attributes = array( 'Required Information' => array( 'shop_code' => 'Shop Code', 'selling_price' => 'Selling Price', 'deeplink' => 'Deeplink', 'delivery_costs' => 'Delivery Costs', 'product_brand' => 'Product Brand', 'delivery_period' => 'Delivery Period', ), 'Additional Information' => array( 'picture_link' => 'Picture Link', 'PZN' => 'PZN', 'price_incl_prescription' => 'Price incl prescription', 'category' => 'Category', 'product_EAN' => 'Product EAN', ), ); } protected function init_default_template_mappings(){ $this->template_mappings = array( array( 'attr' => 'shop_code', 'type' => 'meta', 'meta_key' => 'id', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'selling_price', 'type' => 'meta', 'meta_key' => 'price', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'deeplink', 'type' => 'meta', 'meta_key' => 'link', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'cdata', 'limit' => 0, ), array( 'attr' => 'delivery_costs', 'type' => 'static', 'meta_key' => '', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'product_brand', 'type' => 'static', 'meta_key' => '', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'delivery_period', 'type' => 'static', 'meta_key' => '', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), ); } }