">
Netismine

Magento custom development and freelance programming

post->ID; $post_categories = wp_get_post_categories($id); $cats = array(); foreach($post_categories as $c){ $cat = get_category( $c ); $cats[] = array( 'name' => $cat->name, 'slug' => $cat->slug ); break; } ?>

My client wanted to offer free shipping only to registered customers, but also wanted all the people who clicked “Register” option at checkout, instead of “Checkout as Guest”, to be eligible for free shipping, too. This looked like several hours of work at first but came up pretty simple. My solution involved adding few lines of code to two different files, and creation of system config value through system.xml. It was quickly done, so I chipped in a feature to enable free shipping to specified customer groups, instead of all registered, for greater flexibility.

Instructions on how to do it are in the spoiler.

Spoiler Inside
2 comments

2 Responses to Free shipping only for registered users

  1. does this work on later versions of magento?

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">