Closed (fixed)
Project:
Commerce Core
Version:
7.x-1.x-dev
Component:
Developer experience
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
27 Jun 2011 at 16:03 UTC
Updated:
25 Nov 2011 at 05:40 UTC
Jump to comment: Most recent file
Comments
Comment #1
rszrama commentedVoici. Test bot, ENGAGE!
Comment #2
rszrama commentedAaand, committed. Note that this module doesn't actually make use of the hook anywhere, but honestly I'm not sure that we actually have a core use case for it. The only one I could think of as a possibility was as a replacement for the hook in Product Pricing that lets us add the current cart order ID to a line item being used for product sell price calculation, but that really is a context sensitive alteration of the line item - and we won't have that context inside hook_commerce_entity_create_alter() itself. We could if we determined it was worth "hacking" the line item values so that the line item contains a property flagging the newly created line item as created for sell price calculation, but I'm not sure that's a better developer experience than just keeping the specific hook.