$.mynamespace = {};
$(document).plum('shop', {

	// Callback function when the cart is emptied
	emptycart: function () {
		return confirm(
			'Are you sure you want to empty your shopping cart? ' +
			'Click "OK" to confirm.'
		);
	},
	
	shipping: function () {
		if(this.id == 'starter-nat-001') return 12.50;

		if(this.id == 'starter-nat-002') return 12.50;
		
		if(this.id == 'yogurt-tri-001') return 13.50 + (this.quantity);
		
		if(this.id == 'yogurt-plush-001') return 5.50 + (this.quantity);
		if(this.id == 'yogurt-plush-002') return 5.50 + (this.quantity);
	},

	// List of discount codes.
	discountcodes: {
			},

	// The HTML structure of the cart display.
	cartitem: '<span class="thumbnail"><img src="{thumb}"></span>'
		+ '<span class="cart-title"><span>{title} {weight}</span>'
		+ '<span class="description">{description}</span></span>'
		+ '<input class="quantity" value="{quantity}">'
		+ '<span class="price">{pricesingle}</span>'
		+ '<span class="price">{pricetotal}</span>',

	// The custom checkout method can process transactions in any way. When it
	// returns true (i.e., checkout was successfully completed), the cart is
	// emptied.
	checkout: function () {
		alert('Purchasing ' + this.quantity + ' items for a total of ' + this.total);
		return true;
	},

	taxcountry: '',
	taxexempt: 0,
	taxrate: 0,
	shippingexempt: 0,
	shippingrate: 12.50,
	shippingtype: 'custom',
	googlemerchant: '209997096881809',
	paypaluser: 'info',
	paypaldomain: 'findbgfood.com'
});
