Page 1 of 1

How to access GiftCertificate object in active basket?

Posted: Tue Jun 17, 2008 3:46 pm
by nickc
Given that a basket can exist in a partially paid state (e.g. $100 basket has 2 $25 gift certificate payments applied), how does one get to those objects? CommerceBuilder.Orders.Basket class does not seem to have a property or method for obtaining that collection, and CommerceBuilder.Orders.Order instance does not yet exist?

-Nick

Re: How to access GiftCertificate object in active basket?

Posted: Wed Jun 18, 2008 5:21 am
by sohaib
Gift Certificate payments are basket items along with other basket items.
You identify gift certificate payment type basket items by their type
for gift certificate payment types

Code: Select all

item.OrderItemType == OrderItemType.GiftCertificatePayment