Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

how get the shippment total at the checkout? 
 
tubadc
Sr. Member
 
Total Posts:  95
Joined:  2008-05-07
Floripa | BR
 

im trying to get the shippment with this…

$shipping = sprintf(’%.2f’, $this->getQuote()->getShippingAddress()->getBaseShippingAmount());

but its not returning the right ammount....

how can i get it to send it to paymment gateway?

plz help me…

 
Magento Community Magento Community
Magento Community
Magento Community
 
alkarim
Guru
 
Total Posts:  368
Joined:  2008-04-10
 

hi @tubadc,

what do you intend to get ? shipping rate ?
and what do you expected to get ? and what do you select at backend at shipping configuration method ?

 
Magento Community Magento Community
Magento Community
Magento Community
 
tubadc
Sr. Member
 
Total Posts:  95
Joined:  2008-05-07
Floripa | BR
 

Hi tks for help…

I want to get the shipping rate, for send it to my paymment gateway.

Im creating a paymment module based in paypal standard, but the shippment dosent pass right ....like…

I fixed the shippment in Flat Rate at $10 and add just 1 item to cart the total shippment sent to gateway will be $10

But if i add 2 products the total shippment becomes $20.... and i want it stay at $10 bucks....

all the time the system sum the total shippments because the multiple array…

$shipping = sprintf(’%.2f’, $this->getQuote()->getShippingAddress()->getBaseShippingAmount());
$shipping=number_format($shipping,2,”,”,".");
$shipping=str_replace(”.","”,$shipping);
$shipping=str_replace(”,","”,$shipping);
if ($shipping>0) {
if ($transaciton_type==’I’) {
$sArr = array_merge($sArr, array(
‘item_frete_1’ => $shipping,
));
} else {
$sArr = array_merge($sArr, array(

‘item_frete_1’ => $shipping,
));
$i++;
}
}

how can i fixed it…

 
Magento Community Magento Community
Magento Community
Magento Community
 
tubadc
Sr. Member
 
Total Posts:  95
Joined:  2008-05-07
Floripa | BR
 

someone.... im stucked here.... and i think at paypal th shipp is not right too… i think its going one time for each product… but i dont know if paypal sum all ships sended like my gateway....

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top