WPEC Conditional Tags – Complete list

Introduction

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. For example, you might want to display a snippet of text above the series of posts, but only on the main page of your blog. With the is_home Conditional Tag, that task is made easy.

The Conditions For …

Generic

  • wpsc_page_is_selected – returns if on a WP e-Commerce Page
  • wpsc_core_is_multisite
  • wpsc_has_pages_top
  • wpsc_has_pages_bottom
  • wpsc_has_pages
  • wpsc_has_multi_adding

Products Page

  • wpsc_is_viewable_taxonomy
  • wpsc_is_in_category
  • wpsc_has_breadcrumbs

Single Product

  • wpsc_is_product
  • wpsc_is_single_product – determines if you’re viewing a Product page
  • wpsc_show_fb_like – checks whether to display Facebook Like
  • wpsc_product_has_stock – determines if stock is available for the given Product
  • wpsc_is_product_external – determines if the Product has an external link
  • wpsc_product_is_donation – determines if the Product is a donation
  • wpsc_product_on_special – determines if the Product is on special
  • wpsc_product_has_file – determines if the Product has a downloadable file
  • wpsc_product_is_customisable – determines if the Product can be customised (uploaded image)
  • wpsc_product_has_personal_text – determines if the Product can accept customised text
  • wpsc_product_has_supplied_file – …
  • wpsc_have_custom_meta – determines if the current Product has custom meta assigned
  • wpsc_show_thumbnails – determines whether to display Product thumbnails

Checkout

  • wpsc_is_checkout
  • wpsc_is_shipping_details
  • wpsc_is_noca_gateway – Depricated
  • wpsc_has_regions
  • wpsc_has_category_and_country_conflict
  • wpsc_has_noca_message – Depricated
  • wpsc_has_tnc
  • wpsc_has_purchlog_shipping

Sales

  • wpsc_is_checked_status

User Account

  • is_wpsc_profile_page
  • is_wpsc_downloads_page
  • wpsc_has_purchases
  • wpsc_has_purchases_this_month
  • wpsc_has_downloads