<?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>leewillis.co.uk&#187; Lee Willis</title> <atom:link href="http://www.leewillis.co.uk/feed/" rel="self" type="application/rss+xml" /><link>http://www.leewillis.co.uk</link> <description>Building a business on Open Source</description> <lastBuildDate>Thu, 26 Aug 2010 19:20:39 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>Post Thumbnails only for Custom Post Types</title><link>http://www.leewillis.co.uk/post-thumbnails-custom-post-types/</link> <comments>http://www.leewillis.co.uk/post-thumbnails-custom-post-types/#comments</comments> <pubDate>Thu, 26 Aug 2010 19:19:32 +0000</pubDate> <dc:creator>Lee</dc:creator> <category><![CDATA[Uncategorized]]></category> <category><![CDATA[e-commerce]]></category> <category><![CDATA[hints]]></category> <category><![CDATA[wordpress]]></category> <category><![CDATA[WP E-Commerce]]></category><guid
isPermaLink="false">http://www.leewillis.co.uk/?p=287</guid> <description><![CDATA[The guys over at getshopped.org are working on a pretty major revision to their WP e-Commerce plugin. Part of this is migrating &#8220;products&#8221; into custom post types, including using post thumbnails for the product images. One of the problems that has cropped up in testing was where user&#8217;s themes didn&#8217;t support post thumbnails. The first [...]]]></description> <content:encoded><![CDATA[<div
class="tweetmeme_button" style="float: right; margin-left: 10px;"> <a
href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.leewillis.co.uk%2Fpost-thumbnails-custom-post-types%2F"><br
/> <img
src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.leewillis.co.uk%2Fpost-thumbnails-custom-post-types%2F&amp;source=leewillis77&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br
/> </a></div><p>The guys over at <a
href="http://getshopped.org">getshopped.org</a> are working on a pretty major revision to their WP e-Commerce plugin. Part of this is migrating &#8220;products&#8221; into custom post types, including using post thumbnails for the product images. One of the problems that has cropped up in testing was where user&#8217;s themes didn&#8217;t support post thumbnails. The first fix for was for the plugin to force &#8220;theme support&#8221; for post thumbnails by calling</p><pre name="code" class="php:nogutter:nocontrols">add_theme_support( 'post-thumbnails' );</pre><p>This worked, in that it solved the problem &#8211; all of the post-thumbnail function calls worked. However, it left a bug, and one that isn&#8217;t a software, or a techie bug &#8211; it was the worst kind &#8211; a bad user experience. Suddenly &#8220;posts&#8221; and &#8220;pages&#8221; would allow you to set featured images when authoring, or editing, but because the theme didn&#8217;t really support post thumbnails, those images would never show leaving a confused, bewildered user. So, the solution is to enable the support in general, but disable it for specific post types:</p><pre name="code" class="php:nogutter:nocontrols">function check_thumbnail_support() {
 if (!current_theme_supports('post-thumbnails')) {
   add_theme_support( 'post-thumbnails' );
   add_action('init','remove_posttype_thumbnail_support');
 }
}
add_action('after_setup_theme','check_thumbnail_support',99);

