Skip to main content
Bounty Ended with 50 reputation awarded by CommunityBot
deleted 4 characters in body
Source Link
Ronak Rathod
  • 6.5k
  • 18
  • 43

Try This :-

$webSite$storeId = Mage::app()->getStore()->getWebsiteId();>getStoreId;
$quote = Mage::getModel('sales/quote')->getCollection()->addFieldtoFilter('store_id', array('eq' => $webSite$storeId));

foreach ($quote as $quotes)
{
    $cartTotal = $quotes->getGrandTotal();
}

Try This :-

$webSite = Mage::app()->getStore()->getWebsiteId();
$quote = Mage::getModel('sales/quote')->getCollection()->addFieldtoFilter('store_id', array('eq' => $webSite));

foreach ($quote as $quotes)
{
    $cartTotal = $quotes->getGrandTotal();
}

Try This :-

$storeId = Mage::app()->getStore()->getStoreId;
$quote = Mage::getModel('sales/quote')->getCollection()->addFieldtoFilter('store_id', array('eq' => $storeId));

foreach ($quote as $quotes)
{
    $cartTotal = $quotes->getGrandTotal();
}
Source Link
Ronak Rathod
  • 6.5k
  • 18
  • 43

Try This :-

$webSite = Mage::app()->getStore()->getWebsiteId();
$quote = Mage::getModel('sales/quote')->getCollection()->addFieldtoFilter('store_id', array('eq' => $webSite));

foreach ($quote as $quotes)
{
    $cartTotal = $quotes->getGrandTotal();
}