Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Ecommerce macros View modes: 
User avatar
Member
Member
jwbanning-gmail - 11/21/2011 8:31:00 PM
   
Ecommerce macros
I have been working with several of the macros in the invoice and wanted to see how you would go about setting up a "Payment Due Date". Basically the math would consist of making the payment due 30 days after the transaction was completed. I thought I could use the ##OrderDate## and then append .AddMonths(1) to it but I cannot get any thing to appear. I went as far as cast the OrderDate to DateTime and try that as well.

Any ideas? At this point I think a Custom Macro is the way to go

User avatar
Member
Member
kentico_michal - 11/22/2011 7:19:56 AM
   
RE:Ecommerce macros
Hello,

Yes, I would go for creating and using a custom macro method as I do not think it is possible to achieve this in a different way.

More information about customizing invoice can be found here: Customizing invoice and email templates.


Best regards,
Michal Legen

User avatar
Member
Member
jwbanning-gmail - 11/22/2011 3:56:00 PM
   
RE:Ecommerce macros
Is there a sample or documentation on how to insert an invoice (CMS DESK > Ecommerce > Invoice > Orders > Invoice) into an email template?

User avatar
Member
Member
kentico_michal - 11/28/2011 2:15:30 AM
   
RE:Ecommerce macros
Hello,

Regrettably, no documentation related to this topic is availabe. In general, you will need to override methods that generate notification emails and implement them according to your requirements:

// Send order notification emails
OrderInfoProvider.SendOrderNotificationToAdministrator
OrderInfoProvider.SendOrderNotificationToCustomer


For more information about customizing e-commerce methods, I would like to point you to the following blog:
E-commerce 6 New customization model.

Best regards,
Michal Legen