Filter: tcp shopping cart get total for shipping

Description

“tcp_shopping_cart_get_total_for_shipping” allows to alter the total amount to calculate the shipping cost.

Parameters

$total
(Float) Current total amount to calculate the shipping cost.

Example

Changing the total amount

<?php
function my_tcp_shopping_cart_get_total_for_shipping( $total ) {
	return $total / 2;
}
add_filter( 'tcp_shopping_cart_get_total_for_shipping', 'my_tcp_shopping_cart_get_total_for_shipping' ); ?>

Change Log

Since 1.4.1