Dynamically show or hide checkout terms and condition

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
hubsun
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 32
Joined: Mon Nov 10, 2008 4:01 am

Dynamically show or hide checkout terms and condition

Post by hubsun » Fri Nov 04, 2011 12:17 am

Hi,

Is there a way to show or hide checkout terms and conditions depending on the product?

Thanks in advance,
regards,
Sunil

User avatar
david-ebt
Captain (CAPT)
Captain (CAPT)
Posts: 253
Joined: Fri Dec 31, 2010 10:12 am

Re: Dynamically show or hide checkout terms and condition

Post by david-ebt » Fri Nov 04, 2011 1:22 pm

Right now Terms and Conditions are set up at the store level, not the product level.

If you wanted to use the same Terms and Conditions text but display only if certain products are in the cart, you could add a product template field or custom field to every product that indicated whether it required the terms. Then you would need to change the code in the Conlib\OnePageCheckout.ascx.cs file (search for CHECK FOR TERMS AND CONDITIONS) to looks through every product in the basket looking for the flag instead of using the Store.Settings.CheckoutTermsAndConditions setting.

Does that help?
David
http://www.ecombuildertoday.com
Enhanced Reporting for AbleCommerce
Image

Post Reply