0

Has anyone seen a module capable of providing line item revisions? I am calculating the cost of a custom line item type via rules. It is essentially a booking and may need to be altered in the future.

I am therefore looking for some information from anyone who may have had a similar issue? This is what I need.

  1. Every time I recalculate the price of a line item on an order to create a new revision.
  2. Always display the latest revision to the user.
  3. Provide a view showing other revisions in the admin panel.

1 Answer 1

1

The line item entity doesn't have revisions, so you would need to add this for all line items. Which means, you need to alter some of the very core of Drupal Commerce. It's possible, but maybe it would be better to store bookings in a custom table and save a reference on the line item instead.

2
  • Hi Thanks for your help. Do you know any module or way to view order revision data? Or would I have to create a view for that.
    – benjy
    Commented Mar 28, 2012 at 2:05
  • 1
    @ben Creating a View would probably be the easiest solution. I don't believe there is any functionality for doing this yet.
    – googletorp
    Commented Mar 28, 2012 at 15:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.