Skip to content

Commit

Permalink
Correção tarifa de pacote
Browse files Browse the repository at this point in the history
Issue #9
  • Loading branch information
luizwbr committed Dec 28, 2017
1 parent bc8b895 commit 239f6bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions correios_virtuemartbrasil.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function plgVmConfirmedOrder(VirtueMartCart $cart, $order) {
$values['order_weight'] = $this->getOrderWeight($cart, $method->weight_unit);
$values['shipment_weight_unit'] = $method->weight_unit;
$values['shipment_cost'] = $this->total;
$values['shipment_package_fee'] = $method->Handling_Fee_SN;
$values['shipment_package_fee'] = (isset($method->Handling_Fee_SN)?$method->Handling_Fee_SN:0
$values['tax_id'] = $method->tax_id;
$values['prazo'] = $this->correios_prazo;
$this->storePSPluginInternalData($values);
Expand Down Expand Up @@ -163,7 +163,7 @@ function getOrderShipmentHtml($virtuemart_order_id) {
$html .= $this->getHtmlRowBE('Método de envio', $shipinfo->shipment_name);
$html .= $this->getHtmlRowBE('Peso', $shipinfo->order_weight . ' ' . ShopFunctions::renderWeightUnit($shipinfo->shipment_weight_unit));
$html .= $this->getHtmlRowBE('Valor', $currency->priceDisplay($shipinfo->shipment_cost, '', false));
$html .= $this->getHtmlRowBE('Custo', $currency->priceDisplay($shipinfo->Handling_Fee_SN, '', false));
$html .= $this->getHtmlRowBE('Custo', $currency->priceDisplay((isset($shipinfo->Handling_Fee_SN)?$shipinfo->Handling_Fee_SN:0), '', false));
$html .= $this->getHtmlRowBE('Tarifa/Imposto', $taxDisplay);

if($shipinfo->prazo > 1) {
Expand Down Expand Up @@ -230,7 +230,7 @@ function _getPreco_site_correios($cart, $method, $cart_prices) {
$this->Order_Formatos = $method->Formatos_SN;

//Taxa de empacotamento e manuseio, e será acrescida aos custos de envio retornados pelos Correios
$this->Order_Handling_Fee = $method->Handling_Fee_SN;
$this->Order_Handling_Fee = (isset($method->Handling_Fee_SN)?$method->Handling_Fee_SN:0);
$this->Order_Handling_Fee = floatval(str_replace(",", ".", $this->Order_Handling_Fee));

//Serviço Mão Própria dos Correios
Expand Down

0 comments on commit 239f6bd

Please sign in to comment.