*/ class Rex_Feed_Template_Kuantokusta extends Rex_Feed_Abstract_Template { protected function init_atts(){ $this->attributes = array( 'Required Information' => array( 'name' => 'Name', 'brand' => 'Brand', 'url' => 'Url', 'price' => 'Price', 'category' => 'Category', 'picture_url' => 'Picture Url', 'shipping_cost' => 'Shipping Cost', ), 'Recommended Information' => array( 'EAN' => 'EAN', 'MPN' => 'MPN', ), 'Optional Information' => array( 'description' => 'Description', 'product_id' => 'Product Id', 'store_pickup_rate' => 'Store Pickup Rate', ), ); } protected function init_default_template_mappings(){ $this->template_mappings = array( array( 'attr' => 'name', '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' => 'url', 'type' => 'meta', 'meta_key' => 'link', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'cdata', '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' => 'category', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'picture_url', 'type' => 'static', 'meta_key' => '', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'shipping_cost', 'type' => 'static', 'meta_key' => '', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), ); } }