Commerce Cart Tokens
Categories
Component ID
Component name
Component type
Maintenance status
Development status
Component security advisory coverage
Component created
Component changed
Component body
If you have ever needed to add an "Add to Cart" button multiple times on a product display page in Drupal Commerce, this module can help. This module uses tokens to allow you to easily add additional add to cart forms anywhere tokens are accepted.
You can even add tokens directly to the body of your content by using the Token Filter module.
This is not limited to just product pages though, you can easily add additional "Add to Cart" forms anywhere on your site.
The format for the token is pretty simple, you just need to know the product id of the product you want the form to be created for, and the quantity you want to add. In the example below the token adds 1 of product id 23 when the Add to Cart button is clicked.
[addtocartform:23:1]
The following example adds 2 of the product id 55 when the Add to Cart button is clicked.
[addtocartform:55:2]
