Experimental project

This is a sandbox project, which contains experimental code for developer use only.

Taillor made Drupal Commerce: a collection of simple customizations that apply to specific usecases.

Rules:

  • Redirect to cart when adding a product

  • When pushing the 'Add to cart' button the user gets redirected to the /cart page.

  • Maximum product quantity in cart

  • Sets the product quantity that a user can order (per product, not total product quantity in cart)

Add to cart customization

It changes the 'add to cart' button text and it disables the button in these cases:

  • 'Already in cart' when a product is in the cart
  • 'Already bought' when a product is previously bought (and the user is logged in)

it's based on this code:
http://agileadam.com/add-to-cart-tweaks
it applies to ALL product types and is does NOT work when when product referencing multiple products.

Project information