<?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: Link to product details in an aStore iframe</title>
	<atom:link href="http://greenetea.com/2010/03/link-product-details-in-astore-iframe/feed/" rel="self" type="application/rss+xml" />
	<link>http://greenetea.com/2010/03/link-product-details-in-astore-iframe/</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>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>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>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>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>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>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>By: Dendy</title>
		<link>http://greenetea.com/2010/03/link-product-details-in-astore-iframe/comment-page-1/#comment-28</link>
		<dc:creator>Dendy</dc:creator>
		<pubDate>Sun, 22 May 2011 15:47:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.greenetea.com/?p=533#comment-28</guid>
		<description>Thanks a lot ... greatful thanks for sharing this valuable advance code knowledge like this ... so i can make develop my blog more on more.</description>
		<content:encoded><![CDATA[<p>Thanks a lot &#8230; greatful thanks for sharing this valuable advance code knowledge like this &#8230; so i can make develop my blog more on more.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Di</title>
		<link>http://greenetea.com/2010/03/link-product-details-in-astore-iframe/comment-page-1/#comment-27</link>
		<dc:creator>Di</dc:creator>
		<pubDate>Tue, 01 Mar 2011 11:33:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.greenetea.com/?p=533#comment-27</guid>
		<description>Thanks a Million for the info. Saved me tons of grief :)</description>
		<content:encoded><![CDATA[<p>Thanks a Million for the info. Saved me tons of grief <img src='http://greenetea.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Araby</title>
		<link>http://greenetea.com/2010/03/link-product-details-in-astore-iframe/comment-page-1/#comment-24</link>
		<dc:creator>Araby</dc:creator>
		<pubDate>Sun, 21 Nov 2010 13:36:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.greenetea.com/?p=533#comment-24</guid>
		<description>The information is useful only for wordpress.org sites. Wordpress.com users have limited access to code, and affiliate links are generally not allowed. See WordPress.com&#039;s information about &lt;a href=&quot;http://en.wordpress.com/types-of-blogs/&quot; rel=&quot;nofollow&quot;&gt;Types of Blogs&lt;/a&gt; to see what is acceptable. If you get a site with a web host, and put a wordpress.org blog on it, you have access to your theme templates, and are free to place ads on your site if you wish.

Blogger is not as versatile as WordPress, but is tolerant of Adsense and Amazon ads, so that&#039;s a possibility if you need free hosting.</description>
		<content:encoded><![CDATA[<p>The information is useful only for wordpress.org sites. WordPress.com users have limited access to code, and affiliate links are generally not allowed. See WordPress.com&#8217;s information about <a  href="http://en.wordpress.com/types-of-blogs/" rel="nofollow">Types of Blogs</a> to see what is acceptable. If you get a site with a web host, and put a wordpress.org blog on it, you have access to your theme templates, and are free to place ads on your site if you wish.</p>
<p>Blogger is not as versatile as WordPress, but is tolerant of Adsense and Amazon ads, so that&#8217;s a possibility if you need free hosting.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick</title>
		<link>http://greenetea.com/2010/03/link-product-details-in-astore-iframe/comment-page-1/#comment-23</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Sun, 21 Nov 2010 12:31:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.greenetea.com/?p=533#comment-23</guid>
		<description>Is all of this possible to do on a wordpress.com blog or only on a wordpress.org blog?  Thanks for the article.</description>
		<content:encoded><![CDATA[<p>Is all of this possible to do on a wordpress.com blog or only on a wordpress.org blog?  Thanks for the article.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

