Tags/topics: 
1
Answers
Vote up!
0
Vote down!

Price Components Summary

I am trying to create a view with a summary of Price Components per user and I cannot get it to do what I want.

Example:
Price Component: Base Price, Discount, Program Discount, UserPoints - aka "Royalties", Shipping, etc.

I am trying to show users on the site what their total purchases would be in a given time frame at the Base Price and how much they saved by displaying their "Program Discount" total and any sale "Discount" totals.

How do I summarize the line item by Price Component?

Drupal Commerce FTW!

Asked by: Ravenight
on August 30, 2012

1 Answer

Vote up!
0
Vote down!

Ravenight,

Interesting idea. You would need to create a new Views Handler (in a custom module) that would provide an Order Total (with components) field for Orders. Not terribly difficult since there is at least one contributed module that implements it's own views handler and deals with price components:

http://drupal.org/project/commerce_price_components

Hope that helps.
Josh

Josh Miller
Answer by: Josh Miller
Posted: Oct 8, 2012