Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
snippets:shipping:setting_single_flat_rate_shipping_amount [2011/05/27 20:32] – created sami.fiaz | snippets:shipping:setting_single_flat_rate_shipping_amount [2017/04/26 07:02] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
---- dataentry snippet ---- | ---- dataentry snippet ---- | ||
- | type : snippet | + | type : snippet # do not change this line |
- | category | + | category |
- | name : Setting a single flat rate shipping amount no matter which categories are included | + | name : Setting a single flat rate shipping amount no matter which categories are included # the name of the snippet |
- | description | + | description |
- | versions_tags : | + | 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 |
---- | ---- | ||
- | ===== Setting a single flat rate shipping amount no matter which categories are included | + | |
- | So to setup flat rate shipping and get around | + | ====== Setting a single flat rate shipping amount no matter which categories are included |
+ | |||
+ | <WRAP center round important 80%> | ||
+ | **Versions 0.7.1 and older**: 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 | ||
+ | </ | ||
+ | <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, | ||
+ | </ | ||
+ | |||
+ | When using multiple categories but you want a single flat rate shipping value for the whole shipment (rather than per category), you need to set this up using javascript. Currently, if all of your categories had a flat rate shipping value of 9, having a product | ||
+ | ==== Step 1: Update categories ==== | ||
+ | |||
+ | Update all categories to ' | ||
+ | |||
+ | ==== Step 2: Insert Javascript ==== | ||
+ | |||
+ | Paste the following right before the closing | ||
<code javascript> | <code javascript> | ||
<script type=" | <script type=" | ||
jQuery(document).ready(function() { | jQuery(document).ready(function() { | ||
- | FC.checkout.config.orderFlatRateShipping = 9; | + | |
- | FC.checkout.updateShipping(-1); | + | FC.checkout.updateShipping(-1); |
}); | }); | ||
- | </ | + | </script></ |
- | <wrap hi> This will make the shipping charges | + | <wrap hi> This will make the shipping charges |
- | </code> | + | |
===== Related Forum Discussions ===== | ===== Related Forum Discussions ===== | ||
* http:// | * http:// |