*/ class Rex_Feed_Template_Hotline extends Rex_Feed_Abstract_Template { protected function init_atts() { $this->attributes = array( 'Required Information' => array( 'id' => 'Product ID [id]', 'categoryId' => 'Category ID [categoryId]', 'code' => 'Product Model [code]', 'barcode' => 'Product Barcode [barcode]', 'vendor' => 'Manufacturer [vendor]', 'name' => 'Product Name [name]', 'url' => 'Product URL [url]', 'priceRUAH' => 'Price RUAH [priceRUAH]', ), 'Additional Information' => array( 'code' => 'Product Model [code]', 'barcode' => 'Product Barcode [barcode]', 'description' => 'Product Description [description]', 'image' => 'Product Image URL [image]', 'priceRUSD' => 'Price RUSD [priceRUSD]', 'stock' => 'Availability [stock]', ), ); } 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' => 'categoryId', 'type' => 'meta', 'meta_key' => 'product_cat_ids', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'code', 'type' => 'meta', 'meta_key' => '', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'barcode', 'type' => 'meta', 'meta_key' => 'sku', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'vendor', 'type' => 'static', 'meta_key' => '', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), array( 'attr' => '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' => 'default', 'limit' => 0, ), array( 'attr' => 'priceRUAH', 'type' => 'meta', 'meta_key' => 'price', 'st_value' => '', 'prefix' => '', 'suffix' => ' ' . get_option('woocommerce_currency'), 'escape' => 'default', 'limit' => 0, ), ); } }