WPEC Template Tags – Complete list

Introduction to template tags

Template tags are used within your shop’s Templates to display information dynamically or otherwise customize your shop.

WP-e-Commerce has quite a few template tags you can use to create templates for you shop. See below for a list of all template tags they are grouped by type of tag and the file their function can be found in. Each tag has its own write up with examples and directions for use. You can search for them by name or browse the template tag category for a complete list of examples and tags.

As well as template tags WP-e-Commerce also offers alot of conditional tags the Conditional Tags can be used in your Template files to change what content is displayed and how that content is displayed on a particular page depending on what conditions that page matches. You will find a list of conditional tags under the conditional tags documentation category. – If your building a new theme for your store you will need to look at these as well.

Cart Tags

Located in: wpsc-includes/cart.class.php

  • wpsc_cart_item_url();
  • wpsc_cart_item_name();
  • wpsc_cart_item_quantity();
  • wpsc_cart_item_price();
  • wpsc_the_cart_item_key();
  • wpsc_the_cart_item_count();
  • wpsc_cart_total_widget
  • wpsc_google_checkout();
  • wpsc_cart_item_image
  • wpsc_cart_single_item_price();
  • wpsc_shipping_quote_html_id();
  • wpsc_shipping_quote_name();
  • wpsc_shipping_quote_value();
  • wpsc_shipping_quote_selected_state();
  • wpsc_shipping_method_internal_name();
  • wpsc_update_shipping_single_method();
  • wpsc_update_shipping_multiple_methods();
  • wpsc_cart_shipping();
  • wpsc_coupon_amount();
  • wpsc_cart_total();

Checkout Tags

Located in: wpsc-includes/checkout.class.php

  • wpsc_the_checkout_item_error_class();
  • wpsc_display_tax_label();
  • wpsc_cart_tax();
  • wpsc_the_checkout_details_class();
  • wpsc_checkout_form_name();
  • wpsc_checkout_form_element_id();
  • wpsc_checkout_form_name();
  • wpsc_checkout_form_field();
  • wpsc_the_checkout_item_error();
  • wpsc_gateway_internal_name();
  • wpsc_gateway_name();
  • wpsc_gateway_is_checked();
  • wpsc_gateway_image_url();
  • wpsc_gateway_form_fields();
  • wpsc_gateway_form_field_style();

Product Category Tags

Located in: wpsc-includes/category.functions.php

  • wpsc_parent_category_image();
  • wpsc_start_category_query();
  • wpsc_end_category_query();
  • wpsc_print_category_url();
  • wpsc_print_category_name();
  • wpsc_print_category_image();
  • wpsc_print_subcategory();
  • wpsc_print_category_classes();
  • wpsc_print_category_id();
  • wpsc_print_category_classes_section();
  • wpsc_print_category_description();
  • wpsc_category_image();
  • wpsc_category_name();
  • wpsc_category_description();

Product Tags

Located in: wpsc-includes/product-template.php

  • wpsc_the_product_id();
  • wpsc_the_product_thumbnail();
  • wpsc_the_product_permalink();
  • wpsc_the_product_title();
  • wpsc_the_product_description();
  • wpsc_product_normal_price();
  • wpsc_the_product_price();
  • wpsc_product_postage_and_packaging();
  • wpsc_the_product_image();
  • wpsc_the_product_additional_description();
  • wpsc_product_external_link();
  • wpsc_product_external_link_target();
  • wpsc_product_external_link_text();
  • wpsc_the_sticky_image();
  • wpsc_display_product_multicurrency();
  • wpsc_custom_meta_name();
  • wpsc_custom_meta_value();
  • wpsc_product_comments();

Variation Tags

Located in: wpsc-includes/product-template.php

  • wpsc_vargrp_form_id();
  • wpsc_the_vargrp_name();
  • wpsc_vargrp_id();
  • wpsc_the_variation_id();
  • wpsc_the_variation_out_of_stock();
  • wpsc_the_variation_name();

User Log Tags

Located in: wpsc-theme/wpsc-user_log_functions.php

  • validate_form_data();
  • wpsc_display_form_fields();
  • wpsc_user_details();

Misc / Processing Tags

  • wpsc_output_breadcrumbs();
  • wpsc_pagination();
  • wpsc_this_page_url();
  • wpsc_buy_now_button();
  • gold_shpcrt_display_gallery();
  • wpsc_calculate_price();
  • wpsc_currency_display();
  • wpsc_you_save();
  • wpsc_loading_animation_url();
  • wpsc_product_rater();
  • wpsc_shipping_country_list();