Hi,
Is there a way to show or hide checkout terms and conditions depending on the product?
Thanks in advance,
regards,
Sunil
Dynamically show or hide checkout terms and condition
Re: Dynamically show or hide checkout terms and condition
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?
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?