brooklyn Posted June 11, 2005 Share Posted June 11, 2005 My new store is opening very soon (hopefully ;) ), I would love to hear what you think. I've had the help of a designer and a couple of attempts at doing things myself. My very first store We sell baby carriers/slings. The photos all need to be loaded/reloaded/optimised/resized so don't worry about that. Thank you very much Link to comment Share on other sites More sharing options...
♥14steve14 Posted June 15, 2005 Share Posted June 15, 2005 I quite like the look of your site, but as you have had a designer do the work, i should. REMEMBER BACKUP, BACKUP AND BACKUP Link to comment Share on other sites More sharing options...
♥Monika in Germany Posted June 15, 2005 Share Posted June 15, 2005 I quite like the look of your site, but as you have had a designer do the work, i should. <{POST_SNAPBACK}> Hi Anne, I like the look too. I think though that viewing it in 800x600 makes it clear that it looks so much better, so I'd def change it to a center shop design (use the one by vger, it's fabulous). I am a little bit confused that the domain name and the company name are not the same (engl/french). I can see we are redirected later to the "bleu" version, not sure what's up there. On the "our wraps" page there is a pic on the left, flowing together with the text. dd a width tag to the image cell, and it should look much better. Make your own search button, and change the text below to something shorter. Also, I don't like that the categories menu etc is in blue but shopping cart and search in black font. ou also needmore space between cart and search. HTH Monika :-) Monika addicted to writing code ... can't get enough of databases either, LOL! my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum Interactive Media Award July 2007 ~ category E-Commerce my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ... Link to comment Share on other sites More sharing options...
brooklyn Posted June 15, 2005 Author Share Posted June 15, 2005 Thank you so much for taking the time to look at time, really appreciated. I quite like the look of your site, but as you have had a designer do the work, i should. Working from home with a one year old baby, I felt it was the only way I could get started in a reasonable amount of time. I'm glad I did and now, I'm having a lot of fun digging through the resources here to make the changes myself. I'd def change it to a center shop design & our wraps I'll try that ... it might take me a while though :huh: Make your own search button, and change the text below to something shorter. Also, I don't like that the categories menu etc is in blue but shopping cart and search in black font. ou also needmore space between cart and search. Thanks for pointing the obvious ... I've been staring at my site for so long that I didn't notice! :blush: On the name confusion, calinblue was our test site - now, everything should be calinbleu The other thing I want to try is move everything to the root. Link to comment Share on other sites More sharing options...
Guest Posted June 15, 2005 Share Posted June 15, 2005 Would be better if categories under Wraps Slings were indented, I didnt realise they were subcategories of Wraps Slings Link to comment Share on other sites More sharing options...
brooklyn Posted June 15, 2005 Author Share Posted June 15, 2005 Would be better if categories under Wraps Slings were indented, I didnt realise they were subcategories of Wraps Slings I agree with you - I don't like the way it's showing atm - apparently, it's because the contribution that leaves the subcategories showing is installed. Does anyone know a way around this. Also, once you've clicked on the subcategory, it doesn't let you click on "wrap slings" <_< I've also changed the Search button but I can't figure out why the "No items in cart" is showing in black - where do I change this? Sorry if it sounds like a very stupid question :blush: Thanks again for your help Link to comment Share on other sites More sharing options...
Guest Posted June 15, 2005 Share Posted June 15, 2005 I agree with you - I don't like the way it's showing atm - apparently, it's because the contribution that leaves the subcategories showing is installed. Does anyone know a way around this.Also, once you've clicked on the subcategory, it doesn't let you click on "wrap slings" <_< I've also changed the Search button but I can't figure out why the "No items in cart" is showing in black - where do I change this? Sorry if it sounds like a very stupid question :blush: Thanks again for your help <{POST_SNAPBACK}> I did it for a client of mine (http://www.corries.com/) but I coded it myself not a contribution, and it was a while ago. The text colour may be in the stylesheet.css class="boxText" Link to comment Share on other sites More sharing options...
brooklyn Posted June 15, 2005 Author Share Posted June 15, 2005 I did it for a client of mine (http://www.corries.com/) but I coded it myself not a contribution, and it was a while ago. <{POST_SNAPBACK}> this site looks exactly how I would like my categories to look like. But the coding is way above my capabilities. It took me more than an hour to get the search button done. Maybe one day? If you decide to publish it as a contribution, let me know. Thx Link to comment Share on other sites More sharing options...
Guest Posted June 15, 2005 Share Posted June 15, 2005 this site looks exactly how I would like my categories to look like. But the coding is way above my capabilities. It took me more than an hour to get the search button done. Maybe one day?If you decide to publish it as a contribution, let me know. Thx <{POST_SNAPBACK}> Here is the code in the categories.php file stuff I added has comments //added Mike Quinn 28 January 2004 and //end of addition there are also other parts where I have put comment to explain small changes. Usual rules apply if you bugger up your site I'm not responsible :-" <?php /* $Id: categories.php,v 1.25 2003/07/09 01:13:58 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ function tep_show_category($counter) { global $tree, $categories_string, $cPath_array; //print "Counter: $counter"; for ($i=0; $i<$tree[$counter]['level']; $i++) { $categories_string .= " "; } $categories_string .= '<img src="images/infobox/dot.gif" height="7" width="7"> <a href="'; if ($tree[$counter]['parent'] == 0) { $cPath_new = 'cPath=' . $counter; } else { $cPath_new = 'cPath=' . $tree[$counter]['path']; } $categories_string .= tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">'; if (isset($cPath_array) && in_array($counter, $cPath_array)) { $categories_string .= '<b>'; } // display category name $categories_string .= $tree[$counter]['name']; if (isset($cPath_array) && in_array($counter, $cPath_array)) { $categories_string .= '</b>'; } //if (tep_has_category_subcategories($counter)) { //$categories_string .= '->'; //} $categories_string .= '</a>'; if (SHOW_COUNTS == 'true') { $products_in_category = tep_count_products_in_category($counter); if ($products_in_category > 0) { $categories_string .= ' (' . $products_in_category . ')'; } } $categories_string .= '<br>'; if ($tree[$counter]['next_id'] != false) { tep_show_category($tree[$counter]['next_id']); } } ?> <!-- categories //--> <tr> <td> <?php $info_box_contents = array(); //$info_box_contents[] = array('text' => BOX_HEADING_CATEGORIES); $info_box_contents[] = array('text'=>'<img src="images/infobox/browse.gif" height="15" width="131">'); new infoBoxHeading($info_box_contents, false, false); $categories_string = ''; $tree = array(); $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '0' and c.categories_id = cd.categories_id and cd.language_id='" . (int)$languages_id ."' order by sort_order, cd.categories_name"); while ($categories = tep_db_fetch_array($categories_query)) { $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']; $SecondLevelCategories = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = {$categories['categories_id']} and c.categories_id = cd.categories_id and cd.language_id='" . (int)$languages_id ."' order by sort_order, cd.categories_name"); //added Mike Quinn 28 January 2004 while($SecondLevel = tep_db_fetch_array($SecondLevelCategories)){ $tree[$SecondLevel['categories_id']] = array('name' => $SecondLevel['categories_name'], 'parent' => $SecondLevel['parent_id'], 'level' => 1, 'path' => $SecondLevel['categories_id'], 'next_id' => false); if (isset($parent_id)) { $tree[$parent_id]['next_id'] = $SecondLevel['categories_id']; } $parent_id = $SecondLevel['categories_id']; } // while //end of addition if (!isset($first_element)) { $first_element = $categories['categories_id']; } } //------------------------ if (tep_not_null($cPath)) { $new_path = ''; reset($cPath_array); while (list($key, $value) = each($cPath_array)) { //added Mike Quinn 28 January 2004 $IsTopQuery = tep_db_query("select c.parent_id from " . TABLE_CATEGORIES . " c where c.categories_id = ".(int)$value." and c.parent_id = 0"); if (tep_db_num_rows($IsTopQuery)) { continue; } // end of addition unset($parent_id); unset($first_id); $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$value . "' and c.categories_id = cd.categories_id and cd.language_id='" . (int)$languages_id ."' order by sort_order, cd.categories_name"); if (tep_db_num_rows($categories_query)) { $new_path .= $value; while ($row = tep_db_fetch_array($categories_query)) { $tree[$row['categories_id']] = array('name' => $row['categories_name'], 'parent' => $row['parent_id'], 'level' => $key+2,//changed from +1 to +2 'path' => $new_path . '_' . $row['categories_id'], 'next_id' => false); if (isset($parent_id)) { $tree[$parent_id]['next_id'] = $row['categories_id']; } $parent_id = $row['categories_id']; if (!isset($first_id)) { $first_id = $row['categories_id']; } $last_id = $row['categories_id']; } $tree[$last_id]['next_id'] = $tree[$value]['next_id']; $tree[$value]['next_id'] = $first_id; $new_path .= '_'; } else { break; } } } tep_show_category($first_element); //$categories_string .= '<tr><td align="right"><a href=""><img src="images/infobox/more_arrow.gif" border="0"></a></tr>'; $categories_string = substr($categories_string,0,strlen($categories_string)-4); $info_box_contents = array(); $info_box_contents[] = array('text' => $categories_string); new infoBox($info_box_contents); $info_box_contents = array(); $info_box_contents[] = array('text'=>'<img src="images/infobox/bottom_bar.gif" height="15" width="131">'); new infoBoxHeading($info_box_contents, false, false); ?> </td> </tr> <!-- categories_eof //--> Link to comment Share on other sites More sharing options...
Guest Posted June 15, 2005 Share Posted June 15, 2005 It is this piece of code that is doing the actual indenting for ($i=0; $i<$tree[$counter]['level']; $i++) { $categories_string .= " "; } So if there is a similar bit in your file then thats all you would need to change (basically it looking to see if the category level is 0 (parent) if not then it is putting 2 spaces before the sub-category name. Link to comment Share on other sites More sharing options...
brooklyn Posted June 15, 2005 Author Share Posted June 15, 2005 fantastic - I'll try that. Link to comment Share on other sites More sharing options...
brooklyn Posted June 16, 2005 Author Share Posted June 16, 2005 Mike, thanks a lot for the code, it works great. I just need to figure out how to take the -> for the category. Haven't been able to track it down yet. Steve, I like the way your store breadcrumbs don't have the catalogue. I'm sure someone has already explained how to do it but I can't find. I've search - move store root - but no luck. Can you point me in the right direction? Thanks a lot Link to comment Share on other sites More sharing options...
Guest Posted June 16, 2005 Share Posted June 16, 2005 Mike, thanks a lot for the code, it works great. I just need to figure out how to take the -> for the category. Haven't been able to track it down yet. Steve, I like the way your store breadcrumbs don't have the catalogue. I'm sure someone has already explained how to do it but I can't find. I've search - move store root - but no luck. Can you point me in the right direction? Thanks a lot <{POST_SNAPBACK}> its in my code //if (tep_has_category_subcategories($counter)) { //$categories_string .= '->'; //} Just comment it out as I have by putting // at start of each line or /* if (tep_has_category_subcategories($counter)) { $categories_string .= '->'; } */ /* this comments whole blocks of code */ Link to comment Share on other sites More sharing options...
Guest Posted June 16, 2005 Share Posted June 16, 2005 Steve, I like the way your store breadcrumbs don't have the catalogue. I'm sure someone has already explained how to do it but I can't find. I've search - move store root - but no luck. Can you point me in the right direction? Thanks a lot <{POST_SNAPBACK}> In inlcudes/languages/english.php there is a constant defined, just change that define('HEADER_TITLE_CATALOG', 'Home'); Link to comment Share on other sites More sharing options...
brooklyn Posted June 16, 2005 Author Share Posted June 16, 2005 In includes/languages/english.php there is a constant defined, just change that define('HEADER_TITLE_CATALOG', 'Home'); <{POST_SNAPBACK}> Mike, Thanks for the help It pointed me in the right direction. I didn't do it quite that way in the end, because the problem I had was 2 "Home" with your solution, as I had already moved catalogue to my Web server root Thus my breadcrumb was Home::Home::category with the respective html visible for each Home was www.calinbleu.com www.calinbleu.com/index.php?....... Instead I went to includes/application_top.php and commented out the following line $breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER); // $breadcrumb->add(HEADER_TITLE_CATALOG, tep_href_link(FILENAME_DEFAULT)); Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.