Example of a summary cart summary section for merchant store pages

Sample JSON code for adding a cart summary to your pages


Sample code for adding a cart summary to your pages and also how to add the "sendtourl" redirect parameter as a
hidden input field of the buy form HTML code in order to keep the customer on your page until they are ready to checkout.

| cart total:
Example Source:

Cart Summary using the CSS enabled versions of the javascript links:
| |
Example Source:

The CSS styling in the head section of the page source:

The summary in page:


Example "Add to Cart" using the buy form code:

This is the standard "buy form" code located in the links pages of your items. The default behavior of this code it to take the customer to the shopping cart.

Buy UltraCart Bones

Qty
Cost
Example Source:

Another example "Add to Cart":

This form has a hidden input field to redirect the customer back to the store instead of staying in the cart.

Buy UltraCart Bones

Qty
Cost
Example Source:


Return to "Advanced Links - Javascript" solution doc

Last edited 10:44 AM 9/25/2013

Ecommerce powered by UltraCart