Hi folks,

I couldn't find any way to leverage price rules for what I'm looking to do.

After some more research, I came across the "Custom Price Calc Service" in
Product Pricing. It appears that this may be able to be used to accomplish
what I'm looking for with a point in time price calculation for a product.
However, I traced the code, and when the custom service is invoked from the
"calculateProductPrice" service, there are limited parameters which are
passed to the custom service, namely:

-userLogin
-product
-initialPrice
-currencyUomId
-quantity
-amount
-surveyResponseId
-customAttributes

Out of these available parameters, I don't see any way to perform the
calculation without additional parameters defining the point in time (i.e.
order date) which to calculate the price for. 

For this, I was thinking of leveraging customAttributes to pass in either a
timestamp to perform a point in time price calculation, or something like an
orderId. Unfortunately, any of the out of the box calls to
"calculateProductPrice" (such as from ShoppingCartItem) don't appear to pass
in any "customAttributes". 

Is there any way to inject information into a customAttributes such as the
timestamp, or orderId without modifying code? 

Alternatively, perhaps there's something already existing in the parameter
list which would give me the information I need about what point in time the
price should be calculated for?

Thanks for the help



--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Product-Pricing-From-Order-Date-tp4655035p4655213.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

Reply via email to