• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

CGrouse
#1 Posted : Wednesday, November 22, 2006 8:56:33 AM(UTC)
CGrouse

Rank: Member

Joined: 6/4/2004(UTC)
Posts: 291

I was looking for the section to enter promo codes, and realized that it was in the cart, not the checkout area.


How would I relocate it?
Thanks,


Christopher
jetheredge
#2 Posted : Monday, November 27, 2006 10:32:39 AM(UTC)
jetheredge

Rank: Member

Joined: 3/1/2006(UTC)
Posts: 1,142

This would most likely be a non-trivial change, but you could put a text field and a button the checkout page and in the on click event for the button put code similar to this...

Dim Basket As Orders.Order = SessionManager.CurrentShoppingCart
Dim couponResult As BVOperationResult = Basket.AddCouponCode(Me.CouponField.Text.Trim, True)
If couponResult.Success = False Then
MessageBox1.ShowError(couponResult.Message)
End If

That would add the coupon code to the current shopping cart.

You would also need a gridview to display the current coupon codes. Just copy the gridview from the "CouponGrid" GridView from the cart page, and make sure that you bind it against the cart coupons like this...

Me.CouponGrid.DataSource = Basket.Coupons
Me.CouponGrid.DataBind()

You would also need to rebind it anytime that you added another coupon. Hope this helps...
Justin Etheredge
Senior Software Engineer
BVSoftware
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

©2024 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012