controller/jobs/src/Controller/Jobs/Subscription/Process/Renew/Standard.php
protected function addBasketProducts( \Aimeos\MShop\Context\Item\Iface $context,
		\Aimeos\MShop\Order\Item\Base\Iface $newBasket, array $orderProducts, $orderProductId )
	{
		foreach( $orderProducts as $orderProduct )
		{
			if( $orderProduct->getId() == $orderProductId )
			{
				foreach( $orderProduct->getAttributeItems() as $attrItem ) {
					$attrItem->setId( null );
				}
				$newBasket->addProduct( $orderProduct->setId( null ) );
			}
		}

		return $newBasket;
	}
protected function addBasketProducts( \Aimeos\MShop\Context\Item\Iface $context,
		\Aimeos\MShop\Order\Item\Base\Iface $newBasket, array $orderProducts, $orderProductId )
	{
		foreach( $orderProducts as $orderProduct )
		{
			if( $orderProduct->getId() == $orderProductId )
			{
				foreach( $orderProduct->getAttributeItems() as $attrItem ) {
					$attrItem->setId( null );
				}
				$newBasket->addProduct( $orderProduct->setId( null ) );
			}
		}

		return $newBasket;
	}
protected function addBasketProducts ( \ Aimeos \ MShop \ Context \ Item \ Iface $ context , \ Aimeos \ MShop \ Order \ Item \ Base \ Iface $ newBasket , array $ orderProducts , $ orderProductId ) { foreach ( $ orderProducts as $ orderProduct ) { if ( $ orderProduct -> getId ( ) == $ orderProductId ) { foreach ( $ orderProduct -> getAttributeItems ( ) as $ attrItem ) { $ attrItem -> setId ( null ) ; } $ newBasket -> addProduct ( $ orderProduct -> setId ( null ) ) ; } } return $ newBasket ; }
Adds the given products to the basket

@param \Aimeos\MShop\Context\Item\Iface Context object
@param \Aimeos\MShop\Order\Item\Base\Iface $basket Basket object to add the products to
@param \Aimeos\MShop\Order\Item\Base\Product\Iface[] $orderProducts List of product items
@param string $orderProductId Unique ID of the ordered subscription product
@return \Aimeos\MShop\Order\Item\Base\Iface Order with products added
Adds the given products to the basket