*/ class Rex_Feed_Template_Rakuten extends Rex_Feed_Abstract_Template { protected function init_atts(){ $this->attributes = array( 'Required Information' => array( 'id' => 'Product Id [id]', 'title' => 'Product Title [title]', 'brand' => 'Product Brand', 'description' => 'Product Description [description]', 'google_product_category' => 'Google Product Category [google_product_category]', 'link' => 'Product URL [link]', 'Image_link' => 'Main Image [image_link]', 'price' => 'Price', 'availability' => 'Availability', 'gtin' => 'GTIN [gtin]', 'mpn' => 'MPN [mpn]', 'condition' => 'Condition [condition]', 'gender' => 'Gender [gender]', 'age_group' => 'Age Group [age_group]', 'product_type' => 'Product Categories [product_type] ', ), 'Recommended Attributes' => array( 'sale price effective date' => 'Sale Price Effective Date [sale_price_effective_date]', 'material' => 'Material [material]', 'pattern' => 'Pattern [pattern]', 'item_group_id' => 'Item Group Id', 'sale_price' => 'Sale Price', 'additional image link' => 'Additional Image [additional_image_link]', 'color' => 'Color [color]', 'size' => 'Size of the item [size]', 'tax' => 'Tax [tax]', 'shipping' => 'Shipping', 'shipping weight' => 'Shipping weight', 'multipack' => 'Multipack [multipack]', 'adult' => 'Adult [adult]', ), 'Optional Attributes' => array( 'sku' => 'SKU', ), ); } protected function init_default_template_mappings(){ $this->template_mappings = array( array( 'attr' => 'id', 'type' => 'meta', 'meta_key' => 'id', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'title', 'type' => 'meta', 'meta_key' => 'title', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'brand', 'type' => 'static', 'meta_key' => '', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'description', 'type' => 'meta', 'meta_key' => 'description', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'google_product_category', 'type' => 'meta', 'meta_key' => '', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'link', 'type' => 'meta', 'meta_key' => 'link', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'cdata', 'limit' => 0, ), array( 'attr' => 'Image_link', 'type' => 'meta', 'meta_key' => 'featured_image', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'price', 'type' => 'meta', 'meta_key' => 'price', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'availability', 'type' => 'meta', 'meta_key' => 'availability', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'gtin', 'type' => 'meta', 'meta_key' => '', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'mpn', 'type' => 'meta', 'meta_key' => 'sku', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'condition', 'type' => 'meta', 'meta_key' => 'condition', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'gender', 'type' => 'static', 'meta_key' => '', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'age_group', 'type' => 'static', 'meta_key' => '', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'product_type', 'type' => 'meta', 'meta_key' => 'product_cats_path', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), ); } }