Shopping Cart Page Template:
Tax and Shipping

There is only one custom template tag to produce the tax and shipping selections on the Shopping Cart Page. However, the resulting display can have many different forms, depending on options chosen by the merchant. For example, the tax can be selected from a drop-down list, or calculated automatically when the customer enters a ZIP code in a text entry box. Likewise, shipping choices can be displayed as a drop-down list or as a set of radio buttons. Some shipping methods also display a country selection list that appears next to the ZIP code box.

As the template designer, you cannot control which of these options are chosen by the merchant, but you don't have to worry about it. The [-- SC_Tax_Shipping --] tag produces an HTML table containing whatever fields and formats are required by the merchant's choices. Your template just needs to allow for the HTML table.

  • You can display a "Tax/Shipping" button by adding the Button attribute, like this: [-- SC_Tax_Shipping Button --]. Customers can click the button to recalculate tax and shipping charges. It performs the same function as the "Recalculate" button, but it has a different label.
  • You can have more control over the location of the button by using the standalone [-- BUTTON TaxShipping --] tag.
Resulting Page

Tax and Shipping CSS

Here is a list of the CSS selectors used in the tax and shipping display.

table.taxnship The table containing the tax and shipping choices if the merchant has configured user-selected tax. If the merchant configured ZIP/Postal code-based tax, this table only contains the shipping selections.
table.zipncountry The table containing the ZIP code text entry box and the country drop-down list or text entry box.
td.taxnship_hdr The cell that contains "Choose a shipping option" when shipping options are displayed as radio buttons.
td.taxnship Cells containing the tax and shipping selection fields
select.taxnship Select list of tax options for user-selected tax.
select.ship Select list of shipping options.
td.zipncountry_txt Cell containing the label before a text entry box, such as "Ship to Zip/Postal Code"
td.zipncountry Cell containing a text entry box for either ZIP/Postal Code or country.
select.addr Select list for country.
input.button153 The "Tax/Shipping button.

This example is the same as the one above, plus it includes a brief style sheet with selectors for some of the tax and shipping elements.

Next: SC Surcharges