I want to show shipping price one cart but it doesn"t work for me.
There is code exist in administartor/components/virtuemart/html/basket.tpl.php like bellow;
Code: Select all
/* HANDLE SHIPPING COSTS */
if( !empty($shipping_rate_id) && !ps_checkout::noShippingMethodNecessary() ) {
$shipping = true;
$vars["weight"] = $weight_total;
$shipping_total = round( $ps_checkout->_SHIPPING->get_rate ( $vars ), 5 );
$shipping_taxrate = $ps_checkout->_SHIPPING->get_tax_rate();
// When the Shipping rate is shown including Tax
// we have to extract the Tax from the Shipping Total
if( $auth["show_price_including_tax"] == 1 ) {
$shipping_tax = round($shipping_total- ($shipping_total / (1+$shipping_taxrate)), 5);
}
else {
$shipping_tax = round($shipping_total * $shipping_taxrate, 5);
}
$shipping_total = $GLOBALS['CURRENCY']->convert( $shipping_total );
$shipping_display = $GLOBALS['CURRENCY_DISPLAY']->getFullValue($shipping_total);
}
else {
$shipping_total = $shipping_taxrate = 0;
$shipping_display = "";
}
Somebody can help to me ?
thanks...