function remove_posttype_thumbnail_support() {
 remove_post_type_support('post','thumbnail');
 remove_post_type_support('page','thumbnail');
}
</pre><p>This does three important things:<br
/> 1. Check to see if the theme supports thumbnails already &#8211; if so, do nothing<br
/> 2. If not, then turn on post thumbnail support, but also &#8230;<br
/> 3. Remove support from &#8220;post&#8221; and &#8220;page&#8221;</p><p>The &#8220;gotcha&#8221; if you&#8217;re trying to come up with this yourself is that theme support is for &#8220;post-thumbnails&#8221;, but post_type_support is for the more generic &#8220;thumbnails&#8221;. Hope this comes in handy some someone.</p> ]]></content:encoded> <wfw:commentRss>http://www.leewillis.co.uk/post-thumbnails-custom-post-types/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>WordCamp UK 2010</title><link>http://www.leewillis.co.uk/wordcamp-uk-2010/</link> <comments>http://www.leewillis.co.uk/wordcamp-uk-2010/#comments</comments> <pubDate>Wed, 23 Jun 2010 21:41:35 +0000</pubDate> <dc:creator>Lee</dc:creator> <category><![CDATA[Uncategorized]]></category> <category><![CDATA[wordpress]]></category> <category><![CDATA[WP E-Commerce]]></category><guid
isPermaLink="false">http://www.leewillis.co.uk/?p=285</guid> <description><![CDATA[WordCamp UK is an informal annual gathering of WordPress publishers, designers and developers based in the United Kingdom. This year&#8217;s event is being held in Manchester (Which is nice and central if you ask me!) and looks like it&#8217;ll be a great chance to chat about what&#8217;s new and groovy with WordPress, and find out [...]]]></description> <content:encoded><![CDATA[<div
class="tweetmeme_button" style="float: right; margin-left: 10px;"> <a
href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.leewillis.co.uk%2Fwordcamp-uk-2010%2F"><br
/> <img
src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.leewillis.co.uk%2Fwordcamp-uk-2010%2F&amp;source=leewillis77&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br
/> </a></div><p><a
href="http://2010.wordcampuk.org/">WordCamp UK</a> is an informal annual gathering of WordPress publishers, designers and  developers based in the United Kingdom.</p><p>This year&#8217;s event is being held in Manchester (Which is nice and central if you ask me!) and looks like it&#8217;ll be a great chance to chat about what&#8217;s new and groovy with WordPress, and find out who&#8217;s doing what in the UK.</p><p>You can find out more at the <a
href="http://2010.wordcampuk.org/about/" target="_blank">WordCamp UK</a> site.</p> ]]></content:encoded> <wfw:commentRss>http://www.leewillis.co.uk/wordcamp-uk-2010/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>WordPress 3.0</title><link>http://www.leewillis.co.uk/wordpress-3-0/</link> <comments>http://www.leewillis.co.uk/wordpress-3-0/#comments</comments> <pubDate>Thu, 17 Jun 2010 21:58:40 +0000</pubDate> <dc:creator>Lee</dc:creator> <category><![CDATA[Uncategorized]]></category><guid
isPermaLink="false">http://www.leewillis.co.uk/?p=279</guid> <description><![CDATA[This blog now running WordPress 3.0. If you haven&#8217;t already, you should probably check it out.]]></description> <content:encoded><![CDATA[<div
class="tweetmeme_button" style="float: right; margin-left: 10px;"> <a
href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.leewillis.co.uk%2Fwordpress-3-0%2F"><br
/> <img
src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.leewillis.co.uk%2Fwordpress-3-0%2F&amp;source=leewillis77&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br
/> </a></div><p>This blog now running WordPress 3.0. If you haven&#8217;t already, you should probably <a
href="http://wordpress.org/development/2010/06/thelonious/">check it out</a>.</p> ]]></content:encoded> <wfw:commentRss>http://www.leewillis.co.uk/wordpress-3-0/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Extending Virtuemart the smart way</title><link>http://www.leewillis.co.uk/extending-virtuemart-the-smart-way/</link> <comments>http://www.leewillis.co.uk/extending-virtuemart-the-smart-way/#comments</comments> <pubDate>Thu, 10 Jun 2010 18:00:44 +0000</pubDate> <dc:creator>Lee</dc:creator> <category><![CDATA[Uncategorized]]></category> <category><![CDATA[e-commerce]]></category> <category><![CDATA[hacks]]></category> <category><![CDATA[virtuemart]]></category><guid
isPermaLink="false">http://www.leewillis.co.uk/?p=276</guid> <description><![CDATA[Someone left a comment on my article about Virtuemart Category Discounts the other day &#8211; that I though was worthy of a post of its own. What James pointed out was that instead of amending core files, you can create &#8220;class overrides&#8221; to amend functionality you want to. You can read James&#8217; original comment, or [...]]]></description> <content:encoded><![CDATA[<div
class="tweetmeme_button" style="float: right; margin-left: 10px;"> <a
href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.leewillis.co.uk%2Fextending-virtuemart-the-smart-way%2F"><br
/> <img
src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.leewillis.co.uk%2Fextending-virtuemart-the-smart-way%2F&amp;source=leewillis77&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br
/> </a></div><p>Someone left a comment on my article about <a
href="http://www.leewillis.co.uk/virtuemart-category-discounts/">Virtuemart Category Discounts</a> the other day &#8211; that I though was worthy of a post of its own.</p><p>What James pointed out was that instead of amending core files, you can create &#8220;class overrides&#8221; to amend functionality you want to.</p><p>You can read James&#8217; <a
href="http://www.leewillis.co.uk/virtuemart-category-discounts/comment-page-1/#comment-491">original comment</a>, or skip straight to <a
href="http://www.vm-expert.com/virtuemart-expert-blog/80-extending-virtuemart-114">the article</a> that explains everything!</p><p>My future Virtuemart customisations will definitely make use of this &#8211; thanks James!</p> ]]></content:encoded> <wfw:commentRss>http://www.leewillis.co.uk/extending-virtuemart-the-smart-way/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Reverse the product order in WP e-Commerce</title><link>http://www.leewillis.co.uk/reverse-the-product-order-in-wp-e-commerce/</link> <comments>http://www.leewillis.co.uk/reverse-the-product-order-in-wp-e-commerce/#comments</comments> <pubDate>Wed, 09 Jun 2010 20:27:30 +0000</pubDate> <dc:creator>Lee</dc:creator> <category><![CDATA[Uncategorized]]></category> <category><![CDATA[e-commerce]]></category> <category><![CDATA[hints]]></category> <category><![CDATA[wordpress]]></category> <category><![CDATA[WP E-Commerce]]></category><guid
isPermaLink="false">http://www.leewillis.co.uk/?p=272</guid> <description><![CDATA[While WP e-Commerce lets you choose how to order your products (E.g. Price, Name, Date Uploaded) through the admin area, it doesn&#8217;t let you control whether you&#8217;re sorting ascending or descending &#8211; e.g. cheapest first, or most expensive first. Here&#8217;s a a quick tip to show how to control the sort order, just add the [...]]]></description> <content:encoded><![CDATA[<div
class="tweetmeme_button" style="float: right; margin-left: 10px;"> <a
href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.leewillis.co.uk%2Freverse-the-product-order-in-wp-e-commerce%2F"><br
/> <img
src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.leewillis.co.uk%2Freverse-the-product-order-in-wp-e-commerce%2F&amp;source=leewillis77&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br
/> </a></div><p>While WP e-Commerce lets you choose how to order your products (E.g. Price, Name, Date Uploaded) through the admin area, it doesn&#8217;t let you control whether you&#8217;re sorting ascending or descending &#8211; e.g. cheapest first, or most expensive first.</p><p>Here&#8217;s a a quick tip to show how to control the sort order, just add the following snippet to your WordPress theme&#8217;s functions.php file:</p><pre name="code" class="php:nogutter:nocontrols">&lt;?php
    if (!isset($_SESSION['wpsc_product_order'])) {
        $_SESSION['wpsc_product_order'] = "DESC";
 }
 ?&gt;</pre><p>Just swap DESC for ASC to swap the default order. Happy sorting &#8230;</p> ]]></content:encoded> <wfw:commentRss>http://www.leewillis.co.uk/reverse-the-product-order-in-wp-e-commerce/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Adding Virtuemart Product Images to your Sitemap</title><link>http://www.leewillis.co.uk/virtuemart-product-images-sitemap/</link> <comments>http://www.leewillis.co.uk/virtuemart-product-images-sitemap/#comments</comments> <pubDate>Wed, 28 Apr 2010 20:58:28 +0000</pubDate> <dc:creator>Lee</dc:creator> <category><![CDATA[Uncategorized]]></category> <category><![CDATA[joomla]]></category> <category><![CDATA[patches]]></category> <category><![CDATA[virtuemart]]></category><guid
