Display warning for certain products

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
User avatar
efficiondave
Commander (CMDR)
Commander (CMDR)
Posts: 151
Joined: Tue Dec 02, 2008 10:20 am
Location: St. Louis Missouri
Contact:

Display warning for certain products

Post by efficiondave » Thu Aug 30, 2018 4:18 am

For California Prop 65, we need to display a warning for certain products. I'm looking for an easy way to pick the products and display the warning. Product Templates have a great system for associating the template to specific products so I created a new product template and associated the products to it but I'm not sure how to check if the product is associated to the template from the ProductDescription.ascx or ProductDescription.ascx.cs file. Any thoughts?

jguengerich
Commodore (COMO)
Commodore (COMO)
Posts: 436
Joined: Tue May 07, 2013 1:59 pm

Re: Display warning for certain products

Post by jguengerich » Thu Aug 30, 2018 9:00 am

The CustomFields user control on that page displays them. It utilizes the ProductCustomFieldsDialog ConLib. Assuming you are using a Merchant Field in the template, you will need to provide a value for that field for each product (via the Templates tab when editing the product) before the template field will be shown with that product's description.
Jay

Post Reply