Skip to content

Commit

Permalink
pedro-teixeira#42 Corrige a diferença de valor de frete entre fronten…
Browse files Browse the repository at this point in the history
…d e backend
  • Loading branch information
rafaelpatro committed Dec 15, 2014
1 parent 61156ed commit a9058b7
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,10 @@ protected function _generateVolumeWeight()

$items = Mage::getModel('checkout/cart')->getQuote()->getAllVisibleItems();

if (count($items) == 0) {
$items = Mage::getSingleton('adminhtml/session_quote')->getQuote()->getAllVisibleItems();
}

foreach ($items as $item) {
$_product = $item->getProduct();

Expand Down

0 comments on commit a9058b7

Please sign in to comment.