Magento – Move Currency Switcher to the Header

Post Image

If you would like to move the currency switcher from the left column to the header, you can use the following instructions to do so!
Open /app/design/frontend/default/default/layout/page.xml
Locate:

Magento IE9 Issue Fix

Post Image

If you experience compatibility problems try turning on compatibility mode in IE9 by clicking the small compatibility button in the address bar. If this resolves the problem you can implement the compatibility META tag by editing the head.phtml file of your themes template e.g. app/design/frontend/YOURTHEME/default/template/page/html/head.phtml in older Magento versions.
My Issue: …

Magento – Select “Checkout as Guest” and “Ship to this Address” by default

Post Image

In order to set these defaults, you need to modify the opcheckout.js file located at:
frontend/base/default/js/opcheckout.js
Add this code to the end of the initialize function:

initialize: function(accordion, urls){

// Set guest checkout by default
if ($(’login:guest’)) $(’login:guest’).checked=true;
 
// Set shipping = billing by default
if ($(’billing:use_for_shipping_yes’)) $(’billing:use_for_shipping_yes’).checked=true;
},

WordPress – How to create a paged loop

<?php if(have_posts()) : ?>
<?php
$temp = $wp_query;
$wp_query= null;
$wp_query = new WP_Query();
$wp_query->query(’showposts=1′.’&paged=’.$paged.’&cat=1′);
?>
 
<?php while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
 
<p><a href="<?php the_permalink() ?>" title="<?php echo esc_attr(get_the_title() ? get_the_title() : get_the_ID()); ?>"><?php the_permalink() ?></a></p>
 
<?php endwhile; ?>
 
<div class="navigation">
<div class="alignleft"><?php previous_posts_link(’&laquo; Previous’) ?></div>

Google Maps – Simple “Get Directions” Form

Simply change the Value of daddr to your required address.

<form action="http://maps.google.co.uk/maps" method="get">
<input ID="daddr" name="daddr" TYPE="hidden" value="123 Your Road, Coalisland, Co. Tyrone BT12 3AB (Paul Donnelly Designs)" />
<input ID="hl" name="hl" TYPE="hidden" value="en" /> …

Magento – Display other products from the same category

Post Image

How to setup category related products in Product view :

add the following code somewhere in default\template\catalog\product\view.phtml
Configure the category query according to your catalog by uncommenting the following :

// ->setPage(1, 1) : selects only one category
// ->addFieldToFilter(‘level’,”3″) : selects only 3rd level categories
// ->addFieldToFilter(‘parent_id’,”3″) : select only child categories of no …

 Page 3 of 8 « 1  2  3  4  5 » ...  Last »