Developer forum

Forum » Development » Price Matrix for future date

Price Matrix for future date

Nuno Aguiar
Reply

Hi,

 

Is there a way to extend the price matrix feature so that instead of using the current date, we could manipulate that in the request.

 

Basically instead of getting "today's price" we would like to know the price for August 15th, for example.

 

Best Regards,

Nuno Aguiar


Replies

 
Nicolai Høeg Pedersen
Reply

No, not currently.

But, it is a simple table and you can lookup future prices using SQL.

BR Nicolai

 
Nuno Aguiar
Reply

Hi Nicolai,

 

I see, so we could basically create a PriceProvider to do that. Thanks.

 

Best Regards,

Nuno Aguiar

 
Jeppe Eriksson Agger Dynamicweb Employee
Jeppe Eriksson Agger
Reply

Let me just jump in here.

It is possible to do. There's a property called Dynamicweb.eCommerce.Common.Context.OrderTime that can allow eCommerce to use a specified time instead of the current time. You need to enable the feature in the Management Center -> Ecommerce -> Advanced -> General under the Settings section, check the Allow different context dates option.

- Jeppe

 
Nuno Aguiar
Reply

Hi Jeppe,

 

Thanks, that's what I was looking for.

 

Best Regards,

Nuno Aguiar

 

You must be logged in to post in the forum