<?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 for Greene Tea</title>
	<atom:link href="http://greenetea.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://greenetea.com</link>
	<description>Web development with LAMP and a cuppa tea</description>
	<lastBuildDate>Fri, 02 Dec 2011 22:06:47 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>Comment on Link to product details in an aStore iframe by Araby</title>
		<link>http://greenetea.com/2010/03/link-product-details-in-astore-iframe/comment-page-1/#comment-45</link>
		<dc:creator>Araby</dc:creator>
		<pubDate>Fri, 02 Dec 2011 22:06:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.greenetea.com/?p=533#comment-45</guid>
		<description>Eric,
I missed seeing the e-mail notice for your comment, sorry. Yes, you can use the same method to GET additional args from the querystring and then echo them into the iframe tag. As long as the aStore expects your variables and knows what to do with them, it should work.

If your WP Page always expects the same aStore variables you could simply echo the args right into the iframe tag&#039;s src:

&lt;code&gt;http://astore.amazon.com/affiliateID?&lt;?php echo $_GET[&#039;varname&#039;] . &#039;&#038;&#039; . $_GET[&#039;a&#039;] . &#039;&#038;&#039; . $_GET[&#039;b&#039;]; ?&gt;&lt;/code&gt;

The echo statement writes out the values of &#039;varname&#039;, &#039;a&#039;, and &#039;b&#039; with an ampersand in between each argument.</description>
		<content:encoded><![CDATA[<p>Eric,<br />
I missed seeing the e-mail notice for your comment, sorry. Yes, you can use the same method to GET additional args from the querystring and then echo them into the iframe tag. As long as the aStore expects your variables and knows what to do with them, it should work.</p>
<p>If your WP Page always expects the same aStore variables you could simply echo the args right into the iframe tag&#8217;s src:</p>
<p><code><a  href="http://astore.amazon.com/affiliateID??php" rel="nofollow">http://astore.amazon.com/affiliateID?&lt;?php</a> echo $_GET['varname'] . '&amp;#038;' . $_GET['a'] . '&amp;#038;' . $_GET['b']; ?&gt;</code></p>
<p>The echo statement writes out the values of &#8216;varname&#8217;, &#8216;a&#8217;, and &#8216;b&#8217; with an ampersand in between each argument.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Link to product details in an aStore iframe by Eric</title>
		<link>http://greenetea.com/2010/03/link-product-details-in-astore-iframe/comment-page-1/#comment-44</link>
		<dc:creator>Eric</dc:creator>
		<pubDate>Mon, 21 Nov 2011 13:23:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.greenetea.com/?p=533#comment-44</guid>
		<description>Thanks for the code example, works perfect! I am not a PHP coder myself and have one additional question that perhaps you or somebody else might be able to  answer;

I need to generate a similar affiliate URL that contains multiple fields after the &quot;?&quot;. Something like: http://astore.amazon.com/affiliateID?azdp=0123456789&amp;a=1111&amp;b=2222

My question is what the php code would be to also GET the &quot;a=&quot; and &quot;b=&quot; into the URL? I am not sure what the correct syntax for that would be in PHP.

I have to define these different parts of the URL in here I guess;

if (isset($_GET[&#039;slp&#039;])) {
$dp = $_GET[&#039;slp&#039;];

Many thanks!</description>
		<content:encoded><![CDATA[<p>Thanks for the code example, works perfect! I am not a PHP coder myself and have one additional question that perhaps you or somebody else might be able to  answer;</p>
<p>I need to generate a similar affiliate URL that contains multiple fields after the &#8220;?&#8221;. Something like: <a  href="http://astore.amazon.com/affiliateID?azdp=0123456789&#038;a=1111&#038;b=2222" rel="nofollow">http://astore.amazon.com/affiliateID?azdp=0123456789&#038;a=1111&#038;b=2222</a></p>
<p>My question is what the php code would be to also GET the &#8220;a=&#8221; and &#8220;b=&#8221; into the URL? I am not sure what the correct syntax for that would be in PHP.</p>
<p>I have to define these different parts of the URL in here I guess;</p>
<p>if (isset($_GET['slp'])) {<br />
$dp = $_GET['slp'];</p>
<p>Many thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Link to product details in an aStore iframe by Araby</title>
		<link>http://greenetea.com/2010/03/link-product-details-in-astore-iframe/comment-page-1/#comment-41</link>
		<dc:creator>Araby</dc:creator>
		<pubDate>Wed, 21 Sep 2011 16:31:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.greenetea.com/?p=533#comment-41</guid>
		<description>You&#039;re welcome! Amazon doesn&#039;t count clicks within the aStore. That&#039;s the way it&#039;s always been, as far as I know. You will definitely get sales credit for orders and see earnings when items ship.</description>
		<content:encoded><![CDATA[<p>You&#8217;re welcome! Amazon doesn&#8217;t count clicks within the aStore. That&#8217;s the way it&#8217;s always been, as far as I know. You will definitely get sales credit for orders and see earnings when items ship.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Link to product details in an aStore iframe by cts</title>
		<link>http://greenetea.com/2010/03/link-product-details-in-astore-iframe/comment-page-1/#comment-40</link>
		<dc:creator>cts</dc:creator>
		<pubDate>Wed, 21 Sep 2011 16:17:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.greenetea.com/?p=533#comment-40</guid>
		<description>Awesome, thanks!  Your store looks great.  For my needs I wanted to add some text and AdSense at the top of the store page, so I just added everything to the end of the loop and everything worked perfectly.

Are all of your aStore clicks showing up in your full summary page?  I&#039;ve got a few random Amazon widgets in blog posts and clicks on those are all showing up just fine in the summary, but it doesn&#039;t appear that aStore clicks are showing up (certainly I have been clicking on things a ton as I tweak the design and inventory).  Just want to make sure I am receiving commission for anything I ship.  I sent Amazon an e-mail a few minutes ago and will let you know what I hear.</description>
		<content:encoded><![CDATA[<p>Awesome, thanks!  Your store looks great.  For my needs I wanted to add some text and AdSense at the top of the store page, so I just added everything to the end of the loop and everything worked perfectly.</p>
<p>Are all of your aStore clicks showing up in your full summary page?  I&#8217;ve got a few random Amazon widgets in blog posts and clicks on those are all showing up just fine in the summary, but it doesn&#8217;t appear that aStore clicks are showing up (certainly I have been clicking on things a ton as I tweak the design and inventory).  Just want to make sure I am receiving commission for anything I ship.  I sent Amazon an e-mail a few minutes ago and will let you know what I hear.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Link to product details in an aStore iframe by Araby</title>
		<link>http://greenetea.com/2010/03/link-product-details-in-astore-iframe/comment-page-1/#comment-39</link>
		<dc:creator>Araby</dc:creator>
		<pubDate>Tue, 20 Sep 2011 23:10:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.greenetea.com/?p=533#comment-39</guid>
		<description>Hi, cts,

You can add another parameter to the script, as shown below. There should be no line breaks in the echo statements. If you copy the code and paste to a text editor, the lines will be written properly.

I&#039;m glad your question caused me to go look at the store page because the custom page template got trashed in one of my theme upgrades. I redid an AStore page template and inserted the following code (with my own AffiliateID) as the first thing in the WP loop:

&lt;code style=&quot;font-size: 12px;&quot;&gt;&lt;?php 
if (isset($_GET[&#039;azdp&#039;])) {
$dp = $_GET[&#039;azdp&#039;];
echo &quot;&lt;iframe src=&#039;http://astore.amazon.com/AffiliateID/detail/$dp&#039; width=&#039;100%&#039; height=&#039;1200&#039; frameborder=&#039;0&#039;&gt;&lt;/iframe&gt;&quot;;} 
else if (isset($_GET[&#039;azcat&#039;])) {
$cat = $_GET[&#039;azcat&#039;];
echo &quot;&lt;iframe src=&#039;http://astore.amazon.com/AffiliateID?_encoding=UTF8&#038;node=$cat&#039; width=&#039;100%&#039; height=&#039;1200&#039; frameborder=&#039;0&#039;&gt;&lt;/iframe&gt;&quot;;
} else {
echo &quot;&lt;iframe src=&#039;http://astore.amazon.com/AffiliateID&#039; width=&#039;100%&#039; height=&#039;1200&#039; frameborder=&#039;0&#039;&gt;&lt;/iframe&gt;&quot;;}
?&gt;&lt;/code&gt;

To load the Black Tea category as the aStore iframe src, I would use this link:
&lt;a href=&quot;http://greenetea.com/real-tea/?azcat=4&quot; rel=&quot;nofollow&quot;&gt;Black Tea&lt;/a&gt;

The code could be made more efficient, but it will work and is understandable.</description>
		<content:encoded><![CDATA[<p>Hi, cts,</p>
<p>You can add another parameter to the script, as shown below. There should be no line breaks in the echo statements. If you copy the code and paste to a text editor, the lines will be written properly.</p>
<p>I&#8217;m glad your question caused me to go look at the store page because the custom page template got trashed in one of my theme upgrades. I redid an AStore page template and inserted the following code (with my own AffiliateID) as the first thing in the WP loop:</p>
<p><code style="font-size: 12px;">&lt;?php<br />
if (isset($_GET['azdp'])) {<br />
$dp = $_GET['azdp'];<br />
echo &quot;&lt;iframe src='http://astore.amazon.com/AffiliateID/detail/$dp' width='100%' height='1200' frameborder='0'&gt;&lt;/iframe&gt;&quot;;}<br />
else if (isset($_GET['azcat'])) {<br />
$cat = $_GET['azcat'];<br />
echo &quot;&lt;iframe src='http://astore.amazon.com/AffiliateID?_encoding=UTF8&amp;#038;node=$cat' width='100%' height='1200' frameborder='0'&gt;&lt;/iframe&gt;&quot;;<br />
} else {<br />
echo &quot;&lt;iframe src='http://astore.amazon.com/AffiliateID' width='100%' height='1200' frameborder='0'&gt;&lt;/iframe&gt;&quot;;}<br />
?&gt;</code></p>
<p>To load the Black Tea category as the aStore iframe src, I would use this link:<br />
<a  href="http://greenetea.com/real-tea/?azcat=4" rel="nofollow">Black Tea</a></p>
<p>The code could be made more efficient, but it will work and is understandable.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Link to product details in an aStore iframe by cts</title>
		<link>http://greenetea.com/2010/03/link-product-details-in-astore-iframe/comment-page-1/#comment-38</link>
		<dc:creator>cts</dc:creator>
		<pubDate>Tue, 20 Sep 2011 19:10:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.greenetea.com/?p=533#comment-38</guid>
		<description>This was really helpful for adding deep links to my aStore products through my blog posts -- do you know if there are any other parameters besides azdp?  For example, if I could get a parameter that would send users to a particular category of my store, that would be pretty helpful as well.</description>
		<content:encoded><![CDATA[<p>This was really helpful for adding deep links to my aStore products through my blog posts &#8212; do you know if there are any other parameters besides azdp?  For example, if I could get a parameter that would send users to a particular category of my store, that would be pretty helpful as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Amazon aStore with WordPress by Araby</title>
		<link>http://greenetea.com/2011/05/amazon-astore-with-wordpress/comment-page-1/#comment-37</link>
		<dc:creator>Araby</dc:creator>
		<pubDate>Fri, 01 Jul 2011 17:10:05 +0000</pubDate>
		<guid isPermaLink="false">http://greenetea.com/?p=872#comment-37</guid>
		<description>I&#039;m so glad it worked. Thanks!</description>
		<content:encoded><![CDATA[<p>I&#8217;m so glad it worked. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Amazon aStore with WordPress by Doreen Murgatroyd</title>
		<link>http://greenetea.com/2011/05/amazon-astore-with-wordpress/comment-page-1/#comment-36</link>
		<dc:creator>Doreen Murgatroyd</dc:creator>
		<pubDate>Fri, 01 Jul 2011 16:20:42 +0000</pubDate>
		<guid isPermaLink="false">http://greenetea.com/?p=872#comment-36</guid>
		<description>Brilliant.  It worked beautifully.  The store now looks more professional and less homemade.

Thank you so much for this help.  A little farther down the line I may understand what it is you did though I have a vague idea with the -20 for margin left.

I &#039;stumbledupon&#039; your site (where it&#039;s already got some hits) and intend to bookmark it at the other social networks I visit.  

For wanting of knowing how else to express my thanks - God bless you, Araby.</description>
		<content:encoded><![CDATA[<p>Brilliant.  It worked beautifully.  The store now looks more professional and less homemade.</p>
<p>Thank you so much for this help.  A little farther down the line I may understand what it is you did though I have a vague idea with the -20 for margin left.</p>
<p>I &#8216;stumbledupon&#8217; your site (where it&#8217;s already got some hits) and intend to bookmark it at the other social networks I visit.  </p>
<p>For wanting of knowing how else to express my thanks &#8211; God bless you, Araby.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Amazon aStore with WordPress by Araby</title>
		<link>http://greenetea.com/2011/05/amazon-astore-with-wordpress/comment-page-1/#comment-35</link>
		<dc:creator>Araby</dc:creator>
		<pubDate>Fri, 01 Jul 2011 15:02:27 +0000</pubDate>
		<guid isPermaLink="false">http://greenetea.com/?p=872#comment-35</guid>
		<description>I found the code, but it was for a full-width aStore and no sidebar. If you want to keep the sidebar, try this:

1. Change the width of the iframe from 100% to &quot;697&quot;
2. Add an inline style like this:
&lt;iframe style=&quot;margin-left: -20px; margin-right: -20px;&quot; ... &gt;&lt;iframe&gt;

I&#039;m certain this will work unless you made your sidebar wider than the default.</description>
		<content:encoded><![CDATA[<p>I found the code, but it was for a full-width aStore and no sidebar. If you want to keep the sidebar, try this:</p>
<p>1. Change the width of the iframe from 100% to &#8220;697&#8243;<br />
2. Add an inline style like this:<br />
&lt;iframe style=&quot;margin-left: -20px; margin-right: -20px;&quot; &#8230; &gt;&lt;iframe&gt;</p>
<p>I&#8217;m certain this will work unless you made your sidebar wider than the default.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Amazon aStore with WordPress by Araby</title>
		<link>http://greenetea.com/2011/05/amazon-astore-with-wordpress/comment-page-1/#comment-34</link>
		<dc:creator>Araby</dc:creator>
		<pubDate>Fri, 01 Jul 2011 14:25:11 +0000</pubDate>
		<guid isPermaLink="false">http://greenetea.com/?p=872#comment-34</guid>
		<description>The problem with one-column layout can be fixed using CSS to style the content div. I will send you some code off-list, and you can give it a try.</description>
		<content:encoded><![CDATA[<p>The problem with one-column layout can be fixed using CSS to style the content div. I will send you some code off-list, and you can give it a try.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

