Skip to content

Developer reference

Shortcodes and template placement

Place the configurator, main description, starting price, artwork shell and Quick Order once.

PressFlow 3.0.0 · 2 min read

Guide source reviewed for PressFlow 2.0.5.

Supported shop shortcodes

ShortcodePurpose
[pressflow_configurator product_id="123"]Render the selected managed product's configuration form.
[pressflow_configurator product_id="123" show_description="no"]Render configuration when your template owns the product description.
[pressflow_product_content product_id="123"]Render the product's main description in a deliberate template location.
[pressflow_from_price product_id="123"]Render the complete starting block with valid specification and job/copy context.
[pressflow_quick_order]Render the configured Quick Order workspace. Enable it and choose the eligible catalogue first.
[pressflow_artwork]Supply the existing cart/checkout artwork shell when a custom template does not run its normal hooks. It is session/job aware, not a public file gallery.

Replace 123 with a permitted product ID. On a product template, supported product shortcodes can use the current product. A shortcode does not bypass company access, disabled features, missing configuration, expired licences or job authorisation.

Avoid duplicate content and nested forms

Use one configuration form and one main description. Do not insert a product's configurator or content shortcode inside that same product description. The default main description follows the configurator; choose theme/template placement when your builder owns it. Keep artwork dialog forms outside checkout/payment forms.

The normal WooCommerce product editor remains the place for descriptions, images, categories, shipping and taxes. Choosing Gutenberg, Elementor or WPBakery in PressFlow does not install a builder or guarantee compatibility with every theme template. Test the supported product editor and its single-product layout.

Template helper

<?php
if (function_exists('pressflow_from_price')) {
    pressflow_from_price(123, 'custom');
}

The helper echoes the full block. The lower-level PFW_From_Price::html() returns HTML for a permitted managed product; it is version-bound. Do not render either alongside an already placed starting block.

The vendor-only Licence Manager has a separate [pressflow_releases] shortcode for the PressFlow marketing site's release history. It is not a customer-shop shortcode supplied by Web2Print.

Example files

Reference examples for adapting to your shop. PHP examples are not plugin installers; review the guide and replace sample IDs before using them.

Need a hand?

Contact the PressFlow team with details of what you are trying to do.