close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

How can I change Details template based on product category?

Thread began 12/01/2011 7:25 am by bhblake | Last modified 12/02/2011 9:22 am by Jason Byrnes | 1093 views | 3 replies |

bhblake

How can I change Details template based on product category?

How can I based on product type, i.e. a stereo versus a coat have different detail product options show on the details pages based on a product category field?

Thanks in advance.

Sign in to reply to this post

Jason ByrnesWebAssist

the options should be based on the product, not the category, you may have one coat available in small medium and large, and another coat only available in small and medium.


in the free eCommerce database that we make available, there are three tables for options:

1) optiongroups - this table defines the types of options, "Size", "Color"

2) options - this table defines the option names, "small", "medium", "red" or "blue" for example. it uses the OptionGroupID column to relate each option to the options group defined in the optionsgroups table using the optiongroups.optionGroupID column.

3) productoptions - this is a linking table that creates a many to many relationship between the options and the products. it is used to assign an option to a product.

productoptions.productID relates to the products.ProductID column
productoptions.OptionID relates to the options.optionID column

see the Product Options with eCart tutorial on the eCart support page for more details:
ecart/

Sign in to reply to this post

bhblake

I am successfully using the options drop down list and such, however what I was asking was more so on is there a way based on "product" category to change the full detail layout - such as populate and different field types and 1 image versus 3 images. that sort of thing. This is demonstrated that is was done in the eCart old video where one of the shoes has two options fields and another only has one option field.

I don't think I previously expressed the scope of what I wanted to accomplish.

Thanks in advance.

Sign in to reply to this post

Jason ByrnesWebAssist

you would need to hand code if statements around the pieces of the detail page so that only show for certain categories:

for example:
<?php if($row_recordsetName['categoryColumn'] =="coats") { ?>
Something to show only for coats
<?php } ?>

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...