Function: tcp the add to cart button

Description

“tcp_the_add_to_cart_button” allows to display the buy “button” in the “buy button” area.

Usage

<?php tcp_the_add_to_cart_button( $post_id, $title, $echo ); ?>

Parameters

$post_id 
(Numeric) Identifier of the Post ID of the Product associated with this unit field.
$title
(Text) Title of the button. The Default value is “Add to cart”
$echo
(Boolean) Displays the html containing the unit field or returns the html. The default value is true (display).

Examples

Change Log

Since 1.1.9
Since 1.2.0: parameter title

Related

tcp_the_add_to_cart_unit_field