Experimental project

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

Description

This module provides a Galleria Node Reference gallery with Drupal Commerce integration, so that users can add gallery images to their shopping cart via an integrated 'add to cart' commerce form.

Notes:

  • Ensure your Galleria module version can support a basic nodereference image gallery before getting started. At time of release, the latest 7.x-1.x Galleria version appeared to be broken.
  • This module includes some minor patches to the Galleria module code, to support inclusion of the image file id inside the Gallery.
  • The module supports displaying multiple 'add to cart' forms with a single nodereference gallery, and each will be dynamically updated as long as they contain the required line item fields. So you can have multiple add-to-cart forms, each representing a different product type (such as prints, greeting cards, etc.)

Non-typical Installation Steps

After installation you will need to perform these additional steps:

  1. Go into the gallery display options, click the operations icon for the Gallery Images field, and click 'update' to detect the appropriate image field (remembering to save the changes). Failure to do so will result in 'The referenced field does not contain any image fields' warnings, and a 'load failed: no data found' message in place of the gallery.
  2. Go into the 'Galleria Image File' and 'Gallery Image File ID' fields on the custom line item type, and check the 'Include this field on Add to Cart forms for line items of this type' checkbox. (If you know how to set this programatically, please let me know!)
  3. Alter the standard 'Shopping Cart' view, to add the 'Galleria Image File' and 'Galleria Image File ID' line item fields to the view. Be sure to choose 'thumbnail' for the display type on the image field, or your view will become unusable. ;)
  4. See the README.txt file for full installation instructions.

Project information