function __construct() { parent::__construct(); $this->providerName = 'eBay'; $this->providerNameL = 'ebay'; //9 required fields //Required $this->addAttributeMapping('sku', 'Merchant_SKU', true, true); $this->addAttributeMapping('title', 'Product_Name', true, true); $this->addAttributeMapping('link', 'Product_URL', true, true); $this->addAttributeMapping('feature_imgurl', 'Image_URL', true, true); $this->addAttributeMapping('price', 'Current_Price', true, true); $this->addAttributeMapping('stock_status', 'Stock_Availability', true, true); $this->addAttributeMapping('condition', 'Condition', true, true); //MPN or ISBN (media only) $this->addAttributeMapping('', 'MPN', true); //can be blank $this->addAttributeMapping('', 'ISBN', true); //can be blank //UPC or EAN (media only) $this->addAttributeMapping('', 'UPC', true); //can be blank $this->addAttributeMapping('', 'EAN', true); //can be blank //Recommended Attributes $this->addAttributeMapping('description', 'Product_Description', true); $this->addAttributeMapping('brand', 'Brand', true); $this->addAttributeMapping('', 'Stock_description', true); //promotional text ie. Free shipping $this->addAttributeMapping('', 'Shipping_Rate', true); //If your website displays a price drop and/or percent savings for this item, provide here the item’s original price. $this->addAttributeMapping('', 'Original_Price', true); $this->addAttributeMapping('', 'Coupon_Code', true); $this->addAttributeMapping('', 'Coupon_Code_Description', true); $this->addAttributeMapping('gender', 'Gender', true); $this->addAttributeMapping('color', 'Color', true); $this->addAttributeMapping('', 'Material', true); $this->addAttributeMapping('size', 'Size', true); $this->addAttributeMapping('', 'Size_Unit_Of_Measure', true); $this->addAttributeMapping('', 'Age_Range', true); //Optional Attributes for ($i = 0; $i < 10; $i++) { $this->addAttributeMapping("alt_image_{$i}", "Alternative_Image_URL_{$i}", true); } //$this->addAttributeMapping('', 'Product_Type', true); //local category (main?) //$this->addAttributeMapping('current_category', 'Category', true); //$this->addAttributeMapping('category_id', 'Category_ID'); //$this->addAttributeMapping('', 'Parent_SKU'); //$this->addAttributeMapping('', 'Parent_Name', true); // $this->addAttributeMapping('product_weight', 'Product_Weight', true); // $this->addAttributeMapping('shipping_weight', 'Shipping_Weight', true); // $this->addAttributeMapping('weight_unit_of_measure', 'Weight_Unit_of_Measure', true); $this->addAttributeDefault('price', 'none', 'PSalePriceIfDefined'); $this->addRule('csv_standard', 'CSVStandard', array('title')); $this->addRule('csv_standard', 'CSVStandard', array('description')); }
function __construct() { parent::__construct(); $this->providerName = 'AmmoSeek'; $this->providerNameL = 'ammoseek'; //Create some attributes (Mapping 3.0) //required $this->addAttributeMapping('description', 'description', true, true); $this->addAttributeMapping('link', 'url', true, true); $this->addAttributeMapping('regular_price', 'price', true, true); $this->addAttributeMapping('', 'caliber', true, true); $this->addAttributeMapping('stock_quantity', 'numrounds', true, true); $this->addAttributeMapping('', 'count', true, true); //number of rounds for a given price //optional $this->addAttributeMapping('brand', 'manufacturer', true); $this->addAttributeMapping('', 'grains', true); $this->addAttributeMapping('', 'type', true); $this->addAttributeMapping('', 'gun', true); $this->addAttributeMapping('', 'shot_size', true); $this->addAttributeMapping('', 'shell_length', true); $this->addAttributeMapping('stock_status', 'availability', true); }
function __construct() { parent::__construct(); }
protected function continueFeed($category, $file_name, $file_path, $remote_category) { switch ($remote_category) { case 'Any/Other': $template = ''; break; case 'Books': $template = 'books'; break; case 'Video games and software': $template = 'videogames.software'; break; case 'Fashion and Fashion accessories': $template = 'fashion.accessories'; break; case 'Mobilephones with subscription and Prepaid cards': $template = 'mobilephones'; break; case 'Movies': $template = 'movies'; break; case 'Music': $template = 'music'; break; case 'New and used cars': $template = 'new.usedcars'; break; case 'Property': $template = 'property'; break; case 'Wine and Champagne': $template = 'wine.champagne'; break; case 'Tyres': $template = 'tyres'; break; default: $template = ''; break; } $this->loadTemplate($template); parent::continueFeed($category, $file_name, $file_path, $remote_category); }