Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Discount Coupon - Need some help View modes: 
User avatar
Certified Developer v7
Certified  Developer v7
Gitesh - 6/18/2012 7:30:47 PM
   
Discount Coupon - Need some help
Hi Guys,

I am writing some custom functionality in our ecommerce site for discount functions.

I am creating this functionality inside: CustomShoppingCartInfoProvider.cs

Is there a way to find the coupon code, coupon name and discount value?
Also, if I create a custom field on the front end of my shopping cart (normal textbox), can I retrieve the value stored by the user in that field without storing in the database.
For ex: Jquery calculates the discount on the frontend based on user input and then passes that value to the CustomShoppingCartInfoProvider.cs file?

Your help is aprreciated.

Thanks
Gitesh Shah

User avatar
Kentico Support
Kentico Support
kentico_zdenekc - 6/27/2012 9:07:05 AM
   
RE:Discount Coupon - Need some help
Hi,

I'm not familiar with the details of your aim, anyway, discount coupon management examples can be found in the E-commerce examples project (\CMSAPIExamples), particularly in \CMSAPIExamples\Code\Ecommerce\Default.aspx.cs

If there's only a form control in your page, you will need to store the value manually in another table (e.g. a custom table).
Better way would be to extend the system table for the discount coupon.

Maybe we could find another way if you provide more details (preferably via email).

Regards,
Zdenek


User avatar
Certified Developer v7
Certified  Developer v7
Gitesh - 6/27/2012 6:01:30 PM
   
RE:Discount Coupon - Need some help
Hi Zdenek,

I wasn't aware of this api example page for e-commerce.

I think this should do my job.

Thanks for pointing me to that page.

Cheers
Gitesh Shah