<?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:misc_cart_and_checkout</title>
        <description></description>
        <link>https://wiki.foxycart.com/</link>
        <lastBuildDate>Mon, 20 Apr 2026 22:36:26 +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>creating_add_to_cart_link_from_existing_cart_session</title>
            <link>https://wiki.foxycart.com/snippets/misc_cart_and_checkout/creating_add_to_cart_link_from_existing_cart_session?rev=1493190150&amp;do=diff</link>
            <description>Create an Add To Cart link based on an existing cart session

Currently FoxyCart doesn't have a built in method for passing sessions between customers - this script can allow you to setup a function which creates a single add to cart link based on the current cart contents. This script takes the current cart contents, loops through it all, and creates an add to cart link. This is only part of the puzzle - you'll need to work out how this integrates into your setup.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 26 Apr 2017 07:02:30 +0000</pubDate>
        </item>
        <item>
            <title>product_bundles_addons</title>
            <link>https://wiki.foxycart.com/snippets/misc_cart_and_checkout/product_bundles_addons?rev=1493190150&amp;do=diff</link>
            <description>Product bundling

Product Bundles/Addons

Packaged, bundled or addon products can be a great way to create special product offers or include required fees or costs with a purchase. This is especially useful when a customer is adding a subscription to a service that requires a once off setup fee to also be purchased at the same time. Or if a free product is being given to customers, but only if certain products are purchased at the same time. By utilising the following script, these scenarios are…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 26 Apr 2017 07:02:30 +0000</pubDate>
        </item>
        <item>
            <title>product_images_in_the_cart</title>
            <link>https://wiki.foxycart.com/snippets/misc_cart_and_checkout/product_images_in_the_cart?rev=1493190150&amp;do=diff</link>
            <description>Product images in the cart

This is OBSOLETED
Product thumbnail images in the cart have been supported as of FoxyCart v0.7.0. Unless you're updating a very, very old store (in which case we strongly recommend upgrading anyway), you won't need this page at all.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 26 Apr 2017 07:02:30 +0000</pubDate>
        </item>
        <item>
            <title>product_upselling</title>
            <link>https://wiki.foxycart.com/snippets/misc_cart_and_checkout/product_upselling?rev=1493190150&amp;do=diff</link>
            <description>Product Upselling on the cart/checkout

There are a lot of different ways to approach upselling on the cart or checkout, but the following provides a basic way to achieve this on both the cart and checkout with the same script. The idea is pretty simple: Have an add to cart link or form that redirects the customer straight back to where they were (cart or checkout) through the add to cart action. This script adds in some niceties to help anyone set this up.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 26 Apr 2017 07:02:30 +0000</pubDate>
        </item>
        <item>
            <title>removing_paypal_from_the_cart</title>
            <link>https://wiki.foxycart.com/snippets/misc_cart_and_checkout/removing_paypal_from_the_cart?rev=1493190150&amp;do=diff</link>
            <description>Removing PayPal from the Cart to force customers to FC checkout first

Basically what you'll be doing is altering the cart template in the FoxyCart administration to hide the Paypal checkout link. You can do this by either using CSS and setting the paypal element to display:none; or using javascript to .hide(); that element. This will ensure people are funneled through the FoxyCart checkout before heading to PayPal.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 26 Apr 2017 07:02:30 +0000</pubDate>
        </item>
        <item>
            <title>reverse_cart_items</title>
            <link>https://wiki.foxycart.com/snippets/misc_cart_and_checkout/reverse_cart_items?rev=1493190150&amp;do=diff</link>
            <description>If you want to reverse the order of the items in the cart so that recently added items show at the top, you can do this with a little bit of jQuery. Add the following code to your cart, checkout, and receipt templates.


&lt;script type=&quot;text/javascript&quot;&gt;
 
(function($) {
$.fn.reverseOrder = function() {
	return this.each(function() {
		$(this).prependTo( $(this).parent() );
	});
};
})(jQuery);
 
$(function(){
$('table#fc_cart_table tr.fc_cart_item').reverseOrder();  
});
 
&lt;/script&gt;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 26 Apr 2017 07:02:30 +0000</pubDate>
        </item>
        <item>
            <title>showing_the_mini_cart</title>
            <link>https://wiki.foxycart.com/snippets/misc_cart_and_checkout/showing_the_mini_cart?rev=1493190150&amp;do=diff</link>
            <description>Showing the &quot;minicart&quot; on cart and checkout

Try sticking this above your &lt;/body&gt; or towards the end of your page :


&lt;script type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;
	function fc_CurrencyFormatted(amount) {
		var i = parseFloat(amount);
		if(isNaN(i)) { i = 0.00; }
		var minus = &quot;&quot;;
		if(i &lt; 0) { minus = &quot;-&quot;; }
		i = Math.abs(i);
		i = parseInt((i + .005) * 100);
		i = i / 100;
		s = new String(i);
		if(s.indexOf(&quot;.&quot;) &lt; 0) { s += &quot;.00&quot;; }
		if(s.indexOf(&quot;.&quot;) == (s.length - 2)) { s += &quot;0&quot;; }
		s …</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 26 Apr 2017 07:02:30 +0000</pubDate>
        </item>
    </channel>
</rss>
