<?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>Optimise Blog</title>
	<atom:link href="http://optimiseblog.co.uk/feed/" rel="self" type="application/rss+xml" />
	<link>http://optimiseblog.co.uk</link>
	<description>Technology, in plain English!</description>
	<lastBuildDate>Mon, 27 Feb 2012 12:58:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>&#8216;Is Home Page&#8217; conditional or Check if you are on the Home page in Magento 1.4 &amp; 1.5</title>
		<link>http://optimiseblog.co.uk/is-home-page-conditional-or-check-if-you-are-on-the-home-page-in-magento-1-4-1-5/</link>
		<comments>http://optimiseblog.co.uk/is-home-page-conditional-or-check-if-you-are-on-the-home-page-in-magento-1-4-1-5/#comments</comments>
		<pubDate>Mon, 27 Feb 2012 12:51:11 +0000</pubDate>
		<dc:creator>Adrian @ Optimise</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://optimiseblog.co.uk/?p=738</guid>
		<description><![CDATA[Do you need to put some content on the Home page of your Magento site, but not on others? Here&#8217;s how: Open the relevant .phtml template file which contains the code you want to show on the Home page. Then add the code below depending on which version of Magento you are using&#8230; In Magento version 1.4.x [...]]]></description>
			<content:encoded><![CDATA[<p>Do you need to put some content on the Home page of your Magento site, but not on others? Here&#8217;s how:</p>
<p>Open the relevant .phtml template file which contains the code you want to show on the Home page. Then add the code below depending on which version of Magento you are using&#8230;</p>
<p>In Magento version 1.4.x you need to run a check to see if the current URL matches the Home page URL. This piece of code is called a conditional. Our conditional to check if we are on the Home page would look like this&#8230;</p>
<pre class="brush: plain; title: ; notranslate">&lt;?php if( $this-&gt;getUrl('') == $this-&gt;getUrl('*/*/*', array('_current'=&gt;true, '_use_rewrite'=&gt;true)) ):?&gt;
Your HTML here...
&lt;?php endif; ?&gt;</pre>
<p>In version 1.5, the Magento developers were kind enough to include a new global function&#8230;</p>
<pre class="brush: plain; title: ; notranslate">$this-&gt;getIsHomePage();</pre>
<p>So if you use Magento 1.5.x or newer, can use this conditional in our .phtml file&#8230;</p>
<pre class="brush: plain; title: ; notranslate">&lt;?php if( $this-&gt;getIsHomePage() ):?&gt;
Your HTML here...
&lt;?php endif; ?&gt;</pre>
<p>Much neater!</p>
]]></content:encoded>
			<wfw:commentRss>http://optimiseblog.co.uk/is-home-page-conditional-or-check-if-you-are-on-the-home-page-in-magento-1-4-1-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automated Emailing of Invoices</title>
		<link>http://optimiseblog.co.uk/automated-emailing-of-invoices/</link>
		<comments>http://optimiseblog.co.uk/automated-emailing-of-invoices/#comments</comments>
		<pubDate>Mon, 09 Jan 2012 19:08:34 +0000</pubDate>
		<dc:creator>Gordon Kinnear</dc:creator>
				<category><![CDATA[Optimise News]]></category>

		<guid isPermaLink="false">http://optimiseblog.co.uk/?p=733</guid>
		<description><![CDATA[From January 2012, Invoices from Optimise will be sent to you via our new automated emailing program. If you would wish us to change the recipient email address we have on file for your company please let us know. Thanks]]></description>
			<content:encoded><![CDATA[<p>From January 2012, Invoices from Optimise will be sent to you via our new automated emailing program.</p>
<p>If you would wish us to change the recipient email address we have on file for your company please let us know.</p>
<p>Thanks</p>
]]></content:encoded>
			<wfw:commentRss>http://optimiseblog.co.uk/automated-emailing-of-invoices/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ireland VAT Increase to 23% Jan 2012</title>
		<link>http://optimiseblog.co.uk/ireland-vat-increase-21-to-23-jan-2012/</link>
		<comments>http://optimiseblog.co.uk/ireland-vat-increase-21-to-23-jan-2012/#comments</comments>
		<pubDate>Fri, 23 Dec 2011 12:54:00 +0000</pubDate>
		<dc:creator>Gordon Kinnear</dc:creator>
				<category><![CDATA[Optimise News]]></category>

		<guid isPermaLink="false">http://optimiseblog.co.uk/?p=698</guid>
		<description><![CDATA[The standard rate of VAT in Ireland increases from 21% to 23% for all invoices raised on or after the 1st of January 2012. Note: For companies within the UK, this VAT change program does not need to be run. Please read the following information carefully and familiarise yourself with the options available to you. Please [...]]]></description>
			<content:encoded><![CDATA[<p>The standard rate of VAT in Ireland increases from 21% to 23% for all invoices raised on or after the <strong>1st of January 2012</strong>. Note: For companies within the UK, this VAT change program does not need to be run.</p>
<p>Please read the following information carefully and familiarise yourself with the options available to you.</p>
<p><strong>Please refer to FAQs below for critical timing.</strong></p>
<p>Note: Installing and running the VAT Change Program will not make any changes to the database until you select one of the update options. (Before running the program for real, you can download, install and run the program to review the options- choose CLOSE to not run any updates).</p>
<p><strong>IMPORTANT NOTE: AS THIS DOWNLOAD MAKES SIGNIFICANT CHANGES TO YOUR DATABASE IT IS CRUCIAL THAT YOU BACK-UPEACH OF YOUR LIVE DATABASES BEFORE YOU START.</strong></p>
<p>TO DOWNLOAD VERSION 9. . . Click the green Download Update link below. Follow the instructions given below.</p>
<p><a href="http://www.box.com/s/lkq95c9isqtoyvjftvu5"><img title="Download VAT File" src="http://optimiseblog.co.uk/wp-content/uploads/2009/12/download-vat-file.png" alt="Download VAT File" width="194" height="40" /></a></p>
<p><strong>INSTRUCTIONS</strong></p>
<p>Clicking the <strong>Download Update</strong> button takes you to our &#8220;box&#8221; download site.</p>
<p>You then need to click the &#8220;<strong>Download (136.5 KB)</strong>&#8221; button on that page.</p>
<p>Choose <strong>RUN </strong>rather than SAVE FILE.</p>
<p>If you get a security warning: the publisher could not be verified, choose <strong>RUN </strong>rather than DON&#8217;T RUN.</p>
<p>Once downloaded, the file will run and you will see this screen&#8230;</p>
<p><a rel="attachment wp-att-476" href="http://optimiseblog.co.uk/uk-vat-rate-increase-to-20/install-screenshot/"><img title="Install-screenshot" src="http://optimiseblog.co.uk/wp-content/uploads/2010/12/Install-screenshot.png" alt="" width="527" height="396" /></a></p>
<p>Leave the destination folder and choose <strong>Install</strong> to ensure that you are running the most up-to-date program. If running more than once, always download again from this link for the same reason. The program looks like this&#8230;</p>
<p><a rel="attachment wp-att-702" href="http://optimiseblog.co.uk/ireland-vat-increase-21-to-23-jan-2012/version9-screenshot-2/"><img class="alignnone size-full wp-image-702" title="Version9-screenshot" src="http://optimiseblog.co.uk/wp-content/uploads/2011/12/Version9-screenshot1.png" alt="" width="800" height="576" /></a>﻿</p>
<p><strong>Select Company</strong>: Choose the company you want to update. Any options already run for this VAT change are highlighted in green. The options chosen for previous VAT changes will be shown for information.</p>
<p><strong>Options 1 and 2</strong>: Run these options.</p>
<p><strong>Options 3 and 4</strong>: If your system is geared to TRADE, skip options 3 and 4. They will have no effect on your database. If your system is geared to RETAIL, you may wish to run either option 3 or option 4 or you can skip both options. Running either of these options will create Sales VAT invoices resulting in you having to pay VAT sooner than if you were to skip these options, so think carefully if you want to run either of these.</p>
<p><strong>Option 5</strong>: Run option 5 to change the VAT Rate of any live sales orders. If your system is geared to RETAIL then the selling price to the customer is kept the same (the goods value is reduced appropriately because the VAT element is increasing). If your system is geared to TRADE, the goods price is unchanged but the VAT amount will increase and so the price the customer will ultimately pay for the orders will increase.</p>
<p><strong>Option 6</strong>: If you do not have the Quotes module then this does not need to be run. If you have the Quotes then this needs to be run. This option changes the VAT Rate of any quotes you have on your system.</p>
<p><strong>Option 7</strong>: If your system is geared to TRADE, you should skip this option. If your system is geared to RETAIL, you may wish to run this. Running this option will increase the selling price to your customer of any live sales orders, so think carefully if you would want to run this.</p>
<p><strong>Option 8</strong>: If you still have many Purchase Invoices to post for the old VAT rate then you should close the program at this point and download this program again later when you have very few or none still to post. When you download later, you can pick up where you left off &#8211; the program shows you which options you have run already.</p>
<p><strong>Option 9</strong>: If you still have many Nominal Ledger journals to post for the old VAT rate then you should close the program at this point and download this program again later when you have very few or none still to post. When you download later, you can pick up where you left off &#8211; the program shows you which options you have run already.</p>
<p><strong>Close</strong>: Click this to close the program. Now download again and run for any other company databases.</p>
<p>________________________________________________________________</p>
<p>FAQs regarding the VAT change have been provided at the end of this blog. Any queries, email <a href="mailto:support@oltd.co.uk">support@oltd.co.uk</a>. Please also keep checking back to this web page where we will post any other significant information regarding the VAT rate change.</p>
<p>Over the festive period we are operating the following service:-</p>
<p>24th-27th Dec &#8211; Closed.</p>
<p>28th-30th Dec. &#8211; Emergency Service, email <a href="mailto:support@oltd.co.uk">support@oltd.co.uk</a>.</p>
<p>31st Dec &#8211; Closed</p>
<p>1st-3rd Jan. &#8211; Emergency Service for VAT queries only, email <a href="mailto:support@oltd.co.uk">support@oltd.co.uk</a>.</p>
<p>Tuesday 4th January – Open.</p>
<p>________________________________________________________________</p>
<p><strong>FAQs</strong></p>
<p><strong>Q. When should the VAT update be run (before or after month end and which month end)?</strong></p>
<p>A. The sequence is as follows:-</p>
<p>1. Run the &#8220;Purchase / Nominal&#8221; period end for the end of November (if not yet run).</p>
<p>2. Finish posting all sales orders for December.</p>
<p>3. Complete normal end of day programs, such as SOP &#8211; End of Day &#8211; Invoice Summary / Update to invoice any December invoices.</p>
<p>4. Run the &#8220;Sales / Product&#8221; period end for the end of December.</p>
<p>5. Download the VAT Change module and run the options appropriate to your business. It is likely that you will only run options down to option 7 at this point.</p>
<p>8. Once the bulk of supplier / nominal postings for the old VAT rate have been posted (which could be later in January), download the VAT Change module again and run options 8 and 9.</p>
<p><strong>Q. Do I need to download and run the program on our server?</strong></p>
<p>A. No. use your normal client PC.</p>
<p><strong>Q. What if my network settings do not allow files to be downloaded?</strong></p>
<p>A. You need to contact your network administrator to change your settings to allow you to download files.</p>
<p><strong>Q. How do I run the VAT Change module?</strong></p>
<p>A. Start by clicking on the green <strong>Download Update</strong> button above then follow the instructions below the button in this blog.</p>
<p><strong>Q. If I don&#8217;t have time to run all the options I need to at one time, can I run some on one day and some the next day?</strong></p>
<p>A. Yes. Each time you want to run the VAT Change module, download it again. You can pick up where you left off &#8211; the program shows you which options you have run already.</p>
<p><strong>Q. If I want to do a dry run of the VAT Change module can I test it on my test area?</strong></p>
<p>A. Yes. Provided your test area is up to date to the same program version as your live system, you can run the VAT Change module on your test area. When you run the VAT Change module, make sure you choose the Test area when selecting the company at the top of the program. This will have no effect on your live system.</p>
<p><strong>Q. Can I download the  VAT Change module and run it just to see what it looks like?</strong></p>
<p>A. Yes. You can download and run it. Simply click the CLOSE button at the bottom of the screen once you have had a look. When you come to run the program proper, download again from the website in the same way.</p>
<p><strong>Q. Can I download the program and save it somewhere so that I don&#8217;t have to download it later when I come to run it?</strong></p>
<p>A. Yes you can. However, whenever you run the program, it will tidy up files that it uses and will give an error if run a second time without downloading. Downloading each time you need it is best. This will also ensure you have the very latest release.</p>
<p><strong>Q. Does this VAT Change module work for UK?</strong></p>
<p>A. This VAT Change module does not need to be run unless you are in Southern Ireland as the rate of VAT is not changing. If you do run it, there will be no changes made to your system.</p>
<p><strong>Q. Does the VAT Change module change the customer&#8217;s selling prices on sales orders that are outstanding at the end of December?</strong></p>
<p>A. The update will change the VAT Rate on sales orders outstanding to the new rate. If you have the OptimiseTrade system then the goods value will not be changed &#8211; it is just the VAT amount that will be changed when the invoice is raised. If you have the Optimise Retail system then the goods value is reduced slightly such that the total price to the customer is unchanged. There is an option to increase prices (Option 7) but you have the choice of whether you run that option or not.</p>
<p><strong>Q. If I have more than one database, do I need to run the VAT Change module on each one?</strong></p>
<p>A. Yes. Best thing is to download it from the website and run it on the first database. Once finished, download again and run it on the second database, etc. You don&#8217;t need to run it on your test area but you may find it useful. If you have more than one database remember to back up each database before you start.</p>
<p><strong>Q. Can I run the VAT Change Module on a terminal server or data server, e.g. using remote desktop?</strong></p>
<p>A. Yes. It is designed to run from a client but should also run on a server.</p>
<p><strong>Q. Can I test the VAT Change program on our test database whilst users are logged into the live database?</strong></p>
<p>A. Yes. When the VAT Change program runs you select the database to change. Only that database is changed and users only need to be logged out of that database.</p>
<p><strong>Q. I ran the last VAT Change Module in January 2010. Do I need to run this one?</strong></p>
<p>A. Yes if you are based in Southern Ireland. The previous VAT Change Module only catered for the previous VAT rate change. If you are based in the UK then you do not need to run this one as the VAT rate is not changing.</p>
<p><strong>Q. I have a RETAIL system. When I run option 5, will there be any effect on my business written information?</strong></p>
<p>A. Yes. Because the selling price stays the same to the customer, your margins will be reduced and therefore you will see business written changes for the day that you run the VAT Change module reflect the loss of margin. There will be one change per sales order line. If you also run option 7 then there will be business written changes reflecting the increase in your margins to previous levels.</p>
<p><strong>Q. Does the VAT Change module change prices in my Product database?</strong></p>
<p>A. If your system is geared to RETAIL then the VAT Change module does not change your &#8220;including VAT&#8221; selling prices (if you want to increase prices then you need to use the Export / Import Products program). If your system is geared to TRADE then the VAT Change module does not change the &#8220;excluding VAT&#8221; selling prices, however, if you need to quote &#8220;including VAT&#8221; prices, remember that these will be higher after running the VAT Change module.</p>
<p>Note for retailers: This program does not change any of your “including VAT” product static selling prices. You will need to do these yourself in the usual way (e.g. Product Export/Import in the Administration – Toolbox program) if you, in fact, want to change selling prices.</p>
]]></content:encoded>
			<wfw:commentRss>http://optimiseblog.co.uk/ireland-vat-increase-21-to-23-jan-2012/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Menu Highlighting with jQuery</title>
		<link>http://optimiseblog.co.uk/menu-highlighting-with-jquery/</link>
		<comments>http://optimiseblog.co.uk/menu-highlighting-with-jquery/#comments</comments>
		<pubDate>Tue, 22 Nov 2011 12:54:53 +0000</pubDate>
		<dc:creator>Adrian @ Optimise</dc:creator>
				<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://optimiseblog.co.uk/?p=689</guid>
		<description><![CDATA[If you&#8217;ve built a menu and you want to style the link which corresponds to the page you are on, you can easily add a class to the link using jQuery and then style it using CSS. Billy, one of the developers here at Optimise Web, wrote this small, yet effective script to add a [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve built a menu and you want to style the link which corresponds to the page you are on, you can easily add a class to the link using jQuery and then style it using CSS.</p>
<p>Billy, one of the developers here at <a title="Web Design in Edinburgh - Optimise Web" href="http://optimiseweb.co.uk">Optimise Web</a>, wrote this small, yet effective script to add a class of &#8220;active&#8221; to all links on the page which link to the current page in the browser&#8230;</p>
<pre class="brush: plain; title: ; notranslate">jQuery(document).ready(function($){
 var url = window.location; // get current URL
 $('a[href=&quot;'+url+'&quot;]').addClass('active'); // add class of 'active' to selected links matching current url
});</pre>
<p>In this state any link will get the &#8220;active&#8221; class added. It would be better to be more specific with the jQuery slector. This would make the javascript more efficient as it is not having to search the entire page for links. So, as an example, I wanted this script to only target links in my menu. So I changed&#8230;</p>
<pre class="brush: plain; title: ; notranslate">$('a[href=&quot;'+url+'&quot;]').addClass('active');</pre>
<p>to&#8230;</p>
<pre class="brush: plain; title: ; notranslate">$('nav ul a[href=&quot;'+url+'&quot;]').addClass('active');</pre>
<p>Say you wanted to highlight the current page&#8217;s link in your menu with red text, in your CSS you can add styling to your links like this&#8230;</p>
<pre class="brush: plain; title: ; notranslate">nav ul a.active {color:#900000;}</pre>
<p>And that&#8217;s it. Simple!</p>
]]></content:encoded>
			<wfw:commentRss>http://optimiseblog.co.uk/menu-highlighting-with-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to remove Recurring Profiles &amp; Billing Agreements links from customer account navigation menu in Magento</title>
		<link>http://optimiseblog.co.uk/remove-recurring-profiles-billing-agreements-magento/</link>
		<comments>http://optimiseblog.co.uk/remove-recurring-profiles-billing-agreements-magento/#comments</comments>
		<pubDate>Fri, 30 Sep 2011 15:12:09 +0000</pubDate>
		<dc:creator>Adrian @ Optimise</dc:creator>
				<category><![CDATA[Magento]]></category>

		<guid isPermaLink="false">http://optimiseblog.co.uk/?p=679</guid>
		<description><![CDATA[I spent quite a while trying to work out how to remove the Recurring Profile and Billing Agreements links from the Customer Account navigation menu in Magento. There are plenty of blog posts and Magento forum topics describing how to comment out or even delete the appropriate lines in the billing_agreement.xml or recurring_profile.xml files like [...]]]></description>
			<content:encoded><![CDATA[<p>I spent quite a while trying to work out how to remove the Recurring Profile and Billing Agreements links from the Customer Account navigation menu in Magento. There are plenty of blog posts and Magento forum topics describing how to comment out or even delete the appropriate lines in the billing_agreement.xml or recurring_profile.xml files like this&#8230;</p>
<pre class="brush: plain; title: ; notranslate">

&lt;!-- &lt;reference name=&quot;customer_account_navigation&quot; &gt;
 &lt;action method=&quot;addLink&quot; translate=&quot;label&quot;&gt;&lt;name&gt;recurring_profiles&lt;/name&gt;&lt;path&gt;sales/recurring_profile/&lt;/path&gt;&lt;label&gt;Recurring Profiles&lt;/label&gt;&lt;/action&gt;
 &lt;/reference&gt; --&gt;
</pre>
<p>However, like many other developers, here at <a title="Optimise Web" href="http://optimiseweb.co.uk">Optimise Web</a>, we use the <a title="Using local.xml for overriding or updating xml structure" href="http://inchoo.net/ecommerce/magento/using-local-xml-for-overriding-or-updating-xml-structure/">local.xml</a> method of configuring our layout. Therefore the above technique does not work. Neither does &lt;action=&#8221;unsetChild&#8221;&gt;.</p>
<p>After lots of digging, I eventually found the solution. Copy this file&#8230;</p>
<p>ROOT_DIRECTORY/design/frontend/base/default/template/customer/account/navigation.phtml</p>
<p>into your corresponding theme eg&#8230;</p>
<p>ROOT_DIRECTORY/design/frontend/default/YOUR_THEME/template/customer/account/</p>
<p>Look for the line&#8230;</p>
<pre class="brush: plain; title: ; notranslate">&lt;?php $_count = count($_links); ?&gt;</pre>
<p>Change it to the following and upload it to your server&#8230;</p>
<pre class="brush: plain; title: ; notranslate">&lt;?php $_count = count($_links); unset($_links[&quot;recurring_profiles&quot;]); unset($_links[&quot;billing_agreements&quot;]); ?&gt;</pre>
<p>And that&#8217;s it &#8211; job done. Simples!</p>
<p><span style="font-size: 0.9em;">Tested on Magento 1.5.1.0</span></p>
]]></content:encoded>
			<wfw:commentRss>http://optimiseblog.co.uk/remove-recurring-profiles-billing-agreements-magento/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Update – Magento 1.5.1.0 – Delete Test Orders &amp; Customers using SQL</title>
		<link>http://optimiseblog.co.uk/update-%e2%80%93-magento-1-5-1-0-%e2%80%93-delete-test-orders-customers-using-sql/</link>
		<comments>http://optimiseblog.co.uk/update-%e2%80%93-magento-1-5-1-0-%e2%80%93-delete-test-orders-customers-using-sql/#comments</comments>
		<pubDate>Fri, 23 Sep 2011 15:38:16 +0000</pubDate>
		<dc:creator>Sid Vel</dc:creator>
				<category><![CDATA[Magento]]></category>

		<guid isPermaLink="false">http://optimiseblog.co.uk/?p=674</guid>
		<description><![CDATA[As always, please backup your database and files before running raw SQL queries against your Magento database. I&#8217;ve tested this on a Magento CE 1.5.1.0 site today and it works. Source : http://www.magentocommerce.com/boards/viewthread/2960/P15/#t348791]]></description>
			<content:encoded><![CDATA[<p>As always, please backup your database and files before running raw SQL queries against your Magento database. I&#8217;ve tested this on a Magento CE 1.5.1.0 site today and it works.</p>
<pre class="brush: sql; title: ; notranslate">
-- here are the tables modified for 1.5.0.1

SET FOREIGN_KEY_CHECKS=0;

TRUNCATE `sales_flat_order`;
TRUNCATE `sales_flat_order_address`;
TRUNCATE `sales_flat_order_grid`;
TRUNCATE `sales_flat_order_item`;
TRUNCATE `sales_flat_order_status_history`;
TRUNCATE `sales_flat_quote`;
TRUNCATE `sales_flat_quote_address`;
TRUNCATE `sales_flat_quote_address_item`;
TRUNCATE `sales_flat_quote_item`;
TRUNCATE `sales_flat_quote_item_option`;
TRUNCATE `sales_flat_order_payment`;
TRUNCATE `sales_flat_quote_payment`;
TRUNCATE `sales_flat_shipment`;
TRUNCATE `sales_flat_shipment_item`;
TRUNCATE `sales_flat_shipment_grid`;
TRUNCATE `sales_flat_invoice`;
TRUNCATE `sales_flat_invoice_grid`;
TRUNCATE `sales_flat_invoice_item`;
TRUNCATE `sendfriend_log`;
TRUNCATE `tag`;
TRUNCATE `tag_relation`;
TRUNCATE `tag_summary`;
TRUNCATE `wishlist`;
TRUNCATE `log_quote`;
TRUNCATE `report_event`;

ALTER TABLE `sales_flat_order` AUTO_INCREMENT=1;
ALTER TABLE `sales_flat_order_address` AUTO_INCREMENT=1;
ALTER TABLE `sales_flat_order_grid` AUTO_INCREMENT=1;
ALTER TABLE `sales_flat_order_item` AUTO_INCREMENT=1;
ALTER TABLE `sales_flat_order_status_history` AUTO_INCREMENT=1;
ALTER TABLE `sales_flat_quote` AUTO_INCREMENT=1;
ALTER TABLE `sales_flat_quote_address` AUTO_INCREMENT=1;
ALTER TABLE `sales_flat_quote_address_item` AUTO_INCREMENT=1;
ALTER TABLE `sales_flat_quote_item` AUTO_INCREMENT=1;
ALTER TABLE `sales_flat_quote_item_option` AUTO_INCREMENT=1;
ALTER TABLE `sendfriend_log` AUTO_INCREMENT=1;
ALTER TABLE `sales_flat_order_payment` AUTO_INCREMENT=1;
ALTER TABLE `sales_flat_quote_payment` AUTO_INCREMENT=1;
ALTER TABLE `sales_flat_shipment` AUTO_INCREMENT=1;
ALTER TABLE `sales_flat_shipment_item` AUTO_INCREMENT=1;
ALTER TABLE `sales_flat_invoice` AUTO_INCREMENT=1;
ALTER TABLE `sales_flat_invoice_grid` AUTO_INCREMENT=1;
ALTER TABLE `sales_flat_invoice_item` AUTO_INCREMENT=1;
ALTER TABLE `sales_flat_shipment_grid` AUTO_INCREMENT=1;
ALTER TABLE `tag` AUTO_INCREMENT=1;
ALTER TABLE `tag_relation` AUTO_INCREMENT=1;
ALTER TABLE `tag_summary` AUTO_INCREMENT=1;
ALTER TABLE `wishlist` AUTO_INCREMENT=1;
ALTER TABLE `log_quote` AUTO_INCREMENT=1;
ALTER TABLE `report_event` AUTO_INCREMENT=1;

-- credit invoices
TRUNCATE `sales_flat_creditmemo`;
TRUNCATE `sales_flat_creditmemo_comment`;
TRUNCATE `sales_flat_creditmemo_grid`;
TRUNCATE `sales_flat_creditmemo_item`;

ALTER TABLE `sales_flat_creditmemo` AUTO_INCREMENT=1;
ALTER TABLE `sales_flat_creditmemo_comment` AUTO_INCREMENT=1;
ALTER TABLE `sales_flat_creditmemo_grid` AUTO_INCREMENT=1;
ALTER TABLE `sales_flat_creditmemo_item` AUTO_INCREMENT=1;

-- lets reset customers
TRUNCATE `customer_address_entity`;
TRUNCATE `customer_address_entity_datetime`;
TRUNCATE `customer_address_entity_decimal`;
TRUNCATE `customer_address_entity_int`;
TRUNCATE `customer_address_entity_text`;
TRUNCATE `customer_address_entity_varchar`;
TRUNCATE `customer_entity`;
TRUNCATE `customer_entity_datetime`;
TRUNCATE `customer_entity_decimal`;
TRUNCATE `customer_entity_int`;
TRUNCATE `customer_entity_text`;
TRUNCATE `customer_entity_varchar`;
TRUNCATE `log_customer`;
TRUNCATE `log_visitor`;
TRUNCATE `log_visitor_info`;

ALTER TABLE `customer_address_entity` AUTO_INCREMENT=1;
ALTER TABLE `customer_address_entity_datetime` AUTO_INCREMENT=1;
ALTER TABLE `customer_address_entity_decimal` AUTO_INCREMENT=1;
ALTER TABLE `customer_address_entity_int` AUTO_INCREMENT=1;
ALTER TABLE `customer_address_entity_text` AUTO_INCREMENT=1;
ALTER TABLE `customer_address_entity_varchar` AUTO_INCREMENT=1;
ALTER TABLE `customer_entity` AUTO_INCREMENT=1;
ALTER TABLE `customer_entity_datetime` AUTO_INCREMENT=1;
ALTER TABLE `customer_entity_decimal` AUTO_INCREMENT=1;
ALTER TABLE `customer_entity_int` AUTO_INCREMENT=1;
ALTER TABLE `customer_entity_text` AUTO_INCREMENT=1;
ALTER TABLE `customer_entity_varchar` AUTO_INCREMENT=1;
ALTER TABLE `log_customer` AUTO_INCREMENT=1;
ALTER TABLE `log_visitor` AUTO_INCREMENT=1;
ALTER TABLE `log_visitor_info` AUTO_INCREMENT=1;

-- Now, lets Reset all ID counters
TRUNCATE `eav_entity_store`;
ALTER TABLE `eav_entity_store` AUTO_INCREMENT=1;

SET FOREIGN_KEY_CHECKS=1;
</pre>
<p>Source : http://www.magentocommerce.com/boards/viewthread/2960/P15/#t348791</p>
]]></content:encoded>
			<wfw:commentRss>http://optimiseblog.co.uk/update-%e2%80%93-magento-1-5-1-0-%e2%80%93-delete-test-orders-customers-using-sql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento &#8211; Newsletter Subscribe Form in Footer or Header</title>
		<link>http://optimiseblog.co.uk/magento-newsletter-subscribe-form-in-footer-or-header/</link>
		<comments>http://optimiseblog.co.uk/magento-newsletter-subscribe-form-in-footer-or-header/#comments</comments>
		<pubDate>Wed, 03 Aug 2011 15:24:21 +0000</pubDate>
		<dc:creator>Adrian @ Optimise</dc:creator>
				<category><![CDATA[Magento]]></category>

		<guid isPermaLink="false">http://optimiseblog.co.uk/?p=665</guid>
		<description><![CDATA[It used to be the case that to move your Newsletter Subcribe form, or other Magento blocks, from their original position in your Magento template you would need to go and find the relevant lines in the layout XML files and modify them to show in a new postition. This however was a tedious process; [...]]]></description>
			<content:encoded><![CDATA[<p>It used to be the case that to move your Newsletter Subcribe form, or other Magento blocks, from their original position in your Magento template you would need to go and find the relevant lines in the layout XML files and modify them to show in a new postition. This however was a tedious process; especially when it came to precise positioning on your page.</p>
<p>Now you can create a block on the fly and position it precisely in your template files with one line of code. So here it is&#8230;</p>
<pre class="brush: php; title: ; notranslate">

&lt;?php echo $this-&gt;getLayout()-&gt;createBlock('newsletter/subscribe')-&gt;setTemplate('newsletter/subscribe.phtml')-&gt;toHtml(); ?&gt;
</pre>
<p>This code can be used for other types of block. Say you had a template file which would call a list of products from the catalogue, you would use <strong>createBlock(&#8216;catalog/product_list&#8217;)</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://optimiseblog.co.uk/magento-newsletter-subscribe-form-in-footer-or-header/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add a link to the product on the admin order page</title>
		<link>http://optimiseblog.co.uk/add-a-link-to-the-product-on-the-admin-order-page/</link>
		<comments>http://optimiseblog.co.uk/add-a-link-to-the-product-on-the-admin-order-page/#comments</comments>
		<pubDate>Mon, 01 Aug 2011 16:26:38 +0000</pubDate>
		<dc:creator>billy</dc:creator>
				<category><![CDATA[Magento]]></category>

		<guid isPermaLink="false">http://optimiseblog.co.uk/?p=660</guid>
		<description><![CDATA[We recently had a client who asked to have a link added to the magento admin order page so they could easily see what the product was. It requires a core hack so isn&#8217;t recommended. If you want to go ahead here&#8217;s the code: Open app/design/adminhtml/default/default/template/sales/order/view/items/renderer/default.phtml at look and at ~ line 68 until you [...]]]></description>
			<content:encoded><![CDATA[<p>We recently had a client who asked to have a link added to the magento admin order page so they could easily see what the product was. It requires a core hack so isn&#8217;t recommended. If you want to go ahead here&#8217;s the code:</p>
<p>Open app/design/adminhtml/default/default/template/sales/order/view/items/renderer/default.phtml at look and at ~ line 68 until you find</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php echo $this-&gt;getColumnHtml($_item, 'name') ?&gt;
</pre>
<p>Replace with:</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php $_pullProduct = Mage::getModel('catalog/product')-&gt;loadByAttribute('sku', $_item-&gt;getData('sku')); ?&gt;
&lt;a target=&quot;_blank&quot; rel=&quot;external&quot; href=&quot;&lt;?php echo Mage::getUrl() . $_pullProduct-&gt;getData('url_path'); ?&gt;&quot;&gt;&lt;?php echo $this-&gt;getColumnHtml($_item, 'name') ?&gt;&lt;/a&gt;
</pre>
<p>And save. You should now a link to the product in the admin order page.</p>
]]></content:encoded>
			<wfw:commentRss>http://optimiseblog.co.uk/add-a-link-to-the-product-on-the-admin-order-page/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Fix: Magento Catalog Search Broken / Not Working</title>
		<link>http://optimiseblog.co.uk/magento-catalog-search-broken-not-working/</link>
		<comments>http://optimiseblog.co.uk/magento-catalog-search-broken-not-working/#comments</comments>
		<pubDate>Mon, 27 Jun 2011 09:53:19 +0000</pubDate>
		<dc:creator>Sid Vel</dc:creator>
				<category><![CDATA[Magento]]></category>

		<guid isPermaLink="false">http://optimiseblog.co.uk/?p=652</guid>
		<description><![CDATA[We recently updated a Magento install from 1.3.2.4 to 1.5.1.0. Everything worked fine, expect the search function. Whatever we searched for, the site returned just one result. This seems to be a problem with upgrades and even some fresh installs of Magneto 1.4.1.1, 1.4.2, 1.5.1.0, etc. The following is the fix. This will require fixing [...]]]></description>
			<content:encoded><![CDATA[<p>We recently updated a Magento install from 1.3.2.4 to 1.5.1.0. Everything worked fine, expect the search function. Whatever we searched for, the site returned just one result. This seems to be a problem with upgrades and even some fresh installs of Magneto 1.4.1.1, 1.4.2, 1.5.1.0, etc. The following is the fix. This will require fixing the core files. Hopefully the Magento team will address the issue in the next update.</p>
<p>Edit app/code/core/Mage/CatalogSearch/Block/Result.php</p>
<p>Uncomment lines 149 and 150</p>
<pre class="brush: php; title: ; notranslate">
$this-&gt;getListBlock()
-&gt;setCollection($this-&gt;_getProductCollection());
</pre>
<p>Modify the line 172</p>
<pre class="brush: php; title: ; notranslate">
// Change this line
$this-&gt;_productCollection = $this-&gt;getListBlock()-&gt;getLoadedProductCollection();
</pre>
<p>to the old code from Version 1.4.1.1</p>
<pre class="brush: php; title: ; notranslate">
// Change the previous line to this one
$this-&gt;_productCollection = Mage::getSingleton('catalogsearch/layer')-&gt;getProductCollection();
</pre>
<p>Once the code is fixed, go to the Admin panel (System > Index Management) and select all the Indexes > Pick action is &#8220;Reindex data&#8221; > Press &#8220;Submit&#8221;.</p>
<p>The search should work now.</p>
<p><a href="http://www.magentocommerce.com/boards/viewthread/178347/P30/" rel="external nofollow" title="Magento eCommerce Forum">Source</a></p>
]]></content:encoded>
			<wfw:commentRss>http://optimiseblog.co.uk/magento-catalog-search-broken-not-working/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>A Helping Hand for Optimise Users</title>
		<link>http://optimiseblog.co.uk/a-helping-hand-for-optimise-users/</link>
		<comments>http://optimiseblog.co.uk/a-helping-hand-for-optimise-users/#comments</comments>
		<pubDate>Wed, 22 Jun 2011 15:11:24 +0000</pubDate>
		<dc:creator>Gordon Kinnear</dc:creator>
				<category><![CDATA[Optimise News]]></category>

		<guid isPermaLink="false">http://optimiseblog.co.uk/?p=639</guid>
		<description><![CDATA[Many users are not aware that there is documented help on-line for the Optimise System. To access it, choose Help - Search Help from the Optimise menu or go to http://oltd.co.uk/Help on your web browser. A Table of Contents is shown first. If you want to search by keyword, choose Keyword Index at the top [...]]]></description>
			<content:encoded><![CDATA[<p>Many users are not aware that there is documented help on-line for the Optimise System.</p>
<p>To access it, choose <strong>Help </strong>- <strong>Search Help</strong> from the Optimise menu or go to</p>
<p><a title="http://oltd.co.uk/Help" href="http://oltd.co.uk/Help">http://oltd.co.uk/Help</a> on your web browser.</p>
<p>A Table of Contents is shown first.</p>
<p>If you want to search by keyword, choose <span style="text-decoration: underline;"><strong>Keyword Index</strong></span> at the top left.</p>
]]></content:encoded>
			<wfw:commentRss>http://optimiseblog.co.uk/a-helping-hand-for-optimise-users/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

