This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Fixed date in Web environment

Hello everyone

I am wondering if it is (at all) possible to set a fixed date in the field "Valid until", in shopping cart in Web environment. We set the same date for most of the users when requesting for a new account or an SAP fole for example, and it would be really  helpful if we wouldn't have to set the date every time again.

  • Sure. That would be an object dependend reference if it is just for some service items, or an extension to VI_ITShop_AddCartItem if should be for everything. 

    For your ODR it would be another implemenation of VI_Interfaces_ObjectSwitch_Insert_ShoppingCartItem, where you'll just need to update ValidUntil.ShoppingCartItem to the desired date.

    For all, it's basically the same. You'll just need to update ValidUntil.ShoppingCartItem to the desired date.

  • May I ask why you set a fixed date for most of your users? If you want to grant the access for a certain time period you could also set the Maximum validity (days) on the service item master data in the manager. Of course then the date would not be fixed as then the end date would be dependent on the date when the request was made. 

  • Hello

    Thank you for your answers. We need to set a fixed date in future (not certain period of time), so I think the solution suggested by Geraldine would be best for our issue.

    I am just not sure where can I find "VI_Interfaces_ObjectSwitch_Insert_ShoppingCartItem". When I try to search it in Designer i have answer "No objects found". I am using verison 7.1.

  • My solution is for the web portal, so you must use the tool Web Designer.

    You could start with a non overriding object copy of VI_Insert_ShoppingCartItem_Default and change it to your needs.

    After that you have to make a new odr, point to your component, add the service items and you are done.

  • Hello

    Thank you for the information. I will play around wiht those settings.