*/ class Rex_Feed_Template_Fnac extends Rex_Feed_Abstract_Template { protected function init_atts(){ $this->attributes = array( 'Required Information' => array( 'product_name' => 'Product title', 'product_description' => 'Product description', 'product_price' => 'Product price', 'product_URL' => 'Product URL', 'product_SKU' => 'Product SKU', 'product_image_url' => 'Product Image Url', 'EAN' => 'EAN', 'target_audience' => 'Target audience', 'quantity' => 'Quantity', ), 'Additional Information' => array( 'product_brand' => 'Product brand', 'product_weight' => 'Product weight', 'condition' => 'Condition', 'parent_SKU' => 'Parent SKU', 'ISBN' => 'ISBN', 'MPN' => 'MPN', ), ); } 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' => 'product_description', 'type' => 'meta', 'meta_key' => 'description', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'product_price', 'type' => 'meta', 'meta_key' => 'price', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'product_URL', 'type' => 'meta', 'meta_key' => 'link', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'cdata', 'limit' => 0, ), array( 'attr' => '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' => 'target_audience', 'type' => 'static', 'meta_key' => '', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'quantity', 'type' => 'meta', 'meta_key' => 'quantity', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), ); } }