client/html/src/Client/Html/Basket/Standard/Standard.php
protected function addCoupon( \Aimeos\MW\View\Iface $view )
	{
		if( ( $coupon = $view->param( 'b_coupon' ) ) != '' )
		{
			\Aimeos\Controller\Frontend::create( $this->getContext(), 'basket' )->addCoupon( $coupon );
			$this->clearCached();
		}
	}
protected function addCoupon( \Aimeos\MW\View\Iface $view )
	{
		if( ( $coupon = $view->param( 'b_coupon' ) ) != '' )
		{
			\Aimeos\Controller\Frontend::create( $this->getContext(), 'basket' )->addCoupon( $coupon );
			$this->clearCached();
		}
	}
protected function addCoupon ( \ Aimeos \ MW \ View \ Iface $ view ) { if ( ( $ coupon = $ view -> param ( 'b_coupon' ) ) != '' ) { \ Aimeos \ Controller \ Frontend :: create ( $ this -> getContext ( ) , 'basket' ) -> addCoupon ( $ coupon ) ; $ this -> clearCached ( ) ; } }
Adds the coupon specified by the view parameters from the basket.

@param \Aimeos\MW\View\Iface $view View object
Adds the coupon specified by the view parameters from the basket .