You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public function remove($cartId, $itemId)
{
$this->updateGiftWrap($cartId, $itemId, [], []);
$item = $this->cartRepository->getActive($cartId)->getItemById($itemId);
return $this->getWrapItem($item);
}
Passes an empty array to updateGiftWrap which eventually passes it to \Mageplaza\GiftWrap\Model\Api\QuoteWrap::addWrapOptionToItem which expects an object and then breaks because ->getData() is called
The text was updated successfully, but these errors were encountered:
It is currently not possible to remove a wrapper from a cart item
\Mageplaza\GiftWrapGraphQl\Model\Resolver\Wrap\RemoveWrap::handleArgs
Passes an empty array to updateGiftWrap which eventually passes it to
\Mageplaza\GiftWrap\Model\Api\QuoteWrap::addWrapOptionToItem
which expects an object and then breaks because->getData()
is calledThe text was updated successfully, but these errors were encountered: