*/ class Rex_Feed_Template_Check24 extends Rex_Feed_Abstract_Template { protected function init_atts(){ $this->attributes = array( 'Required Information' => array( 'id' => 'ID', 'name' => 'Product Name', 'ean' => 'EAN', 'price' => 'Price', 'link' => 'Deeplink', 'delivery_time' => 'Delivery Time', ), 'Additional Information' => array( 'image_url' => 'Image URL', 'price_perunit' => 'Price Perunit', 'price_shipping' => 'Price Shipping', 'stock' => 'Stock', 'weight' => 'Weight', ), 'Recommended Information' => array( 'manufacturer' => 'Manufacturer', 'description' => 'Description', 'category_path' => 'Category Path', ), ); } 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' => 'name', 'type' => 'meta', 'meta_key' => 'title', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'ean', 'type' => 'static', 'meta_key' => '', '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' => 'link', 'type' => 'meta', 'meta_key' => 'link', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'cdata', 'limit' => 0, ), array( 'attr' => 'delivery_time', 'type' => 'static', 'meta_key' => '', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), ); } }