Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > How to display order information at 'order complete' page View modes: 
User avatar
Certified Developer v7
Certified  Developer v7
slycknick - 6/18/2009 9:15:01 AM
   
How to display order information at 'order complete' page
There is a knowledgebase article to show how to display order information at the order completed page.

http://devnet.kentico.com/Knowledge-Base/E-commerce/How-to-display-order-information-at--order-complet.aspx

It is however for Version 3.1 and doesn't work with version 4

The URL /SpecialPages/OrderCompleted?orderid={%OrderID%} gives an error.

How can I achieve the same thing in V4

Thanks
Nick

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 6/24/2009 6:48:59 AM
   
RE:How to display order information at 'order complete' page
Hi,

There were no significant changes in this module in version 4.0. Could you please provide us with the code of the custom control or web part you have created?

Best Regards,
Juraj Ondrus

User avatar
Certified Developer v7
Certified  Developer v7
slycknick - 6/24/2009 7:07:59 AM
   
RE:How to display order information at 'order complete' page
If I follow the example and change the shopping cart completed page to

/SpecialPages/OrderCompleted?orderid={%OrderID%}

Then on order completion it tries to add .aspx to the end of the URL

so

/SpecialPages/OrderCompleted?orderid={%OrderID%}.aspx

and an error occurs. It would also appear that the macro is not resolved.

Any ideas?
Nick

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 7/1/2009 3:42:30 AM
   
RE:How to display order information at 'order complete' page
Hello,

I tried to reproduce your issue, but unfortunately I wasn't able to. Do you have any specific settings enabled on the site regarding extensions? Do you have macros enabled (unchecked the "Disable macros:" checkbox)?

Best Regards,
Boris Pocatko

User avatar
Certified Developer v7
Certified  Developer v7
slycknick - 7/6/2009 9:29:32 AM
   
RE:How to display order information at 'order complete' page
No specific settings.

Looking at the code in ShoppingCartPaymentGateway it calls

url = CMSContext.GetUrl(this.ShoppingCartControl.RedirectAfterPurchase);

but this doesn't seem to resolve the macro in the RedirectAfterPurchase url it just add the path and .aspx

Nevermind I'll just hack the code here to add the order id as a parameter afterwards.

Thanks,
Nick