Fix typo in registerOptin section (#407)
This commit is contained in:
1 parent
d2a14a5d51
commit
d2739507ab
1 file changed
+1
-1
@@ -56,7 +56,7 @@ In the constructor we specify that our `WelcomeService` will depend upon the `ca
|
|||||||
|
|
||||||
### `registerOptin`
|
### `registerOptin`
|
||||||
|
|
||||||
The `registerOption` function will take to arguments: `cartId` and `optin`, where `cartId` holds the id of the cart that we wish to register optin for and `optin` is a boolean to indicate if the customer has accepted or optin or not. We will save the `optin` preferences in the cart's `metadata` field, so that it can be persisted for the future when we need to evaluate if we should send the welcome or not.
|
The `registerOption` function will take two arguments: `cartId` and `optin`, where `cartId` holds the id of the cart that we wish to register optin for and `optin` is a boolean to indicate if the customer has accepted or optin or not. We will save the `optin` preferences in the cart's `metadata` field, so that it can be persisted for the future when we need to evaluate if we should send the welcome or not.
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
async registerOptin(cartId, optin) {
|
async registerOptin(cartId, optin) {
|
||||||
|
|||||||
Reference in new issue
Block a user