Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $quote = $this->quoteRepository->getActive($cartId);
- $quote->setStore($store);
- $items = $this->quoteRepository->getActive($cartId)->getAllItems();
- foreach($items as $item)
- {
- $item = $quote->getItemById($item->getId());
- $item->setData('store_id',$storeId);
- $item->calcRowTotal();
- $item->getProduct()->setIsSuperMode(true);
- $item->save();
- }
- $quote->setTotalsCollectedFlag(false)->collectTotals()->save();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement