<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Magento:  Import Tier Pricing using API</title>
	<atom:link href="http://prattski.com/2010/03/04/magento-import-tier-pricing-using-api/feed/" rel="self" type="application/rss+xml" />
	<link>http://prattski.com/2010/03/04/magento-import-tier-pricing-using-api/</link>
	<description></description>
	<lastBuildDate>Wed, 01 Sep 2010 16:39:14 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Stephane</title>
		<link>http://prattski.com/2010/03/04/magento-import-tier-pricing-using-api/#comment-370</link>
		<dc:creator>Stephane</dc:creator>
		<pubDate>Thu, 10 Jun 2010 08:32:25 +0000</pubDate>
		<guid isPermaLink="false">http://devzone.pratthost.com/?p=367#comment-370</guid>
		<description>@chris Luke &amp; Bruce, I ran into the same problem with only the last tier price being updated. Commenting out the variable $tierPrices = &#039;&#039;;  declaration in the while statement will fix this :
	// $tierPrices = &#039;&#039;;
	$sku = $data[2];
	$tierPrices[] = array(
	&#039;website&#039;=&gt; $data[0],
	&#039;customer_group_id&#039;=&gt; $data[1],
	&#039;qty&#039;=&gt; $data[3],
	&#039;price&#039;=&gt; $data[4]
	);

However I feel the API solution is very, very slow. I have a such a large product base to deal with (+20K products each with tier pricing), that need to be updated several times a day via cron it might not work for me ...

