Skip to content

Commit

Permalink
Removed unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
aimeos committed Dec 10, 2019
1 parent 2932f70 commit d064f3f
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions client/html/src/Client/Html/Checkout/Standard/Summary/Standard.php
Original file line number Diff line number Diff line change
Expand Up @@ -295,17 +295,6 @@ public function addData( \Aimeos\MW\View\Iface $view, array &$tags = [], &$expir
{
$context = $this->getContext();
$basket = $view->standardBasket;
$addresses = $basket->getAddress( \Aimeos\MShop\Order\Item\Base\Address\Base::TYPE_PAYMENT );

if( ( $view->summaryCustomerId = $context->getUserId() ) === null && ( $addr = current( $addresses ) ) !== false )
{
try
{
$controller = \Aimeos\Controller\Frontend::create( $context, 'customer' );
$view->summaryCustomerId = $controller->find( $addr->getEmail() )->getId();
}
catch( \Exception $e ) {}
}

$view->summaryCostsDelivery = $this->getCostsDelivery( $basket );
$view->summaryCostsPayment = $this->getCostsPayment( $basket );
Expand Down

0 comments on commit d064f3f

Please sign in to comment.