We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 389bd21 commit 2c4db93Copy full SHA for 2c4db93
app/code/Magento/Quote/Api/CartManagementInterface.php
@@ -27,10 +27,10 @@ interface CartManagementInterface
27
public function createEmptyCart();
28
29
/**
30
- * Creates an empty cart and quote for a specified customer.
+ * Creates an empty cart and quote for a specified customer if customer does not have a cart yet.
31
*
32
* @param int $customerId The customer ID.
33
- * @return int Cart ID.
+ * @return int new cart ID if customer did not have a cart or ID of the existing cart otherwise.
34
* @throws \Magento\Framework\Exception\CouldNotSaveException The empty cart and quote could not be created.
35
*/
36
public function createEmptyCartForCustomer($customerId);
0 commit comments