isPermaLink="false">http://www.leewillis.co.uk/?p=266</guid> <description><![CDATA[I wrote in a recent post about how to add post images into your sitemap based on WordPress post images. However I look after a couple of sites, and they&#8217;re not all WordPress. So I set off on a quest to add images to sitemaps on my Joomla! sites. The good news is that my [...]]]></description> <content:encoded><![CDATA[<div
class="tweetmeme_button" style="float: right; margin-left: 10px;"> <a
href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.leewillis.co.uk%2Fvirtuemart-product-images-sitemap%2F"><br
/> <img
src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.leewillis.co.uk%2Fvirtuemart-product-images-sitemap%2F&amp;source=leewillis77&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br
/> </a></div><p>I wrote in a recent post about how to <a
href="/adding-post-thumbnails-to-sitemap/" target="_blank">add post images into your sitemap</a> based on WordPress post images. However I look after a couple of sites, and they&#8217;re not all WordPress. So I set off on a quest to add images to sitemaps on my Joomla! sites.</p><p>The good news is that my sitemap plugin of choice, <a
href="http://joomla.vargas.co.cr/en/documentation/27-xmap" target="_blank">Xmap</a>, had recently added basic image support to their XML sitemaps. However, while Xmap can generate sitemaps for a wide variety of Joomla! components &#8211; the only one to have image support currently is the standard com_content extension. One of my main Joomla! sites though is a store based on <a
href="http://virtuemart.net/" target="_blank">Virtuemart</a>, and I wanted to add product images to the sitemap.</p><p>The result is a revised version of the com_virtuemart extension for Xmap, and a small change to the Xmap XML output code.</p><p>To get things up and running there&#8217;s five simple steps:</p><ol><li>Make sure you&#8217;re running version 1.2.7 of Xmap</li><li>Take backups of all of these files from your existing Joomla! installation:<ul><li>components/com_xmap/xmap.xml.php</li><li>administrator/components/com_xmap/extensions/com_virtuemart.xml</li><li>administrator/components/com_xmap/extensions/com_virtuemart.php</li></ul></li><li>Download com_virtuemart.xml and com_virtuemart.php from <a
href="http://www.leewillis.co.uk/patches/com_xmap/" target="_blank">here</a>, and save them into administrator/components/com_xmap/extensions/</li><li>Download xmap.xml.php from the same place, and save it into components/com_xmap/</li><li>Configure the com_virtuemart extension under com_xmap settings in your Joomla! administrator area. Make sure you&#8217;ve got images turned on, and a license URL specified if you want one.</li></ol><p><a
href="http://www.leewillis.co.uk/wp-content/uploads/2010/04/com_vm_config.jpg" rel="lightbox[266]"><img
class="contentimg" title="com_vm_config" src="http://www.leewillis.co.uk/wp-content/uploads/2010/04/com_vm_config.jpg" alt="" width="336" height="243" /></a></p><p>That&#8217;s it &#8211; your sitemap should now include images for all of your products.</p><p>PS. The default Joomla! robots.txt bans Googlebot from crawling the Virtuemart image folders, you can allow them, by adding:</p><p>Allow: /components/com_virtuemart/shop_image/product/</p><p>to the bottom of your robots.txt &#8230;</p> ]]></content:encoded> <wfw:commentRss>http://www.leewillis.co.uk/virtuemart-product-images-sitemap/feed/</wfw:commentRss> <slash:comments>8</slash:comments> </item> <item><title>Joomla / Virtuemart Campaign Monitor Plugin</title><link>http://www.leewillis.co.uk/joomla-virtuemart-campaign-monitor-plugin/</link> <comments>http://www.leewillis.co.uk/joomla-virtuemart-campaign-monitor-plugin/#comments</comments> <pubDate>Wed, 21 Apr 2010 21:22:29 +0000</pubDate> <dc:creator>Lee</dc:creator> <category><![CDATA[Uncategorized]]></category> <category><![CDATA[e-commerce]]></category> <category><![CDATA[joomla]]></category> <category><![CDATA[plugins]]></category><guid
isPermaLink="false">http://www.leewillis.co.uk/?p=252</guid> <description><![CDATA[I&#8217;ve run a Joomla site, and a Campaign Monitor subscriber list for around 18 months. For most of that time I&#8217;ve manually exported subscribers from Joomla and imported them to Campaign Monitor. Finally I got fed up, and put together a simple Joomla to Campaign Monitor plugin. The plugin auto-subscribes new users (Whether they register [...]]]></description> <content:encoded><![CDATA[<div
class="tweetmeme_button" style="float: right; margin-left: 10px;"> <a
href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.leewillis.co.uk%2Fjoomla-virtuemart-campaign-monitor-plugin%2F"><br
/> <img
src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.leewillis.co.uk%2Fjoomla-virtuemart-campaign-monitor-plugin%2F&amp;source=leewillis77&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br
/> </a></div><p>I&#8217;ve run a Joomla site, and a Campaign Monitor subscriber list for around 18 months. For most of that time I&#8217;ve manually exported subscribers from Joomla and imported them to Campaign Monitor. Finally I got fed up, and put together a simple Joomla to Campaign Monitor plugin.</p><p>The plugin auto-subscribes new users (Whether they register deliberately, or are created by other plugins &#8211; e.g. by purchasing from a Virtuemart store) to your chosen Campaign Monitor list.</p><p>To get up and running, follow these 4 simple steps:</p><ul><li><a
href="http://www.leewillis.co.uk/patches/JomCam/plugin_jomcam.zip">Download the plugin</a></li><li>Install it</li><li>Set up your Campaign Monitor details in the configuration screen<br
/> <img
src="http://www.leewillis.co.uk/wp-content/uploads/2010/04/jomcam.jpg" alt="" title="jomcam" width="495" height="271" class="contentimg" /><br/><small>You can find a great guide for finding these IDs <a
href="http://www.campaignmonitor.com/api/required/<br /> " target="_blank">here</a></li><li>Activate the plugin</li></ul><p>Obviously, you&#8217;ll want to make sure that you have the <a
href="http://help.campaignmonitor.com/topic.aspx?t=51" target="_blank">user&#8217;s permission</a> to contact them as part of the registration policy.</p><p>Happy integrating.</p> ]]></content:encoded> <wfw:commentRss>http://www.leewillis.co.uk/joomla-virtuemart-campaign-monitor-plugin/feed/</wfw:commentRss> <slash:comments>6</slash:comments> </item> <item><title>Adding Post Thumbnails To Your Sitemap</title><link>http://www.leewillis.co.uk/adding-post-thumbnails-to-sitemap/</link> <comments>http://www.leewillis.co.uk/adding-post-thumbnails-to-sitemap/#comments</comments> <pubDate>Sat, 17 Apr 2010 07:47:32 +0000</pubDate> <dc:creator>Lee</dc:creator> <category><![CDATA[Uncategorized]]></category> <category><![CDATA[patches]]></category> <category><![CDATA[wordpress]]></category><guid
isPermaLink="false">http://www.leewillis.co.uk/?p=243</guid> <description><![CDATA[Google recently blogged about Adding Images to your Sitemaps. When I read this my thoughts jumped straight to a friend&#8217;s site that is image-orientated, and could really benefit from this. His site uses WordPress&#8217; post thumbnails to store an image against each post, and I wanted to get those images into his sitemap. His site [...]]]></description> <content:encoded><![CDATA[<div
class="tweetmeme_button" style="float: right; margin-left: 10px;"> <a
href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.leewillis.co.uk%2Fadding-post-thumbnails-to-sitemap%2F"><br
/> <img
src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.leewillis.co.uk%2Fadding-post-thumbnails-to-sitemap%2F&amp;source=leewillis77&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br
/> </a></div><p>Google recently blogged about <a
href="http://googlewebmastercentral.blogspot.com/2010/04/adding-images-to-your-sitemaps.html" target="_blank">Adding Images to your Sitemaps</a>. When I read this my thoughts jumped straight to a friend&#8217;s site that is image-orientated, and could really benefit from this. His site uses WordPress&#8217; post thumbnails to store an image against each post, and I wanted to get those images into his sitemap.</p><p>His site already uses the great <a
href="http://wordpress.org/extend/plugins/google-sitemap-generator/" target="_blank">Google XML Sitemaps</a> plugin to auto-generate an XML sitemap, so I thought I&#8217;d have a go at extending it to support post thumbnails.</p><p>The resulting XML looks a little like this:</p><pre class="html:nogutter:nocontrols">&lt;url&gt;
  &lt;loc&gt;http://test.leewillis.co.uk/hello-world/&lt;/loc&gt;
  &lt;image:image&gt;
    &lt;image:loc&gt;http://test.leewillis.co.uk/wp-content/uploads/test.jpg&lt;/image:loc&gt;
    &lt;image:title&gt;Hello world!&lt;/image:title&gt;
    &lt;image:license&gt;http://test.leewillis.co.uk/license/&lt;/image:license&gt;
  &lt;/image:image&gt;
  &lt;lastmod&gt;2010-04-14T21:15:15+00:00&lt;/lastmod&gt;
  &lt;changefreq&gt;monthly&lt;/changefreq&gt;
  &lt;priority&gt;1.0&lt;/priority&gt;
