How to access GiftCertificate object in active basket?

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
nickc
Captain (CAPT)
Captain (CAPT)
Posts: 276
Joined: Thu Nov 29, 2007 3:48 pm

How to access GiftCertificate object in active basket?

Post by nickc » Tue Jun 17, 2008 3:46 pm

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

User avatar
sohaib
Developer
Developer
Posts: 1079
Joined: Fri Jan 23, 2004 1:38 am

Re: How to access GiftCertificate object in active basket?

Post by sohaib » Wed Jun 18, 2008 5:21 am

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

Post Reply