David, What a great script! I am having an issue though with importing linkshare feeds. The site is located here with no password.
{link saved}
I can automate download and extract feeds just fine. They also seem to register fine. However I can not import them. Not even a trial import. The single one that I did import is from CJ. The other 2 that you will see are from linkshare. I did notice that linkshare's preferred method of file transfer is binary. Does this have something to do with the import problem?
I have tried this both from the browser and from command line.
Feel free to re-register the feeds and test as you wish. This is only a staging environment and playground.
Thanks.
DSmith
David thanks for the great support. That worked like a charm!
spoke to soon I guess. I did a full import and the product count in the admin shows correct however when you browse by merchant buy.com and finishline only show 10 products each.
Hi,
I see from the Admin home page the full buy.com feed of over 2 million products "imported" and what I think has happened is that a subsequent Import process may have timed out at the DELETE phase.
I have recently been updating the Slow Import Tool to also perform the DELETE phase in the same way as the import phase (by deleting in blocks as well) as well as improvements for working with such large feeds which I would like to forward for you to try. Please can you email me from the best contact address to use for you and I'll forward the files to use...
Cheers,
David.
--
PriceTapestry.com
Hi DSmith,
Thank you for your comments and welcome to the forum!
All it is, is that Feed Registration Step 2 attempts to automatically pre-populate the forum by looking for common field names. In the case of LinkShare XML feeds, the Price is actually in a child element called PRICE/SALE, but because PRICE also exists (as the parent of SALE), the script is incorrectly selecting this field instead.
If you register your LinkShare feeds as follows:
Product Name: PRODUCT-NAME
Description: DESCRIPTION/SHORT
Image URL: URL/PRODUCTIMAGE
Buy URL: URL/PRODUCT
Price: PRICE/SALE
Category: CATEGORY/PRIMARY
Brand: BRAND
Then they should register and import just fine.
I have noted this previous and in the next update to Price Tapestry I will be included PRICE/SALE as a common field for Price (with higher priority that PRICE alone) but if you are going to be working with a number of LinkShare feeds and wish to add this auto-selection now, if you edit config.advanced.php and look for the following code at line 32:
array("PRICE/BUYNOW","price","PRICE","Price","search_price","online_price","our_price");
...and REPLACE with:
array("PRICE/SALE","PRICE/BUYNOW","price","PRICE","Price","search_price","online_price","our_price");
Hope this helps!
Cheers,
David.
--
PriceTapestry.com