LaunchFlows Shortcode Reference Guide
The LaunchFlows shortcode reference guide provides detailed information about each shortcode available in the LaunchFlows plugin for WordPress.
Table of Contents
- Checkout Page Shortcodes
- lf-account
- lf-additional
- lf-always-in
- lf-autoclick
- lf-billing
- lf-bump
- lf-cart-discount
- lf-checkout-button
- lf-donate
- lf-donation
- lf-emptycart
- lf-first-product-image
- lf-hide-related
- lf-hide-wc-tabs
- lf-last-order
- lf-login
- lf-loyalty
- lf-notes
- lf-notices
- lf-payment
- lf-payment-methods
- lf-product-link
- lf-remove-product
- lf-review
- lf-return-checkout
- lf-save-stripe-cc
- lf-save-square-cc
- lf-scroll-to-checkout
- lf-shipping
- lf-subtotal
- lf-tax-total
- lf-terms
- lf-thank-you
- lf-total
- lf-total-shipping
- lf-user-avatar
- lf-wccoupon
- lf-upsell
- Product Page Shortcodes
- lf-product-breadcrumb
- lf-product-add-to-cart
- lf-product-description
- lf-product-firstpayment
- lf-product-images
- lf-product-meta
- lf-product-price
- lf-product-related
- lf-product-tabs
- lf-product-title
- lf-product-rating
- lf-product-shortdesc
- lf-product-summary
- lf-product-upsells
- lf-product-reviews
- lf-product-additional
- lf-product-notices
- lf-product-custom-content
- lf-product-gallery
- Kadence Theme Shortcodes
- Other Shortcodes
lf-account
Description: Displays the account creation fields on the checkout page, allowing customers to create an account during checkout.
Usage:
[lf-account]
lf-additional
Description: Displays the additional information fields (order notes) on the checkout page.
Usage:
[lf-additional]
lf-always-in
Description: Automatically adds a specified product to the cart and displays it on the checkout page. The product remains in the cart whenever this shortcode is used.
Parameters:
product
(required): The ID of the product to include.icon
(optional): Display an icon. Default isyes
.image
(optional): Display the product image. Default isyes
.title
(optional): Display the product title. Default isyes
.price
(optional): Display the product price. Default isyes
.shortdesc
(optional): Display the product short description. Default isyes
.
Usage:
[lf-always-in product="123"]
Example:
[lf-always-in product="123" image="no" price="no"]
lf-autoclick
Description: Automatically clicks the “Place Order” button on the checkout page after a delay, simulating an automatic checkout process.
Usage:
[lf-autoclick]
lf-billing
Description: Displays the billing fields on the checkout page.
Usage:
[lf-billing]
lf-bump
Description: Displays an order bump on the checkout page, allowing customers to add an additional product to their order via a checkbox.
Parameters:
product
(required): The ID of the product to offer as an order bump.style
(optional): The style of the checkbox.image
(optional): Display the product image. Default isyes
.title
(optional): Display the product title. Default isyes
.price
(optional): Display the product price. Default isyes
.shortdesc
(optional): Display the product short description. Default isyes
.
Usage:
[lf-bump product="456"]
Example:
[lf-bump product="456" style="custom-style" image="no"]
lf-cart-discount
Description: Displays any cart discounts applied to the order.
Usage:
[lf-cart-discount]
Description: Customizes the checkout button on the checkout page.
Usage:
[lf-checkout-button]
lf-donate
Description: Creates a donation form where customers can enter a custom amount to donate.
Parameters:
product
(required): The ID of the product representing the donation.button
(optional): Text for the submit button. Default is “Click To Update”.field
(optional): Placeholder text for the donation amount field. Default is “Donation Amount”.
Usage:
[lf-donate product="789"]
Example:
[lf-donate product="789" button="Donate Now" field="Enter Amount"]
lf-donation
Description: Provides an alternate donation form, possibly intended for use with specific page builders like Elementor.
Usage:
[lf-donation]
lf-emptycart
Description: Displays a button that allows customers to empty their cart.
Usage:
[lf-emptycart]
lf-first-product-image
Description: Displays the image of the first product in the cart.
Usage:
[lf-first-product-image]
Description: Hides the related products section on product pages.
Usage:
[lf-hide-related]
lf-hide-wc-tabs
Description: Hides the WooCommerce product tabs (Description, Reviews, etc.) on product pages.
Usage:
[lf-hide-wc-tabs]
lf-last-order
Description: Displays information about the customer’s last order.
Parameters:
details
(optional): Show order details. Default isyes
.image
(optional): Show product images. Default isyes
.imagesize
(optional): Image size in pixels. Default is100
.name
(optional): Show product names. Default isyes
.quantity
(optional): Show quantities. Default isyes
.price
(optional): Show prices. Default isyes
.note
(optional): Show purchase notes. Default isyes
.desc
(optional): Show product descriptions. Default isyes
.shortdesc
(optional): Show short descriptions. Default isyes
.total
(optional): Show order total. Default isyes
.dividers
(optional): Show dividers between items. Default isyes
.
Usage:
[lf-last-order]
Example:
[lf-last-order image="no" total="no"]
lf-login
Description: Displays the login form on the checkout page.
Usage:
[lf-login]
lf-loyalty
Description: Displays a custom message to loyal customers who have completed a specified number of orders.
Usage:
[lf-loyalty]
lf-notes
Description: Displays the order notes field on the checkout page.
Usage:
[lf-notes]
lf-notices
Description: Displays WooCommerce notices and cart errors on the checkout page.
Usage:
[lf-notices]
lf-payment
Description: Displays the payment methods on the checkout page.
Usage:
[lf-payment]
lf-payment-methods
Description: Forces payment methods to display even for free checkouts.
Usage:
[lf-payment-methods]
lf-product-link
Description: Outputs the checkout link URL for the current product.
Usage:
[lf-product-link]
lf-remove-product
Description: Removes a specified product from the cart.
Parameters:
id
(required): The ID of the product to remove.
Usage:
[lf-remove-product id="123"]
lf-review
Description: Displays the order review section on the checkout page.
Parameters:
remove
(optional): Show the remove product option. Default isyes
.image
(optional): Show product images. Default isyes
.height
(optional): Image height in pixels. Default is40
.width
(optional): Image width in pixels. Default is40
.name
(optional): Show product names. Default isyes
.quantity
(optional): Show quantities. Default isyes
.
Usage:
[lf-review]
Example:
[lf-review image="no" remove="no"]
lf-return-checkout
Description: Returns to the checkout page after reloading, useful after an order bump or upsell.
Usage:
[lf-return-checkout]
lf-save-stripe-cc
Description: Saves the customer’s credit card information when using Stripe and hides the option to not save it.
Usage:
[lf-save-stripe-cc]
lf-save-square-cc
Description: Saves the customer’s credit card information when using Square and hides the option to not save it.
Usage:
[lf-save-square-cc]
lf-scroll-to-checkout
Description: Creates a link or button that scrolls the page to the checkout section.
Parameters:
style
(optional): CSS class or style to apply.
Usage:
[lf-scroll-to-checkout]
Example:
[lf-scroll-to-checkout style="button-class"]
lf-shipping
Description: Displays the shipping fields on the checkout page.
Usage:
[lf-shipping]
lf-subtotal
Description: Displays the order subtotal on the checkout page.
Usage:
[lf-subtotal]
lf-tax-total
Description: Displays the total tax amount on the checkout page.
Usage:
[lf-tax-total]
lf-terms
Description: Displays the terms and conditions checkbox and text on the checkout page.
Usage:
[lf-terms]
lf-thank-you
Description: An alias of [lf-last-order]
, displays information about the customer’s last order.
Usage:
[lf-thank-you]
lf-total
Description: Displays the order total on the checkout page.
Usage:
[lf-total]
lf-total-shipping
Description: Displays the total shipping amount on the checkout page.
Usage:
[lf-total-shipping]
lf-user-avatar
Description: Displays the avatar of the currently logged-in user.
Usage:
[lf-user-avatar]
lf-wccoupon
Description: Displays the coupon code field on the checkout page.
Parameters:
closed
(optional): Whether to display the coupon form closed or open. Default isyes
.
Usage:
[lf-wccoupon]
Example:
[lf-wccoupon closed="no"]
lf-upsell
Description: Displays an upsell offer on the checkout page.
Parameters:
product
(required): The ID of the upsell product.next
(optional): The ID of the next page to redirect to if the customer declines the upsell.accept
(optional): Text for the accept button. Default is “YES, I WANT IT!”.accept_tags
(optional): Tags to apply when the offer is accepted.decline
(optional): Text for the decline link. Default is “No Thanks, I’ll pass.”.decline_tags
(optional): Tags to apply when the offer is declined.image
(optional): Display the product image. Default isyes
.title
(optional): Display the product title. Default isyes
.price
(optional): Display the product price. Default isyes
.
Usage:
[lf-upsell product="321"]
Example:
[lf-upsell product="321" accept="Add to Order" decline="No, thanks" image="no"]
Product Page Shortcodes
Description: Displays the product breadcrumbs.
Usage:
[lf-product-breadcrumb]
lf-product-add-to-cart
Description: Displays the add to cart button/form for the product.
Usage:
[lf-product-add-to-cart]
lf-product-description
Description: Displays the product’s full description.
Usage:
[lf-product-description]
lf-product-firstpayment
Description: Displays information about the first payment, useful for subscription products.
Usage:
[lf-product-firstpayment]
lf-product-images
Description: Displays the product’s images or gallery.
Usage:
[lf-product-images]
lf-product-meta
Description: Displays the product’s meta information (e.g., SKU, categories, tags).
Usage:
[lf-product-meta]
lf-product-price
Description: Displays the product’s price.
Usage:
[lf-product-price]
Description: Displays related products.
Usage:
[lf-product-related]
lf-product-tabs
Description: Displays the product’s tabs (Description, Reviews, etc.).
Usage:
[lf-product-tabs]
lf-product-title
Description: Displays the product’s title.
Usage:
[lf-product-title]
lf-product-rating
Description: Displays the product’s rating.
Usage:
[lf-product-rating]
lf-product-shortdesc
Description: Displays the product’s short description.
Usage:
[lf-product-shortdesc]
lf-product-summary
Description: Displays the product’s summary.
Usage:
[lf-product-summary]
lf-product-upsells
Description: Displays the product’s upsell products.
Usage:
[lf-product-upsells]
lf-product-reviews
Description: Displays the product’s reviews.
Usage:
[lf-product-reviews]
lf-product-additional
Description: Displays the product’s additional information.
Usage:
[lf-product-additional]
lf-product-notices
Description: Displays any notices related to the product.
Usage:
[lf-product-notices]
lf-product-custom-content
Description: Displays custom content for the product.
Usage:
[lf-product-custom-content]
lf-product-gallery
Description: Displays the product’s gallery.
Usage:
[lf-product-gallery]
Kadence Theme Shortcodes
lf-product-extras
Description: Displays extra product content, specific to the Kadence theme.
Usage:
[lf-product-extras]
lf-product-payments
Description: Displays product payment options, specific to the Kadence theme.
Usage:
[lf-product-payments]
Description: Displays product breadcrumbs, specific to the Kadence theme.
Usage:
[lf-product-breadcrumbs]
Other Shortcodes
Description: Relocates PayPal payment buttons on the checkout page.
Usage:
[lf-paypal-buttons]
lf-checkout-form-start
Description: Generates the start of the checkout form, used for custom theme or page builder integration.
Usage:
[lf-checkout-form-start]
lf-checkout-form-end
Description: Generates the end of the checkout form.
Usage:
[lf-checkout-form-end]
lf-checkout-form
Description: Generates the full checkout form, for use on product pages or custom layouts.
Usage:
[lf-checkout-form]
lf-redirect
Description: Redirects the user to a specified URL after a specified delay.
Parameters:
url
(required): The URL to redirect to.sec
(optional): The number of seconds to wait before redirecting. Default is0
.
Usage:
[lf-redirect url="https://example.com" sec="5"]
lf-registration
Description: Displays a registration form for users to create an account.
Usage:
[lf-registration]
lf-dynamic
Description: Executes a dynamic WordPress action hook.
Parameters:
hook
(required): The name of the hook to execute.
Usage:
[lf-dynamic hook="custom_hook_name"]
lf-scripts
Description: Forces LaunchFlows scripts to load on the page.
Usage:
[lf-scripts]
Notes
- Ensure Valid Product IDs: When using shortcodes that require a product ID, make sure the ID corresponds to an existing product in your WooCommerce store.
- Theme Compatibility: Some shortcodes may require specific themes or plugins (e.g., Kadence theme) to function correctly.
- Testing: Always test shortcodes on a staging site before deploying them to your live site to ensure they work as expected.
- Usage in Content: Shortcodes can be used within posts, pages, and widgets that accept shortcodes.
- Customization: For advanced customization, consider combining these shortcodes with page builders or custom templates.