---- dataentry snippet ---- type : snippet #do not change this line category : shipping #mention the category like 'shipping', 'checkout' etc name : Conditional free shipping with live rates #the name of the snippet description : #description about snippet versions_tags : 0.6.0, 0.7.0, 0.7.1, 0.7.2, 1.0 #compatible versions reference_url : http://forum.foxycart.com/comments.php?DiscussionID=1531 #External link tags_tags : snippets, advance #tags, separated by commas. date_dt : 2011-05-25 #the date in YYYY-MM-DD format ---- ====== Conditional free shipping with live rates ====== **Using version 2.0?** There is a new snippet available for our latest version, [[v:2.0:snippets:live_rate_shipping_modification|available from here]]. When using live rates, you may want to include a free shipping option for customers who reach a certain threshold - like a certain number of products, or from a certain country. ==== Step 1: Enable free shipping option ==== Under 'Shipping' in the administration, check 'Use custom' and 'Free ground shipping' under 'Custom Options', and update the settings. You can also rename it to be whatever you want from within the 'Languages' section of the administration. ==== Step 2: Add Javascript ==== Paste the following code right before the closing '''' tag of your checkout template, updating the logic to match what you're checking against: ===== Related Forum Discussions ===== * http://forum.foxycart.com/comments.php?DiscussionID=1531 * http://forum.foxycart.com/comments.php?DiscussionID=522