Commerce Cart Link

Component ID

2595717

Component name

Commerce Cart Link

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

798

Component created

Component changed

Component body

Commerce Cart Link provides a new field formatter for Add to Cart fields attached to Commerce products and product displays.

By using a link instead of a form element such as a button, performance and caching can be improved, and instances where a store admin wants to provide a way for users to buy a product without invoking the full Form API may find cart links a better alternative.

This module is similar to other modules such as Rules Link Event but because this module utilizes CTools to create a link automatically (rather than arbitrarily) they are able to be protected with a token that is based on the user's session and the product ID.

Integrates with Commerce Ajax Add-to-Cart!

Requirements:

CTools
Commerce (naturally)

TODO:

- Theme function for the links
- Allow a drupal_alter() before the link is constructed
- Ensure proper Views integration
- Ensure field settings are honored
- "Bundle" (Add all products) mode?