Page 1 of 1

Dynamically show or hide checkout terms and condition

Posted: Fri Nov 04, 2011 12:17 am
by hubsun
Hi,

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

Thanks in advance,
regards,
Sunil

Re: Dynamically show or hide checkout terms and condition

Posted: Fri Nov 04, 2011 1:22 pm
by david-ebt
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?