*/ class Rex_Feed_Template_Hardware extends Rex_Feed_Abstract_Template { protected function init_atts(){ $this->attributes = array( 'Required Information' => array( 'InterneArtikelcode' => 'InterneArtikelcode', 'Productnaam' => 'Productnaam', 'Prijs' => 'Prijs', 'Productcode' => 'Product code', 'Deeplink' => 'Deep Link', 'EANcode' => 'EAN code', 'Merk' => 'Merk', '24HBesteltijd' => '24HBesteltijd', 'VoorraadLeverancier' => 'VoorraadLeverancier', ), 'Additional Information' => array( 'SpecsURL' => 'Specs URL', 'Voorraad' => 'Voorraad', 'AfbeeldingURL' => 'AfbeeldingURL', 'Productgroep' => 'Productgroep', 'Verzendkosten' => 'Verzendkosten', 'Levertijd' => 'Levertijd', ), 'Optional Information' => array( 'Omschrijving' => 'Omschrijving', ), ); } protected function init_default_template_mappings(){ $this->template_mappings = array( array( 'attr' => 'InterneArtikelcode', 'type' => 'meta', 'meta_key' => 'id', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'Productnaam', 'type' => 'meta', 'meta_key' => 'title', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'Prijs', 'type' => 'meta', 'meta_key' => 'price', 'st_value' => '', 'prefix' => '', 'suffix' => ' '.get_option('woocommerce_currency'), 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'Productcode', 'type' => 'static', 'meta_key' => '', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'Deeplink', 'type' => 'meta', 'meta_key' => 'link', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'cdata', 'limit' => 0, ), array( 'attr' => 'EANcode', 'type' => 'static', 'meta_key' => '', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'Merk', 'type' => 'static', 'meta_key' => '', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), array( 'attr' => '24HBesteltijd', 'type' => 'static', 'meta_key' => '', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'VoorraadLeverancier', 'type' => 'static', 'meta_key' => '', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), ); } }