Description
Returns the buy button of a given product.
Usage
To use into the loop:
<?php tcp_the_buy_button(); ?>
any other case:
<?php tcp_the_buy_button( $post_id, $echo ); ?>
Parameters
- (Integer) The ID of the product you’d like to display its buy button. Defaults to the current product. In this case this tag must be within The Loop.
- (Boolean) Display the buy button (true) or return it for use in PHP (false). Defaults to true.