*/ class Rex_Feed_Template_Kompario extends Rex_Feed_Abstract_Template { protected function init_atts(){ $this->attributes = array( 'Required Information' => array( 'Article Number' => 'Article Number', 'Product Name' => 'Product Name', 'URL' => 'URL', 'Product category' => 'Product category', 'Price' => 'Price', 'Manufacturer' => 'Manufacturer', 'Status' => 'Status', ), 'Additional Information' => array( 'MPN' => 'MPN', ), 'Recommended Information' => array( 'Shipping cost' => 'Shipping cost', 'Stock status' => 'Stock status', 'EAN' => 'EAN', 'Image URL' => 'Image URL', ), ); } protected function init_default_template_mappings(){ $this->template_mappings = array( array( 'attr' => 'Article Number', 'type' => 'meta', 'meta_key' => 'id', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'Product Name', 'type' => 'meta', 'meta_key' => 'title', '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' => 'Product category', 'type' => 'meta', 'meta_key' => 'product_cats', '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' => 'Manufacturer', 'type' => 'static', 'meta_key' => '', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'Status', 'type' => 'static', 'meta_key' => '', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), ); } }