Skip to content

Commit

Permalink
fix bug #6
Browse files Browse the repository at this point in the history
  • Loading branch information
Reza1607 committed Oct 7, 2015
1 parent 6cdbc5a commit 3ad5240
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions catalog/model/shipping/frotel_shipping.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ public function getQuote($address)
$this->load->library('frotel/helper');

$totalWeight = $this->weight->convert($this->cart->getWeight(),$this->config->get('config_weight_class_id'),2);
if ($totalWeight<=0) {
$count_product = $this->cart->countProducts();
$totalWeight = ceil($this->config->get('frotel_default_weight') * $count_product);
}
$totalPrice = $this->currency->convert($this->cart->getTotal(),$this->config->get('config_currency'),'RLS');

$online = $this->config->get('frotel_online');
Expand Down

0 comments on commit 3ad5240

Please sign in to comment.