Docs/WordPress
SPICEPAY DEVELOPER DOCS

Shortcodes

Shortcodes place catalog, cart and checkout surfaces inside ordinary WordPress pages.

How it works

Shortcodes place catalog, cart and checkout surfaces inside ordinary WordPress pages. Use the ones supported by the installed SpicePay package.

Implementation

The supplied plugin documents [spicepay_products], [spicepay_product], [spicepay_categories], [spicepay_cart], [spicepay_checkout] and [spicepay_complete]. Add the appropriate shortcode to a page and connect your menu to the store and cart pages. Product-specific attributes follow the installed release. Do not substitute browser-side product prices for the server catalog. Exclude cart, checkout and order-complete pages from page caching.

In this area

  • Product pages
  • Product grid
  • Single product
  • Category index
  • Category hero
  • Cart and checkout
  • Cart
  • Checkout
  • After payment
  • Order complete

Page examples

text
[spicepay_products]
[spicepay_product]
[spicepay_categories]
[spicepay_cart]
[spicepay_checkout]
[spicepay_complete]