&lt;/url&gt;
</pre><p>Some notes on the above. The image title is set the same as the post&#8217;s title &#8211; which I figure should be a reasonable result, from a user and SEO point of view. The license URL is configurable (One per site).</p><p>I&#8217;ve submitted the code to the plugin author to hopefully get included, but if you can&#8217;t wait, there&#8217;s a patch file available <a
href="http://www.leewillis.co.uk/patches/google-sitemap-generator/post-thumbnail-images/image_url.diff">here</a> &#8211; just apply it with the &#8220;patch&#8221; utility.</p> ]]></content:encoded> <wfw:commentRss>http://www.leewillis.co.uk/adding-post-thumbnails-to-sitemap/feed/</wfw:commentRss> <slash:comments>17</slash:comments> </item> <item><title>Region-based shipping with WP e-Commerce</title><link>http://www.leewillis.co.uk/region-based-shipping-wp-e-commerce/</link> <comments>http://www.leewillis.co.uk/region-based-shipping-wp-e-commerce/#comments</comments> <pubDate>Fri, 09 Apr 2010 20:32:26 +0000</pubDate> <dc:creator>Lee</dc:creator> <category><![CDATA[Uncategorized]]></category> <category><![CDATA[e-commerce]]></category> <category><![CDATA[plugins]]></category> <category><![CDATA[shipping]]></category> <category><![CDATA[wordpress]]></category> <category><![CDATA[WP E-Commerce]]></category><guid
isPermaLink="false">http://www.leewillis.co.uk/?p=215</guid> <description><![CDATA[I&#8217;ve been asked a few times about how to split up countries into regions and charge shipping differently to the different areas in WP E-Commerce. This was something that was almost, but not quite possible with one of my existing plugins. Now it&#8217;s just a little bit easier. What You&#8217;ll Need WP E-Commerce (3.7.6 or [...]]]></description> <content:encoded><![CDATA[<div
class="tweetmeme_button" style="float: right; margin-left: 10px;"> <a
href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.leewillis.co.uk%2Fregion-based-shipping-wp-e-commerce%2F"><br
/> <img
src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.leewillis.co.uk%2Fregion-based-shipping-wp-e-commerce%2F&amp;source=leewillis77&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br
/> </a></div><p>I&#8217;ve been asked a few times about how to split up countries into regions and charge shipping differently to the different areas in WP E-Commerce. This was something that was almost, but not quite possible with one of my existing plugins.</p><p>Now it&#8217;s just a little bit easier.</p><h2>What You&#8217;ll Need</h2><ul><li><a
href="http://wordpress.org/extend/plugins/wp-e-commerce/">WP E-Commerce (3.7.6 or later)</a></li><li>My <a
href="http://wordpress.org/extend/plugins/wp-e-commerce-weightregion-shipping/">Weight / Destination plugin</a></li><li>Database access to your WP e-Commerce database</li></ul><p>In this example we&#8217;re going to show how to achieve the following:</p><ul><li>Set of Weight rates for New Zealand (North Island)</li><li>Set of Weight rates for New Zealand (North Island)</li><li>Set of Weight rates for the rest of Asia/Pacific</li><li>Set of Weight rates for Europe</li></ul><h2>The Plan</h2><p>To acheive our end goal we&#8217;re going to:</p><ol><li>Create 2 regions attached to the country &#8220;New Zealand&#8221;</li><li>Remove New Zealand from the Asia and Pacific continent (So people ordering to NZ see those prices, not the general &#8220;Asia and Pacific&#8221; pricing</li><li>Set up per-country/region rates for New Zealand</li><li>Set up per-continent rates for Asia and Pacific, and Europe</li></ol><h2>Getting Started</h2><p>The first job is to find out the &#8220;country ID&#8221; for New Zealand. Using your favourite database you&#8217;ll want to look in the wp_wpsc_currency_list table for the entry for New Zealand, and make a note of the value of the &#8220;id&#8221; field &#8211; in our case 156.<br
/> <a
href="http://www.leewillis.co.uk/wp-content/uploads/2010/04/nz-country.jpg" rel="lightbox[215]"><img
class="contentimg" title="nz-country" src="http://www.leewillis.co.uk/wp-content/uploads/2010/04/nz-country.jpg" alt="" width="495" height="80" /></a></p><p>While we&#8217;re here, we&#8217;ll also move New Zealand out of it&#8217;s current continent. This basically just involves updating the same record, and setting the continent field to something unique, e.g.<br
/> <a
href="http://www.leewillis.co.uk/wp-content/uploads/2010/04/nz-country2.jpg" rel="lightbox[215]"><img
class="contentimg" title="nz-country2" src="http://www.leewillis.co.uk/wp-content/uploads/2010/04/nz-country2.jpg" alt="" width="231" height="234" /></a></p><p>Next &#8211; you&#8217;ll need to create whatever regions you want in the wp_wpsc_region_tax table, using the ID you&#8217;ve just found as the &#8220;country_id&#8221; field, e.g.<br
/> <a
href="http://www.leewillis.co.uk/wp-content/uploads/2010/04/region-list.jpg" rel="lightbox[215]"><img
class="contentimg" title="region-list" src="http://www.leewillis.co.uk/wp-content/uploads/2010/04/region-list.jpg" alt="" width="401" height="86" /></a></p><h2>Configuring your pricing</h2><p>That&#8217;s all with the scary database stuff, now on to the easy stuff. First of all you&#8217;ll need to activate both of the shipping modules:<br
/> <a
href="http://www.leewillis.co.uk/wp-content/uploads/2010/04/activate-shipping-modules.jpg" rel="lightbox[215]"><img
class="contentimg" title="activate-shipping-modules" src="http://www.leewillis.co.uk/wp-content/uploads/2010/04/activate-shipping-modules.jpg" alt="" width="249" height="169" /></a></p><p>First up we&#8217;ll configure the continent-based pricing. Click on &#8220;Edit&#8221; next to the weight-continent pricing. Up will pop the configuration pane, with a drop-down of the standard continents &#8211; and also our &#8220;newzealand&#8221; continent &#8211; which we&#8217;re not going to use since New Zealand is going to be priced by region.</p><p><a
href="http://www.leewillis.co.uk/wp-content/uploads/2010/04/weight-continent-1.jpg" rel="lightbox[215]"><img
class="contentimg" title="weight-continent-1" src="http://www.leewillis.co.uk/wp-content/uploads/2010/04/weight-continent-1.jpg" alt="" width="399" height="264" /></a></p><p>Let&#8217;s pick Europe, and configure some weight rates.<br
/> <a
href="http://www.leewillis.co.uk/wp-content/uploads/2010/04/weight-continent-2.jpg" rel="lightbox[215]"><img
class="contentimg" title="weight-continent-2" src="http://www.leewillis.co.uk/wp-content/uploads/2010/04/weight-continent-2.jpg" alt="" width="401" height="206" /></a></p><p>In this case we&#8217;ve just configured one weight band &#8211; which means that anything shipped to Europe will be charged at the same rate &#8211; £80 in this case.</p><p>We can do the same for Asia and Pacific, except maybe setting up multiple layers using the &#8220;Add Layer&#8221; link.</p><p>At this stage shipping will work for Europe, Asia and Pacific, but not for New Zealand (Since we took it out of Asia and Pacific).</p><p>Click on &#8220;Edit&#8221; next to the Weight / Country and Region pricing. Up will pop the configuration pane, with a drop-down of the countries, including regions where configured &#8211; for example, we can see our North Island, and South Island regions here:</p><p><a
href="http://www.leewillis.co.uk/wp-content/uploads/2010/04/weight-country-region.jpg" rel="lightbox[215]"><img
class="contentimg" title="weight-country-region" src="http://www.leewillis.co.uk/wp-content/uploads/2010/04/weight-country-region.jpg" alt="" width="407" height="480" /></a></p><p>Selecting a region gives us the chance to configure weight rates, e.g.</p><p><a
href="http://www.leewillis.co.uk/wp-content/uploads/2010/04/weight-country-region-2.jpg" rel="lightbox[215]"><img
class="contentimg" title="weight-country-region-2" src="http://www.leewillis.co.uk/wp-content/uploads/2010/04/weight-country-region-2.jpg" alt="" width="401" height="314" /></a></p><p>Repeat for other regions, and you&#8217;re set. Happy Shipping!</p><p><strong>Note:</strong> All weights should be set up in lbs, no matter what weight unit you used to set the weight for your products. WP e-Commerce will convert between them for you.</p> ]]></content:encoded> <wfw:commentRss>http://www.leewillis.co.uk/region-based-shipping-wp-e-commerce/feed/</wfw:commentRss> <slash:comments>58</slash:comments> </item> <item><title>WordPress 2.9 e-Commerce</title><link>http://www.leewillis.co.uk/wordpress-2-9-e-commerce/</link> <comments>http://www.leewillis.co.uk/wordpress-2-9-e-commerce/#comments</comments> <pubDate>Sat, 06 Mar 2010 13:11:56 +0000</pubDate> <dc:creator>Lee</dc:creator> <category><![CDATA[Uncategorized]]></category> <category><![CDATA[books]]></category> <category><![CDATA[e-commerce]]></category> <category><![CDATA[wordpress]]></category><guid
isPermaLink="false">http://www.leewillis.co.uk/?p=201</guid> <description><![CDATA[WordPress 2.9 e-Commerce, has been published &#8211; the definitive guide to setting up an e-commerce site on your WordPress blog using the WP e-Commerce plugin, of which I&#8217;m a bit of a fan. This book provides an easy to understand, step-by-step approach to installing, configuring, and using WP e-Commerce to run your online store. We [...]]]></description> <content:encoded><![CDATA[<div
class="tweetmeme_button" style="float: right; margin-left: 10px;"> <a
href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.leewillis.co.uk%2Fwordpress-2-9-e-commerce%2F"><br
/> <img
src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.leewillis.co.uk%2Fwordpress-2-9-e-commerce%2F&amp;source=leewillis77&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br
/> </a></div><p><a
title="Wordpress 2.9 e-Commerce" href="http://www.amazon.co.uk/WordPress-2-9-E-Commerce-Brian-Bondari/dp/1847198503?&amp;camp=2486&amp;linkCode=wey&amp;tag=leewillis-21&amp;creative=20362" target="_blank"><img
class="contentimgleft" title="WordPress 2.9 E-Commerce" src="http://ecx.images-amazon.com/images/I/41QJ6nqwXBL._SL160_AA115_.jpg" alt="WordPress 2.9 E-Commerce " width="115" height="115" /></a><a
href="http://www.amazon.co.uk/WordPress-2-9-E-Commerce-Brian-Bondari/dp/1847198503?&amp;camp=2486&amp;linkCode=wey&amp;tag=leewillis-21&amp;creative=20362" target="_blank">WordPress 2.9 e-Commerce</a>, has been published &#8211; the definitive guide to setting up an e-commerce site on your WordPress blog using the <a
href="http://getshopped.org">WP e-Commerce</a> plugin, of which I&#8217;m a bit of a fan.</p><p>This book provides an easy to understand, step-by-step approach to  installing, configuring, and using WP e-Commerce to run your online  store. We will construct an example store in the book with enough  information and flexibility to adapt the store to your specific needs.</p><p><a
href="http://www.amazon.co.uk/WordPress-2-9-E-Commerce-Brian-Bondari/dp/1847198503?&amp;camp=2486&amp;linkCode=wey&amp;tag=leewillis-21&amp;creative=20362" target="_blank"> This book</a> is for you, if you are interested in using WordPress as the  basis for a store that can sell physical items, downloads, or services.  It is ideal for a sole proprietor or small business owner with only  basic, in-house technical skills. Some prior knowledge of WordPress will  help, but is not required. No knowledge of PHP is expected, but it will be helpful.</p><p>You can buy it from Amazon <a
href="http://www.amazon.co.uk/WordPress-2-9-E-Commerce-Brian-Bondari/dp/1847198503?&amp;camp=2486&amp;linkCode=wey&amp;tag=leewillis-21&amp;creative=20362" target="_blank">here</a>.</p><p><span
class="disclaimer">Disclaimer: I&#8217;ve linked to Amazon using affiliate links, to help fund this blog.</span></p> ]]></content:encoded> <wfw:commentRss>http://www.leewillis.co.uk/wordpress-2-9-e-commerce/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (user agent is rejected)
Database Caching 11/17 queries in 0.006 seconds using disk

Served from: www.leewillis.co.uk @ 2010-09-02 23:57:25 -->