by Nick | May 21, 2012 | Code
This can be used to add your company RSS feed to your customers WordPress dashboard. Simply add this code to the functions.php file. <?php function shaken_rss_output(){ echo '<div class="rss-widget">'; wp_widget_rss_output(array( 'url' =>...
by Nick | May 15, 2012 | Code
Add this to your functions.php file and it will automatically create a meta description from your WordPress post. <?php function create_meta_desc() { global $post; if (!is_single()) { return; } $meta = strip_tags($post->post_content); $meta =...
by Nick | Nov 1, 2011 | Code
This code will allow you to automatically show child pages including custom fields in this case one called ‘desc’ You will need to add this code to your template file for example page.php <?php $child_pages = $wpdb->get_results("SELECT * FROM...
by Nick | Oct 20, 2011 | Code
Here is an example of weight vs destination pricing for UK: Country,Region/State,"Zip/Postal Code","Weight (and above)","Shipping Price" GBR,*,,1000.0000,75.0000 GBR,*,,65.0000,50.5000 GBR,*,,50.0000,40.0000...
by Nick | Aug 4, 2011 | Code
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...
by Nick | Jul 30, 2011 | Code
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 ##...
Recent Comments