With the dlm_buy
shortcode you can display a buy/purchase button on your website. By adding attributes to your shortcode, you can control what product is used on how the button is displayed.
Arguments
This shortcode takes the following arguments:
id | The product ID which you want to display. You can find this from the products page in admin. |
template | The template used to output the download. Leave blank to use the default add-to-cart.php template. |
The template argument in this shortcode uses content templates.
Examples
Here are some examples of what shortcodes are used and a screenshot of how this looks.
Default Template
[dlm_buy id="8"]

Box Template
[dlm_buy id="8" template="box"]
