<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://wiki.foxycart.com/lib/exe/css.php?s=feed" type="text/css"?>
<rss version="2.0">
    <channel xmlns:g="http://base.google.com/ns/1.0">
        <title>Foxy Wiki - snippets:shipping</title>
        <description></description>
        <link>https://wiki.foxycart.com/</link>
        <lastBuildDate>Sat, 10 Oct 2026 11:32:10 +0000</lastBuildDate>
        <generator>FeedCreator 1.8</generator>
        <image>
            <url>https://wiki.foxycart.com/_media/wiki/dokuwiki.svg</url>
            <title>Foxy Wiki</title>
            <link>https://wiki.foxycart.com/</link>
        </image>
        <item>
            <title>adding_handling_fees_for_each_shipment_with_multiship</title>
            <link>https://wiki.foxycart.com/snippets/shipping/adding_handling_fees_for_each_shipment_with_multiship?rev=1493190150&amp;do=diff</link>
            <description>Adding handling fees for each shipment with multiship.


function check_for_messages() {
	jQuery('.sendmessage').each(function() {

		//figure out the multiship from the name attribute of input.sendmessage
		$multiship_array = jQuery(this).attr(&quot;name&quot;).split(&quot;_&quot;);

		//assign that value to $multiship_name
		$multiship_name = $multiship_array[2];

		if (jQuery(this).attr('checked')) {

			//change handling fee for proper multishipHandlingFees[]
			FC.checkout.config.multishipHandlingFees[$multish…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 26 Apr 2017 07:02:30 +0000</pubDate>
        </item>
        <item>
            <title>australia_tnt_rate_requests</title>
            <link>https://wiki.foxycart.com/snippets/shipping/australia_tnt_rate_requests?rev=1493190150&amp;do=diff</link>
            <description>Australia TNT Rate Requests


function sendTNTRequest(request_data, target) {
    $.getJSON(&quot;http://&lt;my_domain&gt;/&lt;my_script&gt;/?data=&quot; + $.jSONToString(request_data) + &quot;&amp;callback=?&quot;, function(quote) {
        if (quote.error) {
            showError(ERROR + &quot;\n\nReason: &quot; + quote.error)
        }
        else {
            // this request is either from the cart page
            if ($(target).attr(&quot;id&quot;) == &quot;cart-shipping-cost&quot;) {
                $(target).html(&quot;$&quot; + quote.cost)
            }
      …</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 26 Apr 2017 07:02:30 +0000</pubDate>
        </item>
        <item>
            <title>automatically_selecting_returned_shipping_rate</title>
            <link>https://wiki.foxycart.com/snippets/shipping/automatically_selecting_returned_shipping_rate?rev=1493190150&amp;do=diff</link>
            <description>Automatically selecting returned shipping rate

Using version 2.0? There is a new snippet available for our latest version, available from here.

This script automatically selects the first returned shipping option with live rates, and updates the total price of the checkout accordingly.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 26 Apr 2017 07:02:30 +0000</pubDate>
        </item>
        <item>
            <title>breaking_shipments_over_maximum_weight_into_smaller_packages</title>
            <link>https://wiki.foxycart.com/snippets/shipping/breaking_shipments_over_maximum_weight_into_smaller_packages?rev=1493190150&amp;do=diff</link>
            <description>Breaking shipments over the maximum weight into smaller packages

Using version 2.0? There is a new snippet available for our latest version, available from here.

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 to apply to each subscription renewal. A fix is in place for versions 0.7.2 and newer.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 26 Apr 2017 07:02:30 +0000</pubDate>
        </item>
        <item>
            <title>conditional_free_shipping_with_live_rates</title>
            <link>https://wiki.foxycart.com/snippets/shipping/conditional_free_shipping_with_live_rates?rev=1493190150&amp;do=diff</link>
            <description>Conditional free shipping with live rates

Using version 2.0? There is a new snippet available for our latest version, 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.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 26 Apr 2017 07:02:30 +0000</pubDate>
        </item>
        <item>
            <title>dimensional_weights</title>
            <link>https://wiki.foxycart.com/snippets/shipping/dimensional_weights?rev=1493190150&amp;do=diff</link>
            <description>Dimensional weights

The context is this:
we use USPS priority and express for shipping both domestically and internationally, and in a wide range of object sizes. (Not many different objects, but both tiny and inexpensive and huge and expensive.) For domestic addresses, the priority mail and express mail price estimates are reasonably fair, and scale pretty well. But for international, it can get absurd quickly. A tiny $5 object, priced with regular priority mail to the UK costs $26</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 26 Apr 2017 07:02:30 +0000</pubDate>
        </item>
        <item>
            <title>fallback_forover_the_maximum_weight_errors</title>
            <link>https://wiki.foxycart.com/snippets/shipping/fallback_forover_the_maximum_weight_errors?rev=1493190150&amp;do=diff</link>
            <description>See &lt;http://wiki.foxycart.com/snippets/shipping/live_shipping_rates_with_fixed_rate_fall_back_for_heavy_shipments&gt;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 26 Apr 2017 07:02:30 +0000</pubDate>
        </item>
        <item>
            <title>flat_rate_markup_of_live_rates</title>
            <link>https://wiki.foxycart.com/snippets/shipping/flat_rate_markup_of_live_rates?rev=1493190150&amp;do=diff</link>
            <description>Flat Rate Markup of Live Rates

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 to apply to each subscription renewal. A fix is in place for versions 0.7.2 and newer.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 26 Apr 2017 07:02:30 +0000</pubDate>
        </item>
        <item>
            <title>flat_rates_by_country_and_product_category</title>
            <link>https://wiki.foxycart.com/snippets/shipping/flat_rates_by_country_and_product_category?rev=1493190150&amp;do=diff</link>
            <description>Flat rates by country and product category

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 to apply to each subscription renewal. A fix is in place for versions 0.7.2 and newer.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 26 Apr 2017 07:02:30 +0000</pubDate>
        </item>
        <item>
            <title>free_shipping_using_a_coupon</title>
            <link>https://wiki.foxycart.com/snippets/shipping/free_shipping_using_a_coupon?rev=1649358752&amp;do=diff</link>
            <description>Setup 1: Free shipping using a 0% discount coupon

Using version 2.0? There is a new snippet available for our latest version, available from here.

Step 1: Add a coupon

First, set up a coupon - and depending on your store version, you will need to setup different coupons.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 07 Apr 2022 19:12:32 +0000</pubDate>
        </item>
        <item>
            <title>handling_fee_on_orders_under_100_dollar</title>
            <link>https://wiki.foxycart.com/snippets/shipping/handling_fee_on_orders_under_100_dollar?rev=1493190150&amp;do=diff</link>
            <description>Handling fee on orders under $100, free if over, live rates included.

Using version 2.0? There is a new snippet available for our latest version, available from here.

This javascript allows you to add different amounts to shipping costs based on the carrier that the customer has chosen. This particular setup also provides free shipping if the order is over a certain price.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 26 Apr 2017 07:02:30 +0000</pubDate>
        </item>
        <item>
            <title>live_rate_shipping_modification</title>
            <link>https://wiki.foxycart.com/snippets/shipping/live_rate_shipping_modification?rev=1493190150&amp;do=diff</link>
            <description>Live Rate Shipping Modification

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 to apply to each subscription renewal. A fix is in place for versions 0.7.2 and newer.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 26 Apr 2017 07:02:30 +0000</pubDate>
        </item>
        <item>
            <title>live_shipping_rates_with_fixed_rate_fall_back_for_heavy_shipments</title>
            <link>https://wiki.foxycart.com/snippets/shipping/live_shipping_rates_with_fixed_rate_fall_back_for_heavy_shipments?rev=1493190150&amp;do=diff</link>
            <description>Live shipping rates with a fixed rate fall back for heavy shipments

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 to apply to each subscription renewal. A fix is in place for versions 0.7.2 and newer.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 26 Apr 2017 07:02:30 +0000</pubDate>
        </item>
        <item>
            <title>multiple_flat_rates</title>
            <link>https://wiki.foxycart.com/snippets/shipping/multiple_flat_rates?rev=1493190150&amp;do=diff</link>
            <description>Multiple Custom Flat Rate Shipping Options

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 to apply to each subscription renewal. A fix is in place for versions 0.7.2 and newer.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 26 Apr 2017 07:02:30 +0000</pubDate>
        </item>
        <item>
            <title>remove_day_timeframe_from_usps_rates</title>
            <link>https://wiki.foxycart.com/snippets/shipping/remove_day_timeframe_from_usps_rates?rev=1493190150&amp;do=diff</link>
            <description>Remove days timeframe from USPS rates

Using version 2.0? There is a new snippet available for our latest version, available from here.

Recently USPS reworked their priority rates to make it clearer how long a given rate will take in transit. This can be confusing for customers, especially if the products you sell don't ship straight away. This snippet removes the</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 26 Apr 2017 07:02:30 +0000</pubDate>
        </item>
        <item>
            <title>restricting_countries_and_states_on_the_checkout_old</title>
            <link>https://wiki.foxycart.com/snippets/shipping/restricting_countries_and_states_on_the_checkout_old?rev=1547427311&amp;do=diff</link>
            <description>The functionality detailed on this page is for FoxyCart versions 0.7.2 and older. If you're using 1.0 or newer, please see this page.

Using version 2.0? There is native functionality that covers this snippet within the configuration section of the administration. There is also a new snippet available for our latest version,</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 14 Jan 2019 00:55:11 +0000</pubDate>
        </item>
        <item>
            <title>restricting_countries_and_states_on_the_checkout</title>
            <link>https://wiki.foxycart.com/snippets/shipping/restricting_countries_and_states_on_the_checkout?rev=1493190150&amp;do=diff</link>
            <description>The functionality detailed on this page is for FoxyCart versions 1.0 and newer. If you're using 0.7.2 or older, please see this page.

Using version 2.0? There is native functionality that covers this snippet within the configuration section of the administration. There is also a new snippet available for our latest version,</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 26 Apr 2017 07:02:30 +0000</pubDate>
        </item>
        <item>
            <title>setting_single_flat_rate_shipping_amount</title>
            <link>https://wiki.foxycart.com/snippets/shipping/setting_single_flat_rate_shipping_amount?rev=1493190150&amp;do=diff</link>
            <description>Setting a single flat rate shipping amount no matter which categories are included

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 to apply to each subscription renewal. A fix is in place for versions 0.7.2 and newer.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 26 Apr 2017 07:02:30 +0000</pubDate>
        </item>
        <item>
            <title>shipping_calculated_by_product_shipping_attibutes_in_add_to_cart</title>
            <link>https://wiki.foxycart.com/snippets/shipping/shipping_calculated_by_product_shipping_attibutes_in_add_to_cart?rev=1493190150&amp;do=diff</link>
            <description>Flat rate shipping calculated by product shipping attributes via add to cart

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 to apply to each subscription renewal. A fix is in place for versions 0.7.2 and newer.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 26 Apr 2017 07:02:30 +0000</pubDate>
        </item>
        <item>
            <title>shipping_calculation_on_cart</title>
            <link>https://wiki.foxycart.com/snippets/shipping/shipping_calculation_on_cart?rev=1493190150&amp;do=diff</link>
            <description>Shipping calculation on cart

This script is designed to let you add a live rate calculator on the cart. It's been tested in version 1.1, but could probably be ported to a lower version with a bit of tweaking. This is designed for shipping to and from the US-only. You could likely add more countries in a dropdown if you wanted international. Be sure to fill in the config values and then paste before the &lt;/body&gt; tag in the cart template.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 26 Apr 2017 07:02:30 +0000</pubDate>
        </item>
        <item>
            <title>shipping_rate_requests_on_the_cart</title>
            <link>https://wiki.foxycart.com/snippets/shipping/shipping_rate_requests_on_the_cart?rev=1493190150&amp;do=diff</link>
            <description>Shipping Rate Requests on the Cart

Shipping Rate Requests on the Cart, as a blog post.

Related Link

	*  &lt;http://webmovementllc.com/index.php/tag/foxycart-api/&gt;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 26 Apr 2017 07:02:30 +0000</pubDate>
        </item>
        <item>
            <title>start</title>
            <link>https://wiki.foxycart.com/snippets/shipping/start?rev=1493190150&amp;do=diff</link>
            <description>[Integrations]

Advanced Code Snippets with Reference to Forum Posts
not supportedyou can break thingswill not work

Shipping Snippets

 Filter by Category Filter by Versions</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 26 Apr 2017 07:02:30 +0000</pubDate>
        </item>
        <item>
            <title>tiered_flat_rate_shipping</title>
            <link>https://wiki.foxycart.com/snippets/shipping/tiered_flat_rate_shipping?rev=1493190150&amp;do=diff</link>
            <description>Tiered Flat Rate Shipping

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 to apply to each subscription renewal. A fix is in place for versions 0.7.2 and newer.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 26 Apr 2017 07:02:30 +0000</pubDate>
        </item>
    </channel>
</rss>
