Loading...
Was this page helpful?
This documentation provides a reference to the restoreCarts
method. This belongs to the Cart Module.
This method restores soft deleted carts by their IDs.
ids
string[]returnLinkableKeys
property any of the cart's relation attribute names, such as items
.Promise
Promise<void | Record<TReturnableLinkableKeys, string[]>>item_id
,
and its value is an array of strings, each being the ID of the record associated with the cart through this relation,
such as the IDs of associated line item.
If there are no related records restored, the promise resolves to void
.