Shortcodes

Introduction

A shortcode is a WordPress-specific code that lets you do nifty things with very little effort. Shortcodes can embed files or create objects that would normally require lots of complicated, ugly code in just one line. Shortcode = shortcut.

Pages

The [productspage] shortcode displays a complete list of Products, the presentation and filtering of Products is managed within the Settings > Store > Presentation tab of the WordPress Administration.

This shortcode is a required shortcode within WP e-Commerce as it is responsible for driving the Products Page, Product Category and Single Product templates.

The [shoppingcart] shortcode displays the Checkout page, site visitors manage the contents of their shopping basket and finalise their purchase.

This shortcode is a required shortcode within WP e-Commerce as it is responsible for driving the Checkout template.

The [transactionresults] shortcode displays the Transaction Results page, site visitors are notified of the status of their Sale as well as purchase summary.

This shortcode is a required shortcode within WP e-Commerce as it is responsible for driving the Transaction Results template.

The [userlog] shortcode displays the My Account page, logged-in site visitors can view existing Sales, update their Checkout details and download electronic purchases.

This shortcode is a required shortcode within WP e-Commerce as it is responsible for driving the My Account template.

Products

  • [wpsc_products product_id='379'] – displays the product with teh ID or 379
  • [buy_now_button product_id='188'] – Displays a PayPal buy now button for the prdouct with the id of 188
  • [add_to_cart=379] – Display an add to cart button for the product with the ID of 379