saghir69 Posted May 18, 2008 Posted May 18, 2008 Hi I'm new to OSC and don't know which files I need to change to change the stuff on the pages. which page is being used to show products on a catagory page? I want to change the link on the product images, where is this set in osc files?
♥geoffreywalton Posted May 18, 2008 Posted May 18, 2008 A good place to start is to read the documentation that comes with the package. Alternatively read the knowlwdgebase and first 2 threads in the installation forum. http://www.oscommerce.info/kb/osCommerce/C...sign_and_Layout Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>.
saghir69 Posted May 18, 2008 Author Posted May 18, 2008 Hi thanks for that. I will look at the link. Does anyone know which file is OSC constructing the catagory listing page from? I just want to know which file/files are being used to show product on a catagory page?
spooks Posted May 18, 2008 Posted May 18, 2008 catalog\includes\modules\product_listing.php hope that helps ;) Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al.
saghir69 Posted May 19, 2008 Author Posted May 19, 2008 catalog\includes\modules\product_listing.php hope that helps ;) Thanks. Found what I was after.
dtucker40 Posted May 21, 2008 Posted May 21, 2008 I AM GETTING DESPERATE CAN YOU PLEASE HELP ME I am trying to remove the sub category text links from the center of my video link page I have tried different things and still it won’t disappear. If I click on the text It shows the picture and info so the pics seem to all be there but that’s not what I want. I just want picture links on center of page and the Featured products banner I Added at the top of page not in the middle. I want it to look like my software page This is the link for video page I have milston2.2 http://nickelwise.net/index.php?cPath=210 Any help would be appreciated and Thank you in advance for your help
Guest Posted May 21, 2008 Posted May 21, 2008 I AM GETTING DESPERATE CAN YOU PLEASE HELP ME I am trying to remove the sub category text links from the center of my video link page I have tried different things and still it won’t disappear. If I click on the text It shows the picture and info so the pics seem to all be there but that’s not what I want. I just want picture links on center of page and the Featured products banner I Added at the top of page not in the middle. I want it to look like my software page This is the link for video page I have milston2.2 http://nickelwise.net/index.php?cPath=210 Any help would be appreciated and Thank you in advance for your help You have more problems than what you mentioned. Your site is moving very slow. As far as your category links, take a look at your category Rock. Notice how your subcat links do not show in the middle? That is because you have 2 products in the category Rock and then the subcats. In the category Video you have all of your products in the subcats, none in the Video category. To remove the subcat links from the middle of your page find this part in catalog/index.php around line 104 echo ' <td align="center" class="smallText" width="' . $width . '" valign="top"><a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . tep_image(DIR_WS_IMAGES . $categories['categories_image'], $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '<br>' . $categories['categories_name'] . '</a></td>' . "\n"; Change to //echo ' <td align="center" class="smallText" width="' . $width . '" valign="top"><a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . tep_image(DIR_WS_IMAGES . $categories['categories_image'], $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '<br>' . $categories['categories_name'] . '</a></td>' . "\n"; You could also do this however I have not tested it so I'm not sure if it is valid or not. You may want to seek other advice to its validity. In catalog/index.php find this section if (isset($cPath) && strpos('_', $cPath)) { // check to see if there are deeper categories within the current category $category_links = array_reverse($cPath_array); for($i=0, $n=sizeof($category_links); $i<$n; $i++) { $categories_query = tep_db_query("select count(*) as total from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$category_links[$i] . "' and c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "'"); $categories = tep_db_fetch_array($categories_query); if ($categories['total'] < 1) { // do nothing, go through the loop } else { $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.categories_image, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$category_links[$i] . "' and c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "' order by sort_order, cd.categories_name"); break; // we've found the deepest category the customer is in } } } else { $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.categories_image, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$current_category_id . "' and c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "' order by sort_order, cd.categories_name"); } $number_of_categories = tep_db_num_rows($categories_query); $rows = 0; while ($categories = tep_db_fetch_array($categories_query)) { $rows++; $cPath_new = tep_get_path($categories['categories_id']); $width = (int)(100 / MAX_DISPLAY_CATEGORIES_PER_ROW) . '%'; echo ' <td align="center" class="smallText" width="' . $width . '" valign="top"><a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . tep_image(DIR_WS_IMAGES . $categories['categories_image'], $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '<br>' . $categories['categories_name'] . '</a></td>' . "\n"; if ((($rows / MAX_DISPLAY_CATEGORIES_PER_ROW) == floor($rows / MAX_DISPLAY_CATEGORIES_PER_ROW)) && ($rows != $number_of_categories)) { echo ' </tr>' . "\n"; echo ' <tr>' . "\n"; } } Change to /* if (isset($cPath) && strpos('_', $cPath)) { // check to see if there are deeper categories within the current category $category_links = array_reverse($cPath_array); for($i=0, $n=sizeof($category_links); $i<$n; $i++) { $categories_query = tep_db_query("select count(*) as total from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$category_links[$i] . "' and c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "'"); $categories = tep_db_fetch_array($categories_query); if ($categories['total'] < 1) { // do nothing, go through the loop } else { $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.categories_image, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$category_links[$i] . "' and c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "' order by sort_order, cd.categories_name"); break; // we've found the deepest category the customer is in } } } else { $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.categories_image, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$current_category_id . "' and c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "' order by sort_order, cd.categories_name"); } $number_of_categories = tep_db_num_rows($categories_query); $rows = 0; while ($categories = tep_db_fetch_array($categories_query)) { $rows++; $cPath_new = tep_get_path($categories['categories_id']); $width = (int)(100 / MAX_DISPLAY_CATEGORIES_PER_ROW) . '%'; echo ' <td align="center" class="smallText" width="' . $width . '" valign="top"><a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . tep_image(DIR_WS_IMAGES . $categories['categories_image'], $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '<br>' . $categories['categories_name'] . '</a></td>' . "\n"; if ((($rows / MAX_DISPLAY_CATEGORIES_PER_ROW) == floor($rows / MAX_DISPLAY_CATEGORIES_PER_ROW)) && ($rows != $number_of_categories)) { echo ' </tr>' . "\n"; echo ' <tr>' . "\n"; } } */ Notice how we left in this part at the end of the code // needed for the new products module shown below $new_products_category_id = $current_category_id; That is need for the new products module.
dtucker40 Posted May 22, 2008 Posted May 22, 2008 Hello again I just wanted to let you know that I tried both codes one at a time and then both together it works both ways. I am curious about what browser you are using I have explore and my site seem to come up fast but other times it seem slow not sure what the problem is. I thought maybe it was a server problem. Thank You so much for your help dtucker40
Guest Posted May 22, 2008 Posted May 22, 2008 Could be your server or osc itself. Try looking into some of the speed opthamizing contirbutions to see if it helps.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.