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.
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.
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/
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.
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 } ?>
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
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.