*/ class Rex_Feed_Template_Geizhals extends Rex_Feed_Abstract_Template { protected function init_atts(){ $this->attributes = array( 'Required Information' => array( 'product_name' => 'Product name', 'price' => 'Price', 'manufacturer_name' => 'Manufacturer name', 'manufacturers_product_code' => 'Manufacturer`s product code', ), 'Recommended Information' => array( 'delivery_charge' => 'Delivery charge', 'delivery_time' => 'Delivery time', 'ean' => 'EAN', 'product_description' => 'Product description', 'method_of_payment' => 'Method of payment', 'deeplink' => 'Deeplink', 'stock_availability' => 'Stock availability', ), ); } 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' => 'price', 'type' => 'meta', 'meta_key' => 'price', 'st_value' => '', 'prefix' => '', 'suffix' => ' '.get_option('woocommerce_currency'), 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'manufacturer_name', 'type' => 'static', 'meta_key' => '', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'manufacturers_product_code', 'type' => 'static', 'meta_key' => '', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), ); } }