callback=$callback; $this->url=$url; $this->input_encoding=$input_encoding; $this->store_items=$store_items; $this->delimiter ="|"; $this->enclosure ='"'; $this->escape ='\\"'; $this->header=false; if ( $input_encoding == 'UTF-8' && $output_encoding == 'ISO-8859-1' ) { $this->decode=true; } $this->header_array=explode('|',strtolower("ProductID|Name|MerchantID|Merchant|Link|Thumbnail|BigImage|Price|RetailPrice|Category|SubCategory|Description|Custom1|Custom2|Custom3|Custom4|Custom5|LastUpdated|status|manufacturer|partnumber|merchantCategory|merchantSubcategory|shortDescription|ISBN|UPC|SKU|CrossSell|MerchantGroup|MerchantSubgroup|CompatibleWith|CompareTo|QuantityDiscount|Bestseller|AddToCartURL|ReviewsRSSURL|Option1|Option2|Option3|Option4|Option5||||||||||")); $this->_parse(); } } $feed_parsers['ShareASale']='Share a Sale'; function shareasale_cb(&$item) { generic_cb($item); shareasale($item); } function shareasale(&$item) { $item['href']=str_replace("YOURUSERID","435017",$item['href']); }