Author Topic: How to show shipping price in cart ?  (Read 1074 times)

netboard

  • Beginner
  • *
  • Posts: 41
How to show shipping price in cart ?
« on: June 19, 2011, 14:59:11 pm »
Hello,

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]
/* 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 = "";
}

I am using Standard Shipping Module.

Somebody can help to me ?

thanks...

collin@ntspb.com

  • Jr. Member
  • **
  • Posts: 97
    • BrinkPromo.com
Re: How to show shipping price in cart ?
« Reply #1 on: June 19, 2011, 15:21:50 pm »
are you trying to a standard shipping price for each item or do you want the shipping to be calculated by the weight of each item?

netboard

  • Beginner
  • *
  • Posts: 41
Re: How to show shipping price in cart ?
« Reply #2 on: June 19, 2011, 16:33:01 pm »
Normally I don't needt weight or item I want for order. For example client can order 3 products or one product shipping cost will be 5$ for order. I didn't find solution for this and I made it for weight.

from 0.50 kg to 10000 kg 5$
and my every product between 1 kg to 1.5 kg.

it based on weight.

thanks

netboard

  • Beginner
  • *
  • Posts: 41
Re: How to show shipping price in cart ?
« Reply #3 on: June 21, 2011, 12:32:59 pm »
Nobody has any idea how to do it ?

thanks

netboard

  • Beginner
  • *
  • Posts: 41
Re: How to show shipping price in cart ?
« Reply #4 on: June 25, 2011, 16:07:32 pm »
if somebody can make it  I am ready to pay for this work.

thanks

VirtueMart Forum

Re: How to show shipping price in cart ?
« Reply #4 on: June 25, 2011, 16:07:32 pm »