malyha1 Posted July 29, 2004 Posted July 29, 2004 I want to add more descriptions/manufacturers to the books I am selling so that I can list them by categories, publishing companies, and by authors. I am guessing that is what product attributes are for, right? Thanks
♥yesudo Posted July 29, 2004 Posted July 29, 2004 i dont think attributes will suit your dilemma. an example of attribute use is HERE you probably just want to create more categories so that a product can appear in more than one. or maybe look into how the dropdown list for maufacturers is done and try and replicate that. unless i have missed somert. Your online success is Paramount.
malyha1 Posted July 30, 2004 Author Posted July 30, 2004 Thanks I have two categories, one for each language. I also added the subcategories(subjects of book) to each language. I want to add codes so that 5when a language is selected, only its category subcategories are listed on the left. I dont know php and am very scared to play with it. I played with other pages and made very simple changes but this is too big for me. Thanks again
♥yesudo Posted July 30, 2004 Posted July 30, 2004 don't be scared to play - just backup the files u want to edit first. Your online success is Paramount.
malyha1 Posted August 1, 2004 Author Posted August 1, 2004 Thanks for your encouragement. I added an if statement and it worked. However, I want to display the categories names in table field so that when someone hovers over them, they change colors. I tried by inserting <td> and <tr> but the table was displayed before the categories list. What am I doing wrong? This is how it looks like while ($categories = tep_db_fetch_array($categories_query)) { /*I added the if statement inside the above while loop to display categories when languages are selected*/ if ($categories['categories_name']){?> <table width="100%" border="2" cellpadding="10"> <td><?php $tree[$categories['categories_id']] = array('name' => $categories['categories_name'], 'parent' => $categories['parent_id'], 'level' => 0, 'path' => $categories['categories_id'], 'next_id' => false); if (isset($parent_id)) { $tree[$parent_id]['next_id'] = $categories['categories_id']; } $parent_id = $categories['categories_id']; if (!isset($first_element)) { $first_element = $categories['categories_id']; }?></td></table> <?php} } What am I doing wrong?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.