Download commerce-7.x-1.0-alpha4.tar.gztar.gz 186.55 KB
MD5: d62fa017115ecc34b81f3e4fe5e0b3db
SHA-1: 9fe11e41711f532fbe55a150885d2f7c821b1608
SHA-256: 5ed6c4213c835646b9aabe017afb6d1410d2fc6e8fb1820e1ae3c6f88e1ed7c5
Download commerce-7.x-1.0-alpha4.zipzip 276.71 KB
MD5: 45acad61a438e81b45ed903abc9d40c3
SHA-1: 91a59ec7eb8c3e0c6415da89569403ad9a80bfd9
SHA-256: 58707fd1c11e237d1eaa59f6bf9b009ee26c7a9554cd76e6c74b2a2f94fde48c

Release info

Created by: rszrama
Created on: 26 Dec 2010 at 02:04 UTC
Last updated: 26 Dec 2010 at 02:06 UTC
Core compatibility: 7.x
Release type: New features, Bug fixes

Release notes

The last week has seen a flurry of activity that accounts for about half of the commits for the last 6 weeks. This is due in large part to the great number of patches contributed from other developers, giving me plenty to review and build on. This release contains more solid Entity / Rules / Views integration and an improved shopping cart workflow. It also contains my first uses of EntityFieldQuery and the Entity Metadata Wrapper, two critical APIs for building Fieldable Entity based systems. Once again all our SimpleTests pass, too, though we're still in need of a lot more.

The pièce de résistance of alpha 3 was the dynamic Add to Cart form, which has seen bug fixes in this release to address inconsistencies in the dependent attribute display. I'm not sure if I can top the awesomeness of that form in this release, but the Rules powered dynamic pricing system at least comes close.

It is now possible to create Rules on the Calculating the sell price of a product event that can adjust the sell price as necessary, providing a central system and user interface for discount systems, tax calculation and display, and multi-currency stores. At the same time, a price pre-calculation system has been developed at the database and API level (user interface pending) that populates the commerce_calculated_price table in the database with dynamic price data for use in queries for things like Views and faceted searches.

