Function: tcp get the weight

Description

Returns the weight of the given product or the current product. In the last case this tag must be within The Loop.

Usage

<?php echo tcp_get_the_weight( $post_id );
echo tcp_get_the_weight();
echo tcp_get_the_weight( get_the_ID() );
 ?>

Parameters

$post_id 
(Integer) The ID of the product you’d like to returns its weight. Defaults to the current product. In this case this tag must be within The Loop.

Examples

Related

tcp_the_weight | tcp_the_weight_label