<?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>Andy Weigel &#187; WordPress Plugins</title>
	<atom:link href="http://andyweigel.com/blog/category/wordpress-plugins/feed" rel="self" type="application/rss+xml" />
	<link>http://andyweigel.com/blog</link>
	<description>Web Development Tutorials</description>
	<lastBuildDate>Wed, 27 Oct 2010 00:21:19 +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>WP-E-Commerce Add Tax to Receipt</title>
		<link>http://andyweigel.com/blog/wordpress-how-tos/wp-e-commerce-add-tax-to-receipt/184</link>
		<comments>http://andyweigel.com/blog/wordpress-how-tos/wp-e-commerce-add-tax-to-receipt/184#comments</comments>
		<pubDate>Wed, 27 Oct 2010 00:17:31 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[Wordpress How-To's]]></category>
		<category><![CDATA[WordPress Plugins]]></category>

		<guid isPermaLink="false">http://andyweigel.com/blog/?p=184</guid>
		<description><![CDATA[Interested in adding the sales tax to your WP-e-Commerce receipts? It wasn&#8217;t as easy as I had thought. They don&#8217;t record the total tax for each order, so we need to add it up ourselves and add it to both the email receipt and the transaction details screen. The first thing you need to do [...]]]></description>
			<content:encoded><![CDATA[<p>Interested in adding the sales tax to your WP-e-Commerce receipts? It wasn&#8217;t as easy as I had thought. They don&#8217;t record the total tax for each order, so we need to add it up ourselves and add it to both the email receipt and the transaction details screen.<span id="more-184"></span></p>
<p>The first thing you need to do is open the &#8220;transaction-result_functions.php&#8221; file from the wp-e-commerce plugin. Then search for &#8220;$product_list_html.= $row['quantity'].&#8221; -  &#8220;. $product_data['name'].stripslashes($variation_list ).&#8221;  &#8220;. $message_price .&#8221;\n\r&#8221;;&#8221;</p>
<p>Then add this code right after that -</p>
<pre class="php">
$region <span class="phpOperator">=</span> $purchase_log<span class="phpOperator">[</span><span class="phpString">'billing_region'</span><span class="phpOperator">]</span><span class="phpText">;</span>
$region_results <span class="phpOperator">=</span> <span class="phpFunction">mysql_query</span><span class="phpOperator">(</span><span class="phpString">"SELECT * FROM `wp_wpsc_region_tax` WHERE `id` <span class="phpOperator">=</span> $region "</span><span class="phpOperator">)</span><span class="phpText">;</span>
<span class="phpKeyword">
while<span class="phpOperator">(</span></span>$r=<span class="phpFunction">mysql_fetch_array</span><span class="phpOperator">(</span>$region_results<span class="phpOperator">)</span><span class="phpOperator">)</span>
<span class="phpOperator">{</span>
$tax_rate <span class="phpOperator">=</span> $r<span class="phpOperator">[</span><span class="phpString">'tax'</span><span class="phpOperator">]</span><span class="phpText">;</span>
<span class="phpOperator">}</span>
$product_id<span class="phpOperator">[</span><span class="phpOperator">]</span> <span class="phpOperator">=</span> $product_data<span class="phpOperator">[</span><span class="phpString">'id'</span><span class="phpOperator">]</span><span class="phpText">;</span>
$tax_percent <span class="phpOperator">=</span> $tax_rate * <span class="phpOperator">.</span>01<span class="phpText">;</span>
$message_price_clean <span class="phpOperator">=</span> <span class="phpFunction">str_replace</span><span class="phpOperator">(</span><span class="phpString">"$"</span>,<span class="phpString">""</span>,$message_price<span class="phpOperator">)</span><span class="phpText">;</span>
$tax_sub_total <span class="phpOperator">=</span> $message_price_clean * $tax_percent;
$tax_total<span class="phpOperator">[</span><span class="phpOperator">]</span> <span class="phpOperator">=</span> $tax_sub_total;
</pre>
<p>Then find this line &#8211; $product_list_html.= &#8220;Your Purchase No.: &#8220;.$purchase_log['id'].&#8221;\n\n\r&#8221;; and add this</p>
<pre class="php">
$tax_total <span class="phpOperator">=</span> <span class="phpFunction">array_sum</span><span class="phpOperator">(</span>$tax_total<span class="phpOperator">)</span><span class="phpText">;</span>
$tax_total <span class="phpOperator">=</span> <span class="phpFunction">round</span><span class="phpOperator">(</span>$tax_total, <span class="phpNumber">2</span><span class="phpOperator">)</span><span class="phpText">;</span>
$product_list_html<span class="phpOperator">.=</span> <span class="phpString">"Tax<span class="phpOperator">:</span> $"</span> <span class="phpOperator">.</span>$tax_total <span class="phpOperator">.</span><span class="phpString">"\n\r"</span><span class="phpText">;</span>
$product_list<span class="phpOperator">.=</span> <span class="phpString">"Tax<span class="phpOperator">:</span> $"</span> <span class="phpOperator">.</span>$tax_total <span class="phpOperator">.</span><span class="phpString">"\n\r"</span><span class="phpText">;</span>
</pre>
<p>This will add a tax line to both the email receipt and the transaction details screen, after a customer has a made a purchase. If it&#8217;s from a region where sales doesn&#8217;t apply, the tax will be zero.</p>
]]></content:encoded>
			<wfw:commentRss>http://andyweigel.com/blog/wordpress-how-tos/wp-e-commerce-add-tax-to-receipt/184/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>6 Must Have Plugins for Your WordPress Installs</title>
		<link>http://andyweigel.com/blog/wordpress-plugins/6-must-have-plugins-for-your-wordpress-installs/30</link>
		<comments>http://andyweigel.com/blog/wordpress-plugins/6-must-have-plugins-for-your-wordpress-installs/30#comments</comments>
		<pubDate>Mon, 04 Jan 2010 18:46:20 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[WordPress Plugins]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://andyweigel.com/blog/?p=30</guid>
		<description><![CDATA[In my experience with custom WordPress installs, I found myself installing the same plugins over and over. What I&#8217;ve done to increase my efficiency of installing WordPress, I took all my most used plugins and dropped them into the plugin folder of my WordPress install package. Now when I upload WordPress it automatically installs all [...]]]></description>
			<content:encoded><![CDATA[<p><img class="float_right margin_l10 border_all" src="http://andyweigel.com/images/plugins.jpg" alt="WordPress Plugins" width="255" height="219" />In my experience with custom WordPress installs, I found myself installing the same plugins over and over. What I&#8217;ve done to increase my efficiency of installing WordPress, I took all my most used plugins and dropped them into the plugin folder of my WordPress install package.<span id="more-30"></span> Now when I upload WordPress it automatically installs all my most commonly used plugins.</p>
<p>By no means is this a complete list of all the plugins that everyone uses everytime, but it&#8217;s what I personally use for all of my installs.</p>
<p>I&#8217;ve compiled a zip file that contains the following plugins (in no particular order):</p>
<ul>
<li><a href="http://wordpress.org/extend/plugins/all-in-one-seo-pack/" target="_blank">All in One SEO Pack</a> &#8211; Optimizes your WordPress site for search engines by automatically optimizing your titles and meta tags.</li>
<li><a href="http://wordpress.org/extend/plugins/wp-db-backup/" target="_blank">WP Database Backup</a> &#8211; Allows you to automatically schedule backups of your WordPress database. Download or send the backup to your email.</li>
<li><a href="http://www.dagondesign.com/articles/sitemap-generator-plugin-for-wordpress/" target="_blank">Sitemap Generator</a> &#8211; Quickly creates a human-readable sitemap for your WordPress site.</li>
<li><a href="http://wordpress.org/extend/plugins/contact-form-7/" target="_blank">Contact Form 7</a> &#8211; Let&#8217;s you quickly create contact forms for your WordPress site. Supports multiple contact forms and customize the form and content flexibly with simple markup. Supports AJAX submission and validation, CAPTCHA and Akismet spam filtering.</li>
<li><a href="http://wordpress.org/extend/plugins/my-page-order/" target="_blank">My Page Order</a> &#8211; Allows you to order your pages and subpages through the use of a drag and drop interface. Also supports a widget that uses all the page order options.</li>
<li><a href="http://wordpress.org/extend/plugins/google-sitemap-generator/" target="_blank">Google Sitemap Generator</a> &#8211; This plugin generates XML sitemaps that help search engines index your site with greater efficiency.</li>
</ul>
<p>Download  my <a href="http://andyweigel.s3.amazonaws.com/Must Have Plugins.zip">Must Have WordPress plugins</a>. My zip file includes a readme.txt file that has a link to each plugin homepage for install instructions, screen grabs and FAQs. Please feel free to <a href="contact.php">contact me</a> for any additional suggestions!</p>
<p><a class="call-out" href="http://andyweigel.s3.amazonaws.com/Must Have Plugins.zip">Download Must Have WordPress Plugins Zip</a></p>
<hr />
]]></content:encoded>
			<wfw:commentRss>http://andyweigel.com/blog/wordpress-plugins/6-must-have-plugins-for-your-wordpress-installs/30/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

