1. Home
  2. Core Plugin
  3. Core Shortcodes

Core Shortcodes

Checkout Page

Shortcode: [wpinv_checkout]

This shortcode is used to show the checkout page, you must also set the page under WPI > Settings > General > Page Settings > Checkout Page.

Parameters:
  • none

Example:

[wpinv_checkout]

Invoice History

Shortcode: [wpinv_history]

This shortcode is used to show the invoice history page, you must also set the page under WPI > Settings > General > Page Settings > Invoice History Page.

Parameters:
  • none

Example:

[wpinv_history]

Success Page

Shortcode: [wpinv_receipt]

This is the page buyers are sent to after completing their payments, you must also set the page under WPI > Settings > General > Page Settings > Success Page.

Parameters:
  • none

Example:

[wpinv_receipt]

Buy button

Shortcode: [wpinv_buy]

Parameters:

  • items – Used like: item_id, or if quantity needed: item_id|quantity  or multiple items like: item_id|quantity,item_id|quantity
  • label – The button label, if blank will be ‘Buy Now’.
  • post_id – Not required, used by third party addons.

Example:

[wpinv_buy items=123]
[wpinv_buy items=123 label="Buy Me"]
[wpinv_buy items="123|2"]
[wpinv_buy items="123|2" label="Buy Me"]
Was this helpful to you? Yes 2 No