Full list of commits since the last release:

  • 2010-11-14 21:53:19 +0100
    If product_id argument is used in a title, it now provides the product title, like taxonomy terms do
  • 2010-11-15 09:41:01 -0500
    #971460: Error when creting node with empty product_reference field by rszrama: fix some product loading problems in the product reference module; add a condition to detect valid product IDs prior to attempting a load.
  • 2010-11-15 09:47:58 -0500
    Add a temporary line item access function per requests in #941324: Call to undefined function commerce_line_item_access().
  • 2010-11-15 11:07:18 -0500
    Properly adjust the skip save parameters for line item presave Rules events.
  • 2010-11-15 23:05:01 -0500
    Simplify the code that adds product fields to nodes via product reference fields and add support for images linking to content to link to the node instead of the product admin URL.
  • 2010-11-15 23:23:54 -0500
    #972962: No dependencies Commerce UI by rszrama: add an appropriate dependency to Commerce UI.
  • 2010-11-15 23:38:41 -0500
    #972916: Notice: Undefined property: stdClass::$line_items in commerce_cart_user_login() by rszrama: check for line items on an anonymous order before trying to convert them to an authenticated order.
  • 2010-11-16 08:41:49 -0500
    Change the method of linking to a product entity by allowing for a display context to update where the product should actually point to.
  • 2010-11-16 09:14:27 -0500
    Add a Views filter handler for product type.
  • 2010-11-16 09:42:27 -0500
    Add the add to cart form options to the Views field handler for add to cart forms.
  • 2010-11-18 12:06:07 +0100
    Fixing cart menu definition.
  • 2010-11-18 11:44:56 -0500
    Add new styling to accommodate the ul.links in the line item summary.
  • 2010-11-18 15:16:03 -0500
    Instead of CSS changes, add the inline class back to the various operations and summary links ul elements instead.
  • 2010-11-19 04:19:20 +0800
    Fixing cart menu definition.
  • 2010-11-18 15:37:14 -0500
    Resolve conflicts and add comments to rolfvandekrol's product ID argument handler.
  • 2010-11-19 17:09:27 -0500
    Remove some outdated, incorrect hook documentation.
  • 2010-11-19 17:13:31 -0500
    #976106: Views errors before content is added by rszrama: add proper default settings for global text area handlers in our default Views.
  • 2010-11-21 02:03:25 -0500
    Don't lock address fields on customer profile types.
  • 2010-11-22 17:59:52 -0500
    Fix a misnamed array key in the default line items View.
  • 2010-11-22 18:00:05 -0500
    Add the payment tab specifically to the breadcrumb trail when viewing transactions.
  • 2010-11-23 12:34:46 +0100
    Merge branch 'master' of
  • 2010-11-26 21:56:29 -0500
    Add the inline class to a few more operations links instances.
  • 2010-12-01 00:31:45 +0800
    Fix pass by reference bug for PHP 5.3 in hook invocation.
  • 2010-11-30 11:33:41 -0500
    Merge branch 'master' of
  • 2010-11-30 11:35:52 -0500
    Minor comment changes for formatting purposes.
  • 2010-11-30 15:32:52 -0500
    Explicitly declare the plugin type of our default rule configurations so they appear in overview tables.
  • 2010-11-30 16:04:25 -0500
    Check for the existence of a node type when creating the dummy product display node type for tests.
  • 2010-11-30 16:05:54 -0500
    Get rid of an unnecessary theme preprocess function for linking product images to their display nodes.
  • 2010-11-30 18:28:03 -0500
    Remove unnecessary Rules entity controller cache clearing from the payment overview page.
  • 2010-12-01 12:01:55 +0800
    Improved view and fixed PGSQL bug.
  • 2010-12-01 10:42:46 -0500
    Removing the explicit plugin definition from our default rule configurations thanks to the Rules patch in #963590: EntityAPIController $defaultsFiltered property is not condition specific.
  • 2010-12-01 13:15:39 -0500
    #733022: Determine the ability to delete a product by rszrama: Add a hook to allow preventing the deletion of a product.
  • 2010-12-02 01:20:05 -0500
    Update the customer profile pane and widget to use the new parents feature of the field attach API introduced in #942310: Field form cannot be attached more than once.
  • 2010-12-02 01:20:17 -0500
    Add instance_settings properties to our field definitions.
  • 2010-12-02 01:25:00 -0500
    #979608: PHP notice editing billing information by pcambra: check to make sure we're not altering the form of a locked (and therefore uneditable) field.
  • 2010-12-02 17:25:16 -0500
    #976106: Views errors before content is added by bendiy: fix some strict notices in our Views integration.
  • 2010-12-03 22:52:41 -0500
    Use the proper field aliases when calculating the totals in the payment totals area handler.
  • 2010-12-03 23:40:35 -0500
    Remove a TODO item about switching the checkout pane callback function to use hook_hook_info(); at this point, I'd rather not.
  • 2010-12-07 09:10:10 -0500
    Add a data column to the price field schema.
  • 2010-12-08 17:34:12 -0500
    Resolve a TODO item by using the rendered product instead of just the SKU on the product delete form.
  • 2010-12-09 16:51:21 +0100
    Merge branch 'master' of
  • 2010-12-09 17:02:15 +0100
    Remove t from hoom_menu.
  • 2010-12-09 17:25:51 -0500
    #979846: Rules line items list by das-peter: properly describe the order line items property for use as a list in Rules.
  • 2010-12-11 00:52:47 -0500
    Fix the product Rules tests so everything passes again. : )
  • 2010-12-14 19:20:21 -0500
    Standardizing the price field schema to use amount instead of price for the numeric value of the price.
  • 2010-12-14 20:47:39 -0500
    Fix a missed variable name on the price field widget form.
  • 2010-12-18 02:14:43 -0500
    Update to accommodate the changes in the Entity API; see #988780: Merge both modules into one.
  • 2010-12-18 19:55:45 -0500
    Fixing Entity / Rules integration for price fields so they can actually be inputted and their properties displayed.
  • 2010-12-18 20:15:36 -0500
    #859322: Rules integration review by rszrama: per fago's comments, removed any custom handling in the code for unchanged entities; unchanged entity variables now use the rules_events_entity_unchanged handler.
  • 2010-12-19 03:20:05 -0500
    #998080: Pre-calculate dynamic prices by rszrama: allow for dynamic product sell price calculation via Rules at any given point of display (based on the price field display formatter settings) and when the product is added to the cart.
  • 2010-12-19 04:14:43 -0500
    Add a helper function to return an associative array of available currency codes.
  • 2010-12-19 04:15:28 -0500
    Allow price field amounts and currency codes to be set directly by entity metadata wrappers.
  • 2010-12-19 04:20:57 -0500
    #998080: Pre-calculate dynamic prices by rszrama: convert the old price altering actions to be line item unit price altering actions working through an entity metadata wrapper.
  • 2010-12-19 04:21:51 -0500
    Adding a Rules include file that didn't get automatically added on a prior commit.
  • 2010-12-19 11:39:43 -0500
    Use entity_metadata_wrapper() to swap in the unit price for the product sell price.
  • 2010-12-19 11:51:30 -0500
    Moving the sell price calculation code to its own API function.
  • 2010-12-19 21:44:36 -0500
    #998080: Pre-calculate dynamic prices by rszrama: add a database table and API level support for pre-calculating product sell prices.
  • 2010-12-20 16:46:42 -0500
    Don't consider pricing Rules with no conditions when generating pre-calculation keys.
  • 2010-12-21 01:52:23 -0500
    #998080: Pre-calculate dynamic prices by rszrama: perform the actual pre-calculation and store the price in commerce_calculated_price.
  • 2010-12-21 01:55:05 -0500
    Fix a bug in the Views integration of the dynamic price calculation.
  • 2010-12-21 02:07:54 -0500
    Prepare the point of Views integration for pre-calculated prices with an implementation of hook_views_query_alter().
  • 2010-12-21 11:35:29 -0500
    Fix a pair of comments for the pre-calculation process.
  • 2010-12-21 18:35:16 -0500
    Commenting out commerce_product_reference_views_query_alter() until it's actually implemented to make it easier to debug RC2 issues.
  • 2010-12-22 00:13:32 -0500
    #1003932: MySQL error when removing an item from the cart by rszrama: remove an unnecessary hook implementation to clean up line item reference field data when line items are deleted.
  • 2010-12-22 11:16:15 -0500
    Use some new Rules code to evaluate actions without worrying about conditions; thanks fago.
  • 2010-12-22 11:34:52 -0500
    #904978: Preserve breadcrumbs on edit pages for Rules by rszrama: use the new Rules UI menu item system to get proper breadcrumbs and paths for the custom payment settings Rules interface.
  • 2010-12-22 15:28:54 -0500
    Add proper support for selecting a product type or currency code via Rules.
  • 2010-12-22 15:31:24 -0500
    Only include currency codes that are enabled on Rules selectors.
  • 2010-12-22 16:12:03 -0500
    Add an access property to links defined by hook_commerce_line_item_summary_link_info().
  • 2010-12-22 21:12:39 -0500
    #972346: Limit the length of the autogenerated form_id for the "add to cart" form by das-peter: ensure the cart form ID doesn't surpass a set length when it includes a great number of products.
  • 2010-12-22 21:44:07 -0500
    Add appropriate Rules dependencies to the Payment / Payment UI modules.
  • 2010-12-22 22:03:42 -0500
    #932296: Order status entity property definition by PieterDC, rszrama: add the order status entity property definition with an options list API function; also renames the order status Token to match the definition.
  • 2010-12-23 11:08:32 +0800
    Added better separators for crown units.
  • 2010-12-22 22:10:52 -0500
    Merge branch 'master' of git://
  • 2010-12-22 23:10:30 -0500
    #983102: Separate product types created by hook_commerce_product_info from those created though the interface. by rszrama: only show edit and delete links for product types governed by Product UI.
  • 2010-12-22 23:40:26 -0500
    #976336: Can't set payment settings by rszrama: add a help message to the payment settings page indicating what the Rules listed do and where to find a payment method settings form.
  • 2010-12-23 10:56:04 +0100
    Invoke entityType_presave on update and insert.
  • 2010-12-23 11:31:49 +0100
    Update order status when cart contents are changed.
  • 2010-12-23 16:45:18 +0100
    Add presave rules events for payment and customer.
  • 2010-12-23 16:10:20 -0500
    #997130: Add Rules events for before / after adding products to the cart by rszrama: add events when preparing to add and after adding products to the shopping cart.
  • 2010-12-23 17:20:33 -0500
    Add the current user's shopping cart order as a site variable available to every Rule configuration.
  • 2010-12-23 17:20:49 -0500
    Add the current user's shopping cart order as a site variable available to every Rule configuration.
  • 2010-12-23 17:36:41 -0500
    Display product prices as calculated values by default.
  • 2010-12-23 17:45:56 -0500
    Use a new argument on commerce_price_create_instance() to determine when the calculated sell price setting should be used for a given instance.
  • 2010-12-23 20:30:48 -0500
    #1006560: Adding a "Product Type" fails [drupal-7.0-rc3 - commerce-7.x-1.x] by rszrama: accommodate creating new product types when checking the type's module on the add / edit form.
  • 2010-12-23 23:32:00 -0500
    #1001526: Anonymous users can put things into cart when they are at the payment step. by rszrama: fix anonymous cart order loading to function like authenticated cart order loading and provide a complete API for managing cart related session variables.
  • 2010-12-23 23:52:26 -0500
    Fixing a regression introduced to the patch of #1006560: Adding a "Product Type" fails [drupal-7.0-rc3 - commerce-7.x-1.x] right before committing.
  • 2010-12-24 00:06:18 -0500
    #987624: PHP 5.3 Strict Warning by bendiy, rszrama: fix PHP 5.3 strict warnings where we were passing function return values to functions expecting references and where child classes' overridden methods didn't have the same type of parameters.
  • 2010-12-24 02:22:24 -0500
    #978540: "Add to Cart" form with multiple product attributes doesn't keep them on ajax callback. by rszrama: properly identify the default product on add to cart forms with multiple attributes, fixing variable name typos and a bug involving lost comparison data.
  • 2010-12-24 10:08:17 -0500
    Conflict resolution in pull from googletorp/1001288-2.
  • 2010-12-24 10:09:05 -0500
    Merge branch '1001540-2' of git://
  • 2010-12-24 11:01:37 -0500
    Forgot to commit the conflict resolution. :-/
  • 2010-12-24 11:26:05 -0500
    Flesh out the customer profile Rules events and unify their definition with line item events.
  • 2010-12-24 11:30:56 -0500
    Update the Rules event variables callbacks to use a argument.
  • 2010-12-24 11:59:09 -0500
    Use a variables callback for cart events.
  • 2010-12-24 12:11:57 -0500
    Fixing event invocation in the customer and line item controllers.
  • 2010-12-24 12:44:33 -0500
    Unify the order and payment events with the line item and customer profile integration.
  • 2010-12-24 12:54:55 -0500
    Unify the product event definition with the rest of the modules.
  • 2010-12-24 14:09:23 -0500
    Adding entity property definitions for customer profiles.
  • 2010-12-24 15:04:30 -0500
    Add limited entity property support for payment transactions.
  • 2010-12-24 22:00:50 -0500
    #1001540: Change order status to cart if the contents of the shopping cart is changed. by rszrama: add support for deleting line items updating shopping cart orders.
  • 2010-12-24 22:34:38 -0500
    #1001540: Change order status to cart if the contents of the shopping cart is changed. by rszrama: use entity_metadata_wrapper() to compare order line item data.
  • 2010-12-24 23:32:04 -0500
    #978540: "Add to Cart" form with multiple product attributes doesn't keep them on ajax callback. by rszrama: fix the display issue where attribute select lists weren't being reset based on the default product when a parent attribute of dependent attributes on the form caused a form refresh.
  • 2010-12-25 14:38:48 -0500
    Update the Rules action groups to use the same format.
  • 2010-12-25 15:45:41 -0500
    Add support for constructing the current context's pre-calculated price module_key and for fetching the pre-calculated sell price if it exists.
  • 2010-12-25 16:25:36 -0500
    Check for the existence of line items before returning loading and returning them to Entity.


The selected release is the release that will be used for automated testing. Optional projects are only used for testing.



No optional projects