Log in
Model

Save

Magento\GiftMessage\Model\Save

What it does

This class manages the saving and retrieval of gift messages for quotes, orders, and their items in Magento's admin interface.

Developers use it to save gift message data to quotes/orders, manage which quote items are allowed to have gift messages, and handle the deletion of empty gift messages.

It serves as the main service class for gift message operations during order creation in the admin panel.

Public Methods

  • saveAllInQuote()
  • getSaved()
  • saveAllInOrder()
  • setAllowQuoteItems()
  • addAllowQuoteItem()
  • getAllowQuoteItems()
  • getAllowQuoteItemsProducts()
  • getIsAllowedQuoteItem()
  • isGiftMessagesAvailable()
  • importAllowQuoteItemsFromProducts()
  • importAllowQuoteItemsFromItems()