function __construct() { parent::__construct(); $this->providerName = 'FacebookXML'; $this->providerNameL = 'facebookxml'; //Create some attributes (Mapping 3.0) in the form (title, Google-title, CData, isRequired) // Note that isRequired is just to direct the plugin on where on the dialog to display $this->addAttributeMapping('id', 'g:id', false, true); $this->addAttributeMapping('stock_status', 'g:availability', false, true); $this->addAttributeMapping('condition', 'g:condition', false, true); $this->addAttributeMapping('description', 'g:description', true, true); $this->addAttributeMapping('feature_imgurl', 'g:image_link', true, true); $this->addAttributeMapping('link', 'g:link', true, true); $this->addAttributeMapping('title', 'g:title', true, true); $this->addAttributeMapping('regular_price', 'g:price', false, true); $this->addAttributeMapping('sku', 'g:mpn', false, true); $this->addAttributeMapping('brand', 'g:brand', false, true); //Optional Attributes $this->addAttributeMapping('', 'g:age_group', false, false); $this->addAttributeMapping('color', 'g:color', false, false); $this->addAttributeMapping('', 'g:expiration_date', false, false); $this->addAttributeMapping('', 'g:gender', false, false); $this->addAttributeMapping('item_group_id', 'g:item_group_id', false, false); $this->addAttributeMapping('current_category', 'g:google_product_category', true, false); $this->addAttributeMapping('', 'g:material', false, false); $this->addAttributeMapping('', 'g:pattern', false, false); $this->addAttributeMapping('', 'g:product_type', true, false); $this->addAttributeMapping('sale_price', 'g:sale_price', false, false); $this->addAttributeMapping('', 'g:sale_price_effective_date', false, false); // $this->addAttributeMapping('weight', 'g:shipping_weight', false, false); // $this->addAttributeMapping('size', 'g:size', false, false); // $this->addAttributeMapping('tax', 'g:tax', false, false); // $this->addAttributeMapping('', 'g:multipack', false, false); // $this->addAttributeMapping('adult', 'g:adult', false, false); // $this->addAttributeMapping('adwords_grouping', 'g:adwords_grouping', false, false); // $this->addAttributeMapping('adwords_labels', 'g:adwords_labels', false, false); // $this->addAttributeMapping('adwords_redirect', 'g:adwords_redirect', false, false); // $this->addAttributeMapping('', 'g:unit_pricing_measure', false, false); // $this->addAttributeMapping('', 'g:unit_pricing_base_measure', false, false); // $this->addAttributeMapping('', 'g:energy_efficiency_class', false, false); // $this->addAttributeMapping('', 'g:excluded_destination', false, false); // $this->addAttributeMapping('', 'g:custom_label_0', false, false); // $this->addAttributeMapping('', 'g:custom_label_1', false, false); // $this->addAttributeMapping('', 'g:custom_label_2', false, false); // $this->addAttributeMapping('', 'g:custom_label_3', false, false); // $this->addAttributeMapping('', 'g:custom_label_4', false, false); // $this->google_exact_title = false; // $this->google_combo_title = false; $this->productLevelElement = 'item'; //$this->addAttributeDefault('additional_images', 'none', 'PGoogleAdditionalImages'); // $this->addAttributeDefault('tax_country', 'US'); $this->addRule('price_standard', 'pricestandard'); $this->addRule('status_standard', 'statusstandard'); // $this->addRule('weight_unit', 'weightunit'); // $this->addRule('google_exact_title', 'googleexacttitle'); // $this->addRule('google_combo_title', 'googlecombotitle'); }
function __construct() { parent::__construct(); global $pfcore; $this->forceCData = true; $this->providerName = 'Productlistxml'; $this->providerNameL = 'productlistxml'; $this->addAttributeMapping('local_category', 'local_category', true, true); $this->addAttributeDefault('price', 'none', 'PSalePriceIfDefined'); if ($pfcore->callSuffix == 'W') { $this->addAttributeDefault('local_category', 'none', 'PCategoryTree'); } //store's local category tree }