Hope this will help someone
Cheers</description>
		<content:encoded><![CDATA[<p>@chris Luke &amp; Bruce, I ran into the same problem with only the last tier price being updated. Commenting out the variable $tierPrices = &#8221;;  declaration in the while statement will fix this :<br />
	// $tierPrices = &#8221;;<br />
	$sku = $data[2];<br />
	$tierPrices[] = array(<br />
	&#8216;website&#8217;=&gt; $data[0],<br />
	&#8216;customer_group_id&#8217;=&gt; $data[1],<br />
	&#8216;qty&#8217;=&gt; $data[3],<br />
	&#8216;price&#8217;=&gt; $data[4]<br />
	);</p>
<p>However I feel the API solution is very, very slow. I have a such a large product base to deal with (+20K products each with tier pricing), that need to be updated several times a day via cron it might not work for me &#8230;</p>
<p>Hope this will help someone<br />
Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sha</title>
		<link>http://prattski.com/2010/03/04/magento-import-tier-pricing-using-api/#comment-369</link>
		<dc:creator>sha</dc:creator>
		<pubDate>Fri, 04 Jun 2010 10:50:22 +0000</pubDate>
		<guid isPermaLink="false">http://devzone.pratthost.com/?p=367#comment-369</guid>
		<description>working but it only gets the last tier price</description>
		<content:encoded><![CDATA[<p>working but it only gets the last tier price</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sha</title>
		<link>http://prattski.com/2010/03/04/magento-import-tier-pricing-using-api/#comment-368</link>
		<dc:creator>sha</dc:creator>
		<pubDate>Fri, 04 Jun 2010 10:18:36 +0000</pubDate>
		<guid isPermaLink="false">http://devzone.pratthost.com/?p=367#comment-368</guid>
		<description>Managed to do it..
THANK YOU SO MUCH...</description>
		<content:encoded><![CDATA[<p>Managed to do it..<br />
THANK YOU SO MUCH&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bruce</title>
		<link>http://prattski.com/2010/03/04/magento-import-tier-pricing-using-api/#comment-367</link>
		<dc:creator>Bruce</dc:creator>
		<pubDate>Wed, 19 May 2010 17:52:47 +0000</pubDate>
		<guid isPermaLink="false">http://devzone.pratthost.com/?p=367#comment-367</guid>
		<description>ok so I&#039;ve now been running it as root via ssh (to hopefully rule out timeout issues, no idea if that helps though!) and watching the db closely as the script runs.

what it looks like is each tier is overwriting the last. so in my case I have 4 tiers for each product, the script runs perfectly but I only end up with the 4th tier in the db when it is done. which makes sense as to why I was only getting 50 out of my 200 added.

as I mentioned I&#039;m a bit of a noob on this stuff but I think I&#039;ve ruled out everything I know to try to rule out.

any help you can provide would be greatly appreciated as it is so close to doing exactly what I need</description>
		<content:encoded><![CDATA[<p>ok so I&#8217;ve now been running it as root via ssh (to hopefully rule out timeout issues, no idea if that helps though!) and watching the db closely as the script runs.</p>
<p>what it looks like is each tier is overwriting the last. so in my case I have 4 tiers for each product, the script runs perfectly but I only end up with the 4th tier in the db when it is done. which makes sense as to why I was only getting 50 out of my 200 added.</p>
<p>as I mentioned I&#8217;m a bit of a noob on this stuff but I think I&#8217;ve ruled out everything I know to try to rule out.</p>
<p>any help you can provide would be greatly appreciated as it is so close to doing exactly what I need</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luke</title>
		<link>http://prattski.com/2010/03/04/magento-import-tier-pricing-using-api/#comment-366</link>
		<dc:creator>Luke</dc:creator>
		<pubDate>Sun, 18 Apr 2010 19:53:30 +0000</pubDate>
		<guid isPermaLink="false">http://devzone.pratthost.com/?p=367#comment-366</guid>
		<description>i&#039;ve this problem too.

I can import only the last tier :(

i&#039;ve also a problem with the CSV file. I created it like:

&quot;website_id&quot;,&quot;cust_group&quot;,&quot;sku&quot;,&quot;price_qty&quot;,&quot;price&quot; (and i also tried with &quot;, &#039; or nothing) but i received a lot of error , like:

Notice: Undefined offset: 2 in /home/test/public_html/site/scripts/price.php on line 15

Notice: Undefined offset: 3 in /home/test/public_html/site/scripts/price.php on line 20

Notice: Undefined offset: 4 in /home/test/public_html/site/scripts/price.php on line 21

Notice: Undefined variable: errors in /home/test/public_html/site/scripts/price.php on line 27

It&#039;s strange couse the script works and in the first two times that i&#039;ve running it i haven&#039;t see this errors.

Please, help :(</description>
		<content:encoded><![CDATA[<p>i&#8217;ve this problem too.</p>
<p>I can import only the last tier <img src='http://prattski.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>i&#8217;ve also a problem with the CSV file. I created it like:</p>
<p>&#8220;website_id&#8221;,&#8221;cust_group&#8221;,&#8221;sku&#8221;,&#8221;price_qty&#8221;,&#8221;price&#8221; (and i also tried with &#8220;, &#8216; or nothing) but i received a lot of error , like:</p>
<p>Notice: Undefined offset: 2 in /home/test/public_html/site/scripts/price.php on line 15</p>
<p>Notice: Undefined offset: 3 in /home/test/public_html/site/scripts/price.php on line 20</p>
<p>Notice: Undefined offset: 4 in /home/test/public_html/site/scripts/price.php on line 21</p>
<p>Notice: Undefined variable: errors in /home/test/public_html/site/scripts/price.php on line 27</p>
<p>It&#8217;s strange couse the script works and in the first two times that i&#8217;ve running it i haven&#8217;t see this errors.</p>
<p>Please, help <img src='http://prattski.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://prattski.com/2010/03/04/magento-import-tier-pricing-using-api/#comment-365</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Sun, 14 Mar 2010 17:34:13 +0000</pubDate>
		<guid isPermaLink="false">http://devzone.pratthost.com/?p=367#comment-365</guid>
		<description>ok so I&#039;ve now been running it as root via ssh (to hopefully rule out timeout issues, no idea if that helps though!) and watching the db closely as the script runs.

what it looks like is each tier is overwriting the last. so in my case I have 4 tiers for each product, the script runs perfectly but I only end up with the 4th tier in the db when it is done. which makes sense as to why I was only getting 50 out of my 200 added.

as I mentioned I&#039;m a bit of a noob on this stuff but I think I&#039;ve ruled out everything I know to try to rule out.

any help you can provide would be greatly appreciated as it is so close to doing exactly what I need</description>
		<content:encoded><![CDATA[<p>ok so I&#8217;ve now been running it as root via ssh (to hopefully rule out timeout issues, no idea if that helps though!) and watching the db closely as the script runs.</p>
<p>what it looks like is each tier is overwriting the last. so in my case I have 4 tiers for each product, the script runs perfectly but I only end up with the 4th tier in the db when it is done. which makes sense as to why I was only getting 50 out of my 200 added.</p>
<p>as I mentioned I&#8217;m a bit of a noob on this stuff but I think I&#8217;ve ruled out everything I know to try to rule out.</p>
<p>any help you can provide would be greatly appreciated as it is so close to doing exactly what I need</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh Pratt</title>
		<link>http://prattski.com/2010/03/04/magento-import-tier-pricing-using-api/#comment-364</link>
		<dc:creator>Josh Pratt</dc:creator>
		<pubDate>Sat, 13 Mar 2010 23:16:18 +0000</pubDate>
		<guid isPermaLink="false">http://devzone.pratthost.com/?p=367#comment-364</guid>
		<description>Chris,

Yes, this script requires you have have the products already in Magento.  You can&#039;t import everything at once.  You&#039;ll have to first import the products, then the tier pricing.</description>
		<content:encoded><![CDATA[<p>Chris,</p>
<p>Yes, this script requires you have have the products already in Magento.  You can&#8217;t import everything at once.  You&#8217;ll have to first import the products, then the tier pricing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://prattski.com/2010/03/04/magento-import-tier-pricing-using-api/#comment-363</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Fri, 12 Mar 2010 19:30:20 +0000</pubDate>
		<guid isPermaLink="false">http://devzone.pratthost.com/?p=367#comment-363</guid>
		<description>this sounds like just what I need!

I&#039;m pretty noobish with this stuff though -- would a good process be to import the products with normal pricing and then use the script to update the tiers?

or can I add fields to this and import everything at once?

any thoughts on process would be very helpful, thanks</description>
		<content:encoded><![CDATA[<p>this sounds like just what I need!</p>
<p>I&#8217;m pretty noobish with this stuff though &#8212; would a good process be to import the products with normal pricing and then use the script to update the tiers?</p>
<p>or can I add fields to this and import everything at once?</p>
<p>any thoughts on process would be very helpful, thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>
