Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
snippets:shipping:multiple_flat_rates [2012/07/13 00:43] – [Changelog] adam | snippets:shipping:multiple_flat_rates [2017/04/26 07:02] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
---- dataentry snippet ---- | ---- dataentry snippet ---- | ||
- | type : snippet #do not change this line | + | type : snippet # do not change this line |
- | category | + | category |
- | name : Multiple Flat Rate #the name of the snippet | + | name : Multiple Flat Rate # the name of the snippet |
- | description | + | description |
- | versions_tags : 0.6.0, 0.7.0, 0.7.1, 0.7.2 #compatible versions | + | versions_tags : 0.6.0, 0.7.0, 0.7.1, 0.7.2, 1.0, 1.1 # compatible versions |
- | reference_url : http:// | + | reference_url : http:// |
- | tags_tags | + | tags_tags |
- | date_dt | + | date_dt |
---- | ---- | ||
+ | |||
+ | |||
====== Multiple Custom Flat Rate Shipping Options | ====== Multiple Custom Flat Rate Shipping Options | ||
- | <WRAP center round important | + | <WRAP center round important |
- | Note that applying javascript shipping modifications using either live or flat rates where you are setting custom values has been found to not work as expected for subscription based products where you need the shipping to apply to each subscription renewal. | + | **Versions 0.7.1 and older**: |
+ | </ | ||
+ | <WRAP center round important 80%> | ||
+ | **Using version 2.0?** There is a new snippet available for our latest version, [[v: | ||
+ | </ | ||
+ | <WRAP center round info 80%> | ||
+ | **If you're using handling fees** note that you can't overwrite handling fees using javascript on the checkout to provide free shipping. While it will appear that the shipping is $0 on the checkout, the handling fees will be added back in server-side, | ||
</ | </ | ||
Line 35: | Line 43: | ||
==== Step 3: Add Javascript ==== | ==== Step 3: Add Javascript ==== | ||
- | Add the following right before the closing ''</ | + | Add the following right before the closing ''</ |
<code javascript>< | <code javascript>< | ||
Line 49: | Line 57: | ||
/* BEGIN CUSTOM SHIPPING LOGIC */ | /* BEGIN CUSTOM SHIPPING LOGIC */ | ||
| | ||
- | | + | |
| | ||
/* END CUSTOM SHIPPING LOGIC */ | /* END CUSTOM SHIPPING LOGIC */ | ||
Line 59: | Line 67: | ||
<script type=" | <script type=" | ||
//< | //< | ||
- | /* Multiple Flat Rate Shipping Options Logic v2.3 */ | + | /* Multiple Flat Rate Shipping Options Logic v2.4 */ |
| | ||
jQuery(document).ready(function() { | jQuery(document).ready(function() { | ||
- | jQuery(" | + | jQuery(" |
shipping_service_description = jQuery(this).siblings(" | shipping_service_description = jQuery(this).siblings(" | ||
shipping_service_description += ((shipping_service_description == "" | shipping_service_description += ((shipping_service_description == "" | ||
Line 245: | Line 253: | ||
===== Related Forum Discussions ===== | ===== Related Forum Discussions ===== | ||
- | * http:// | + | * https:// |
===== Changelog ===== | ===== Changelog ===== | ||
Line 256: | Line 264: | ||
* 2012/04/12 - v2.2 - Added checks in the addShippingOption() function to account for undefined carriers and services | * 2012/04/12 - v2.2 - Added checks in the addShippingOption() function to account for undefined carriers and services | ||
* 2012/07/13 - v2.3 - Added checks in onLocationChange updateTaxes overload to not run if it is being run as part of validateAndSubmit to prevent checkout being blocked. | * 2012/07/13 - v2.3 - Added checks in onLocationChange updateTaxes overload to not run if it is being run as part of validateAndSubmit to prevent checkout being blocked. | ||
+ | * 2013/05/18 - v2.4 - Updated script to use .on() instead of .live() |