<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Magento Archives - Nick Shaw</title>
	<atom:link href="https://www.nick-shaw.co.uk/tag/magento/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description></description>
	<lastBuildDate>Thu, 20 Oct 2011 18:04:49 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
<site xmlns="com-wordpress:feed-additions:1">150481139</site>	<item>
		<title>Magento weight vs destination table rate shipping costs example</title>
		<link>https://www.nick-shaw.co.uk/magento-weight-vs-destination-table-rate-shipping-costs-example/</link>
					<comments>https://www.nick-shaw.co.uk/magento-weight-vs-destination-table-rate-shipping-costs-example/#comments</comments>
		
		<dc:creator><![CDATA[Nick]]></dc:creator>
		<pubDate>Thu, 20 Oct 2011 18:04:49 +0000</pubDate>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[table rate]]></category>
		<guid isPermaLink="false">http://www.nick-shaw.co.uk/?p=948</guid>

					<description><![CDATA[<p>Here is an example of weight vs destination pricing for UK: This example has different weight based shipping costs for the UK. Download Magento UK Tablerates</p>
<p>The post <a href="https://www.nick-shaw.co.uk/magento-weight-vs-destination-table-rate-shipping-costs-example/">Magento weight vs destination table rate shipping costs example</a> appeared first on <a href="https://www.nick-shaw.co.uk">Nick Shaw</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Here is an example of weight vs destination pricing for UK:</p>
<pre class="brush: plain; title: ; notranslate">
Country,Region/State,&amp;quot;Zip/Postal Code&amp;quot;,&amp;quot;Weight (and above)&amp;quot;,&amp;quot;Shipping Price&amp;quot;
GBR,*,,1000.0000,75.0000
GBR,*,,65.0000,50.5000
GBR,*,,50.0000,40.0000
GBR,*,,40.0000,30.0000
GBR,*,,30.0000,20.0000
GBR,*,,20.0000,17.0000
GBR,*,,10.0000,9.7500
</pre>
<p>This example has different weight based shipping costs for the UK.</p>
<p><a href="https://www.nick-shaw.co.uk/wp-content/uploads/2011/11/uk-weight-tablerates.csv">Download Magento UK Tablerates</a></p>
<p>The post <a href="https://www.nick-shaw.co.uk/magento-weight-vs-destination-table-rate-shipping-costs-example/">Magento weight vs destination table rate shipping costs example</a> appeared first on <a href="https://www.nick-shaw.co.uk">Nick Shaw</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.nick-shaw.co.uk/magento-weight-vs-destination-table-rate-shipping-costs-example/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">948</post-id>	</item>
		<item>
		<title>How to add custom attributes to transactional emails in Magento 1.5</title>
		<link>https://www.nick-shaw.co.uk/how-to-add-custom-attributes-to-transactional-emails-in-magento-1-5/</link>
					<comments>https://www.nick-shaw.co.uk/how-to-add-custom-attributes-to-transactional-emails-in-magento-1-5/#comments</comments>
		
		<dc:creator><![CDATA[Nick]]></dc:creator>
		<pubDate>Thu, 04 Aug 2011 12:26:03 +0000</pubDate>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Custom Attributes]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[Transactional Emails]]></category>
		<guid isPermaLink="false">http://www.nick-shaw.co.uk/?p=929</guid>

					<description><![CDATA[<p>Follow this example to add custom attributes to transactional emails in Magento 1.5 (may work in older version as well) Create a new folder called templates in the directory app\design\frontend\default\default\ and create a new file called orderemail.phtml. Final URL should be app\design\frontend\default\default\template\orderemail.phtml Add the following code to the file orderemail.phtml: &#60;?php $order_id = $this-&#62;getData('order')-&#62;getRealOrderId(); $_order [&#8230;]</p>
<p>The post <a href="https://www.nick-shaw.co.uk/how-to-add-custom-attributes-to-transactional-emails-in-magento-1-5/">How to add custom attributes to transactional emails in Magento 1.5</a> appeared first on <a href="https://www.nick-shaw.co.uk">Nick Shaw</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Follow this example to add custom attributes to transactional emails in Magento 1.5 (may work in older version as well)</p>
<p>Create a new folder called templates in the directory app\design\frontend\default\default\ and create a new file called orderemail.phtml. Final URL should be app\design\frontend\default\default\template\orderemail.phtml</p>
<p>Add the following code to the file orderemail.phtml:</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
$order_id = $this-&gt;getData('order')-&gt;getRealOrderId();
$_order = $this-&gt;getOrder() ?&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;border:1px solid #bebcb7; background:#f8f7f5;&quot;&gt;
    &lt;thead&gt;
        &lt;tr&gt;
            &lt;th class=&quot;a-left&quot; bgcolor=&quot;#d9e5ee&quot; style=&quot;padding:3px 9px&quot;&gt;Item&lt;/th&gt;

            &lt;th class=&quot;a-center&quot; bgcolor=&quot;#d9e5ee&quot; style=&quot;padding:3px 9px&quot;&gt;Qty&lt;/th&gt;
            &lt;th class=&quot;a-right&quot; bgcolor=&quot;#d9e5ee&quot; style=&quot;padding:3px 9px&quot;&gt;Subtotal&lt;/th&gt;
        &lt;/tr&gt;
    &lt;/thead&gt;

    &lt;tbody&gt;
&lt;?php $i=0; foreach ($_order-&gt;getAllItems() as $_item): $i++ ?&gt;
        &lt;tr &lt;?php echo $i%2?'bgcolor=&quot;#eeeded&quot;':'' ?&gt;&gt;
            &lt;td align=&quot;left&quot; valign=&quot;top&quot; style=&quot;padding:3px 9px&quot;&gt;&lt;?php echo $_item-&gt;getName() ?&gt;
            (            &lt;?php
                /* Displays the product's custom attribute */
                $p = Mage::getModel('catalog/product');
                $p -&gt;load($_item-&gt;getProductId());

                echo htmlentities($p-&gt;getArtistsurname()) .&quot; &quot;;
                echo htmlentities($p-&gt;getArtistchristianname());
            ?&gt;
)
            &lt;/td&gt;

            &lt;td align=&quot;center&quot; valign=&quot;top&quot; style=&quot;padding:3px 9px&quot;&gt;&lt;?php echo sprintf('%s', $_item-&gt;getQtyOrdered()) ?&gt;&lt;/td&gt;
            &lt;td align=&quot;right&quot; valign=&quot;top&quot; style=&quot;padding:3px 9px&quot;&gt;
            &lt;?php if ($this-&gt;helper('tax')-&gt;displayCartPriceExclTax() || $this-&gt;helper('tax')-&gt;displayCartBothPrices()): ?&gt;
                &lt;?php if ($this-&gt;helper('tax')-&gt;displayCartBothPrices()): ?&gt;
                    &lt;span class=&quot;label&quot;&gt;&lt;?php echo $this-&gt;__('Excl. Tax'); ?&gt;:&lt;/span&gt;
                &lt;?php endif; ?&gt;
                &lt;?php if (Mage::helper('weee')-&gt;typeOfDisplay($_item, array(0, 1, 4), 'email', $_order-&gt;getStore())): ?&gt;
                    &lt;?php echo $_order-&gt;formatPrice($_item-&gt;getRowTotal()+$_item-&gt;getWeeeTaxAppliedRowAmount()+$_item-&gt;getWeeeTaxRowDisposition()); ?&gt;
                &lt;?php else: ?&gt;
                    &lt;?php echo $_order-&gt;formatPrice($_item-&gt;getRowTotal()) ?&gt;
                &lt;?php endif; ?&gt;

                &lt;?php if (Mage::helper('weee')-&gt;getApplied($_item)): ?&gt;
                    &lt;br /&gt;
                    &lt;?php if (Mage::helper('weee')-&gt;typeOfDisplay($_item, 1, 'email', $_order-&gt;getStore())): ?&gt;
                        &lt;small&gt;
                        &lt;?php foreach (Mage::helper('weee')-&gt;getApplied($_item) as $tax): ?&gt;
                            &lt;span class=&quot;nobr&quot;&gt;&lt;?php echo $tax&#x5B;'title']; ?&gt;: &lt;?php echo $_order-&gt;formatPrice($tax&#x5B;'row_amount'],true,true); ?&gt;&lt;/span&gt;&lt;br /&gt;
                        &lt;?php endforeach; ?&gt;
                        &lt;/small&gt;
                    &lt;?php elseif (Mage::helper('weee')-&gt;typeOfDisplay($_item, 2, 'email', $_order-&gt;getStore())): ?&gt;
                        &lt;?php foreach (Mage::helper('weee')-&gt;getApplied($_item) as $tax): ?&gt;
                            &lt;span class=&quot;nobr&quot;&gt;&lt;small&gt;&lt;?php echo $tax&#x5B;'title']; ?&gt;: &lt;?php echo $_order-&gt;formatPrice($tax&#x5B;'row_amount_incl_tax'],true,true); ?&gt;&lt;/small&gt;&lt;/span&gt;&lt;br /&gt;
                        &lt;?php endforeach; ?&gt;
                    &lt;?php elseif (Mage::helper('weee')-&gt;typeOfDisplay($_item, 4, 'email', $_order-&gt;getStore())): ?&gt;
                        &lt;small&gt;
                        &lt;?php foreach (Mage::helper('weee')-&gt;getApplied($_item) as $tax): ?&gt;
                            &lt;span class=&quot;nobr&quot;&gt;&lt;?php echo $tax&#x5B;'title']; ?&gt;: &lt;?php echo $_order-&gt;formatPrice($tax&#x5B;'row_amount_incl_tax'],true,true); ?&gt;&lt;/span&gt;&lt;br /&gt;
                        &lt;?php endforeach; ?&gt;
                        &lt;/small&gt;
                    &lt;?php endif; ?&gt;

                    &lt;?php if (Mage::helper('weee')-&gt;typeOfDisplay($_item, 2, 'email', $_order-&gt;getStore())): ?&gt;
                        &lt;br /&gt;
                        &lt;span class=&quot;nobr&quot;&gt;&lt;?php echo Mage::helper('weee')-&gt;__('Total'); ?&gt;:&lt;br /&gt; &lt;?php echo $_order-&gt;formatPrice($_item-&gt;getCalculationPrice()+$_item-&gt;getWeeeTaxAppliedRowAmount()+$_item-&gt;getWeeeTaxRowDisposition()); ?&gt;&lt;/span&gt;
                    &lt;?php endif; ?&gt;
                &lt;?php endif; ?&gt;
            &lt;?php endif; ?&gt;

            &lt;?php if ($this-&gt;helper('tax')-&gt;displayCartPriceInclTax() || $this-&gt;helper('tax')-&gt;displayCartBothPrices()): ?&gt;
                &lt;?php if ($this-&gt;helper('tax')-&gt;displayCartBothPrices()): ?&gt;
                    &lt;br /&gt;&lt;span class=&quot;label&quot;&gt;&lt;?php echo $this-&gt;__('Incl. Tax'); ?&gt;:&lt;/span&gt;
                &lt;?php endif; ?&gt;
                &lt;?php $_incl = $this-&gt;helper('checkout')-&gt;getSubtotalInclTax($_item); ?&gt;
                    &lt;?php if (Mage::helper('weee')-&gt;typeOfDisplay($_item, array(0, 1, 4), 'email', $_order-&gt;getStore())): ?&gt;
                        &lt;?php echo $_order-&gt;formatPrice($_incl+$_item-&gt;getWeeeTaxAppliedRowAmount()); ?&gt;
                    &lt;?php else: ?&gt;
                        &lt;?php echo $_order-&gt;formatPrice($_incl-$_item-&gt;getWeeeTaxRowDisposition()) ?&gt;
                    &lt;?php endif; ?&gt;
                &lt;?php if (Mage::helper('weee')-&gt;getApplied($_item)): ?&gt;
                    &lt;br /&gt;
                    &lt;?php if (Mage::helper('weee')-&gt;typeOfDisplay($_item, 1, 'email', $_order-&gt;getStore())): ?&gt;
                        &lt;small&gt;
                        &lt;?php foreach (Mage::helper('weee')-&gt;getApplied($_item) as $tax): ?&gt;
                            &lt;span class=&quot;nobr&quot;&gt;&lt;?php echo $tax&#x5B;'title']; ?&gt;: &lt;?php echo $_order-&gt;formatPrice($tax&#x5B;'row_amount'],true,true); ?&gt;&lt;/span&gt;&lt;br /&gt;
                        &lt;?php endforeach; ?&gt;
                        &lt;/small&gt;
                    &lt;?php elseif (Mage::helper('weee')-&gt;typeOfDisplay($_item, 2, 'email', $_order-&gt;getStore())): ?&gt;
                        &lt;?php foreach (Mage::helper('weee')-&gt;getApplied($_item) as $tax): ?&gt;
                            &lt;span class=&quot;nobr&quot;&gt;&lt;small&gt;&lt;?php echo $tax&#x5B;'title']; ?&gt;: &lt;?php echo $_order-&gt;formatPrice($tax&#x5B;'row_amount_incl_tax'],true,true); ?&gt;&lt;/small&gt;&lt;/span&gt;&lt;br /&gt;
                        &lt;?php endforeach; ?&gt;
                    &lt;?php elseif (Mage::helper('weee')-&gt;typeOfDisplay($_item, 4, 'email', $_order-&gt;getStore())): ?&gt;
                        &lt;small&gt;
                        &lt;?php foreach (Mage::helper('weee')-&gt;getApplied($_item) as $tax): ?&gt;
                            &lt;span class=&quot;nobr&quot;&gt;&lt;?php echo $tax&#x5B;'title']; ?&gt;: &lt;?php echo $_order-&gt;formatPrice($tax&#x5B;'row_amount_incl_tax'],true,true); ?&gt;&lt;/span&gt;&lt;br /&gt;
                        &lt;?php endforeach; ?&gt;
                        &lt;/small&gt;
                    &lt;?php endif; ?&gt;

                    &lt;?php if (Mage::helper('weee')-&gt;typeOfDisplay($_item, 2, 'email', $_order-&gt;getStore())): ?&gt;
                        &lt;span class=&quot;nobr&quot;&gt;&lt;?php echo Mage::helper('weee')-&gt;__('Total incl. tax'); ?&gt;:&lt;br /&gt; &lt;?php echo $_order-&gt;formatPrice($_incl+$_item-&gt;getWeeeTaxAppliedRowAmount()); ?&gt;&lt;/span&gt;
                    &lt;?php endif; ?&gt;
                &lt;?php endif; ?&gt;
            &lt;?php endif; ?&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
&lt;?php endforeach ?&gt;
    &lt;/tbody&gt;

    &lt;tfoot&gt;
        &lt;tr&gt;
            &lt;td colspan=&quot;2&quot; align=&quot;right&quot; style=&quot;padding:3px 9px&quot;&gt;&lt;?php echo Mage::helper('sales')-&gt;__('Subtotal') ?&gt;&lt;/td&gt;
            &lt;td align=&quot;right&quot; style=&quot;padding:3px 9px&quot;&gt;&lt;?php echo $_order-&gt;formatPrice($_order-&gt;getSubtotal()) ?&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;?php if ($_order-&gt;getDiscountAmount()): ?&gt;
            &lt;tr&gt;
                &lt;td colspan=&quot;2&quot; align=&quot;right&quot; style=&quot;padding:3px 9px&quot;&gt;&lt;?php echo Mage::helper('sales')-&gt;__('Discount') ?&gt;&lt;/td&gt;
                &lt;td align=&quot;right&quot; style=&quot;padding:3px 9px&quot;&gt;&lt;?php echo $_order-&gt;formatPrice($_order-&gt;getDiscountAmount()) ?&gt;&lt;/td&gt;
            &lt;/tr&gt;
        &lt;?php endif; ?&gt;
        &lt;?php if ($_order-&gt;getShippingAmount()): ?&gt;
            &lt;tr&gt;
                &lt;td colspan=&quot;2&quot; align=&quot;right&quot; style=&quot;padding:3px 9px&quot;&gt;&lt;?php echo Mage::helper('sales')-&gt;__('Shipping Amount') ?&gt;&lt;/td&gt;
                &lt;td align=&quot;right&quot; style=&quot;padding:3px 9px&quot;&gt;&lt;?php echo $_order-&gt;formatPrice($_order-&gt;getShippingAmount()) ?&gt;&lt;/td&gt;
            &lt;/tr&gt;
        &lt;?php endif; ?&gt;
        &lt;?php if ($_order-&gt;getTaxAmount()): ?&gt;
            &lt;tr&gt;
                &lt;td colspan=&quot;2&quot; align=&quot;right&quot; style=&quot;padding:3px 9px&quot;&gt;&lt;?php echo Mage::helper('sales')-&gt;__('Tax Amount') ?&gt;&lt;/td&gt;
                &lt;td align=&quot;right&quot; style=&quot;padding:3px 9px&quot;&gt;&lt;?php echo $_order-&gt;formatPrice($_order-&gt;getTaxAmount()) ?&gt;&lt;/td&gt;
            &lt;/tr&gt;
        &lt;?php endif; ?&gt;
        &lt;tr bgcolor=&quot;#DEE5E8&quot;&gt;
            &lt;td colspan=&quot;2&quot; align=&quot;right&quot; style=&quot;padding:3px 9px&quot;&gt;&lt;strong&gt;&lt;big&gt;&lt;?php echo Mage::helper('sales')-&gt;__('Grand Total') ?&gt;&lt;/big&gt;&lt;/strong&gt;&lt;/td&gt;
            &lt;td align=&quot;right&quot; style=&quot;padding:6px 9px&quot;&gt;&lt;strong&gt;&lt;big&gt;&lt;?php echo $_order-&gt;formatPrice($_order-&gt;getGrandTotal()) ?&gt;&lt;/big&gt;&lt;/strong&gt;&lt;/td&gt;
        &lt;/tr&gt;
    &lt;/tfoot&gt;

&lt;/table&gt;
</pre>
<p>If you haven&#8217;t already create a new Transactional Email by going to System &gt; Transactional Emails and click &#8216;Add New Template&#8217;, select the template  &#8216;New Order&#8217; and click &#8216;Load Template&#8217; (You may also want do do the same to other emails such as &#8216;New Shipment&#8217;), lastly give it a sensible name.</p>
<p>Replace the code (near the bottom):</p>
<pre class="brush: php; title: ; notranslate">
{{layout handle=&quot;sales_email_order_items&quot; order=$order}}
</pre>
<p>with the following code:</p>
<pre class="brush: php; title: ; notranslate">
{{block type='core/template' area='frontend' template='orderemail.phtml' order=$order}}
</pre>
<p>Lastly you need to go to System &gt; Configuration &gt; Sales Emails and in the order section set the New Order Confirmation Template to you new template you created.</p>
<p>Thats all it should now be working.</p>
<p>The post <a href="https://www.nick-shaw.co.uk/how-to-add-custom-attributes-to-transactional-emails-in-magento-1-5/">How to add custom attributes to transactional emails in Magento 1.5</a> appeared first on <a href="https://www.nick-shaw.co.uk">Nick Shaw</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.nick-shaw.co.uk/how-to-add-custom-attributes-to-transactional-emails-in-magento-1-5/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">929</post-id>	</item>
		<item>
		<title>mod_rewrites and SEO friendly Magento URLs</title>
		<link>https://www.nick-shaw.co.uk/mod_rewrites-and-seo-friendly-magento-urls/</link>
					<comments>https://www.nick-shaw.co.uk/mod_rewrites-and-seo-friendly-magento-urls/#respond</comments>
		
		<dc:creator><![CDATA[Nick]]></dc:creator>
		<pubDate>Sat, 30 Jul 2011 21:36:06 +0000</pubDate>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[mod_rewrites]]></category>
		<category><![CDATA[SEO]]></category>
		<guid isPermaLink="false">http://www.nick-shaw.co.uk/?p=927</guid>

					<description><![CDATA[<p>To enable mod_rewrites and SEO friendly Magento URLs which removes the index.php from the URL of your Magento store, you should enable mod_rewrites. Step 1 Find this in the .htaccess file in the root of your website. ## you can put here your magento root folder ## path relative to web root #RewriteBase /magento/ Step [&#8230;]</p>
<p>The post <a href="https://www.nick-shaw.co.uk/mod_rewrites-and-seo-friendly-magento-urls/">mod_rewrites and SEO friendly Magento URLs</a> appeared first on <a href="https://www.nick-shaw.co.uk">Nick Shaw</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>To enable mod_rewrites and SEO friendly Magento URLs which removes the index.php from the URL of your Magento store, you should enable mod_rewrites.</p>
<p>Step 1<br />
Find this in the .htaccess file in the root of your website.</p>
<pre class="brush: plain; title: ; notranslate">
## you can put here your magento root folder

## path relative to web root

#RewriteBase /magento/
</pre>
<p>Step 2<br />
Remove the # and magento/ so that it looks like:</p>
<pre class="brush: plain; title: ; notranslate">
## you can put here your magento root folder

## path relative to web root

RewriteBase /
</pre>
<p>Step 3<br />
Go to Magento admin pannel: System &gt; Configuration &gt; Web &gt; Search Engines Optimization &gt; Use Web Server Rewrites:and set to: YES</p>
<p>You should now be able to see your pages without the index.php in the URL.</p>
<p>The post <a href="https://www.nick-shaw.co.uk/mod_rewrites-and-seo-friendly-magento-urls/">mod_rewrites and SEO friendly Magento URLs</a> appeared first on <a href="https://www.nick-shaw.co.uk">Nick Shaw</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.nick-shaw.co.uk/mod_rewrites-and-seo-friendly-magento-urls/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">927</post-id>	</item>
	</channel>
</rss>
