Log in
Interface

GuestShippingMethodManagementInterface

Magento\Quote\Model\GuestCart\GuestShippingMethodManagementInterface

What it does

This interface defines the contract for managing shipping methods on guest shopping carts (carts for users who are not logged in).

Developers use this to set a shipping carrier and method for a guest's cart, or retrieve the currently selected shipping method.

It's commonly used during the checkout process when a guest customer selects their preferred shipping option.

Public Methods

  • set()
  • get()