Display a Product Template based on a condition.

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
Mike718NY
Commodore (COMO)
Commodore (COMO)
Posts: 485
Joined: Wed Jun 18, 2008 5:24 pm

Display a Product Template based on a condition.

Post by Mike718NY » Wed Jul 29, 2009 8:57 am

Is it possible to display a Product Template based on a condition
in the BuyProductDialog.ascx web control?

For example, if I created a product template named "Personalized":

Code: Select all

            if (_Product.ManufacturerId == 3)
            {
              //  display "Personalized" product template
            }
Is this possible?

ZLA
Commodore (COMO)
Commodore (COMO)
Posts: 496
Joined: Fri Mar 13, 2009 2:55 pm

Re: Display a Product Template based on a condition.

Post by ZLA » Wed Jul 29, 2009 9:22 am

Your example doesn't make sense to me. Since templates are tied to a particular product, your example seems redundant. (If you are testing for product.manufacturer, you already know the product and therefore whether or not the product has a template.) Have I missed something?

Mike718NY
Commodore (COMO)
Commodore (COMO)
Posts: 485
Joined: Wed Jun 18, 2008 5:24 pm

Re: Display a Product Template based on a condition.

Post by Mike718NY » Wed Jul 29, 2009 9:31 am

>> Have I missed something?

Yes. I want to add additional processing with that product template.
It's for "Add Engraving", from my other post you replied too.

ZLA
Commodore (COMO)
Commodore (COMO)
Posts: 496
Joined: Fri Mar 13, 2009 2:55 pm

Re: Display a Product Template based on a condition.

Post by ZLA » Wed Jul 29, 2009 9:53 am

I understand. You want a condition for extra processing, not just to display a given template. I put my comments about the javascript issue into the other thread.

Post Reply