What is a Template Tag

A template tag is code that instructs WP e-Commerce to “do” or “get” something. For further information visit WordPress Codex to read about Template Tags and how to use them.

Catalog of Template Tags

Template tags are used within your WP e-Commerce theme to display information dynamically or otherwise customize your store, providing the tools to make it as individual and interesting as you are. Below is a list of template tags available in WP e-Commerce, sorted by the template files in which they can be used.

Generic

Single Product (single_product.php)

Products (products_page.php)

  • wpsc_print_category_url
  • wpsc_print_category_name
  • wpsc_print_category_image
  • wpsc_print_subcategory
  • wpsc_print_category_description
  • wpsc_category_image
  • wpsc_category_name
  • wpsc_category_description
  • wpsc_category_class

Checkout (shopping_cart_page.php)

  • wpsc_cart_item_count
  • wpsc_cart_item_url
  • wpsc_cart_item_name
  • wpsc_cart_item_quantity
  • wpsc_the_cart_item_key
  • wpsc_cart_item_price
  • wpsc_coupon_amount
  • wpsc_cart_tax
  • wpsc_cart_total
  • wpsc_shipping_country_list
  • wpsc_shipping_method_name
  • wpsc_shipping_quote_html_id
  • wpsc_shipping_quote_name
  • wpsc_shipping_quote_value
  • wpsc_shipping_quote_selected_state
  • wpsc_shipping_method_internal_name
  • wpsc_cart_shipping
  • wpsc_checkout_form_name
  • wpsc_checkout_form_element_id
  • wpsc_checkout_form_field
  • wpsc_the_checkout_item_error
  • wpsc_gateway_internal_name
  • wpsc_gateway_is_checked
  • wpsc_gateway_name
  • wpsc_gateway_form_field_style
  • wpsc_gateway_form_fields

Shopping Basket widget (cart_widget.php)

[…]

Product Groups widget (category_widget.php)

[…]