Javascript Shopping Cartfor Google Checkout
You then put "Add to Cart" buttons on your product pages. The button sends all the information to the cart in the form of an encoded link. This link contains all of the product information the cart needs to compute the order.
Users can add products to their cart, adjust quantities, and then proceed to Google Checkout for payment processing. To see it in action, visit our Widget Store Demo Site.
You will need to configure your account to allow unsigned carts. Unsigned carts are not tamper-proof, so you will need to make sure that the prices are correct before you ship the order. Uncheck the checkbox on the Settings -> Integration Page labeled "My company will only post digitally signed carts." We wish there were a way to use Javascript to sign carts, but doing so would mean sending your secret key to your customer's browser, which would be surely be intercepted.
When you have successfully set up your Google Checkout account, enter your Google merchant ID here.
You can control the appearance of the cart to match your site's theme. Download a Sample CSS File that you can customize and include in your stylesheets.
You can optionally specify advanced cookie parametes. In most cases, leaving these settings blank is the correct thing to do. Cookie Path defaults to the directory holding the cart.
The SKU is your partnumber for the product. It is required, so make something up if you don't have partnumbers. Name and Price should be obvious.
The cart will link back to the product page if you supply a path below. As with any other link, you can choose to use the entire "http://...." URL or just a partial, relative path. In general, relative paths are preferred. The path will need to be sufficient to send the user from the cart page to the product page.
Use the Product Shipping Fee to specify shipping charges for the product. This fee will be multiplied by the quantity the user purchases. Entering a zero for your Product Shipping Fee means that adding this product does not increase the total shipping charges. A blank Product Shipping Fee will result in free shipping, unless another product is in the cart which has a Product Shipping Fee. The difference between blank and zero only matters if you have a Base Shipping Fee above.
If you want, you can create a pull-down option list for your product. This is useful for clothing that comes in different styles or colors. You specify the name of the option and enter the list of values for the selection list, one per line.
Congratulations! You've successfuly created an "Add to Cart" button. Repeat the steps above for each product in your store.