Ajax Basket Link

Component ID

1856586

Component name

Ajax Basket Link

Component type

module

Maintenance status

Development status

Component security advisory coverage

covered

Downloads

5321

Component created

Component changed

Component body

Overview

Ajax Basket Link is a simple add-on module for Drupal Commerce.

It creates a block containing a Drupal Commerce basket/cart
link that updates on the fly as items are added using ajax.

This came about by a need to have a 'View cart (£n x items)' style link in the header of an ecommerce site I was developing.

Features

  • Creates block with order total and item count that links to cart
  • Ajax updates as new products are added
  • Replaces add to basket button with a success message once item has been added

Requirements

Usage

To use, enable the module and then drag the Ajax Cart Block into the desired region. This can then be styled as needed using CSS etc.