boomah Posted July 9, 2003 Share Posted July 9, 2003 G'Day Folks; Is there a way of removing the link to the product_info.php page from the product listing page? Also I was wondering if the product listing page could also have the "price" and "add to cart" as well as the "product name", "manufacturer" and "model"... The reason being is that I have a stack of stuff to put in the shop and don't have the need or the time for the product_info page with images etc ... Cheers Shane Beer is proof that God loves us and wants us to be happy. :: Homer Simpson Link to comment Share on other sites More sharing options...
Rumble Posted July 11, 2003 Share Posted July 11, 2003 Hi Shane, Remember to back up before you do any changes! Open the catalog/includes/modules/product_listing.php file. At around line 112 find the following; case 'PRODUCT_LIST_NAME': if ($HTTP_GET_VARS['manufacturers_id']) { $lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing_values['products_id'], 'NONSSL') . '">' . $listing_values['products_name'] . '</a>'; } else { $lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing_values['products_id']) . '">' . $listing_values['products_name'] . '</a> '; } break; ..... and replace with .... case 'PRODUCT_LIST_NAME': if ($HTTP_GET_VARS['manufacturers_id']) { $lc_text = $listing_values['products_name']; } else { $lc_text = $listing_values['products_name'] . ' '; } break; Then around line 138 find the following; case 'PRODUCT_LIST_IMAGE': $lc_align = 'center'; if ($HTTP_GET_VARS['manufacturers_id']) { $lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing_values['products_id'], 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . $listing_values['products_image'], $listing_values['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>'; } else { $lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing_values['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing_values['products_image'], $listing_values['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a> '; } break; ...... and replace with ....... case 'PRODUCT_LIST_IMAGE': $lc_align = 'center'; if ($HTTP_GET_VARS['manufacturers_id']) { $lc_text = tep_image(DIR_WS_IMAGES . $listing_values['products_image'], $listing_values['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT); } else { $lc_text = ' ' . tep_image(DIR_WS_IMAGES . $listing_values['products_image'], $listing_values['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . ' '; } break; I think that should be it! Remember to back up before you do any changes! As for; Also I was wondering if the product listing page could also have the "price" and "add to cart" as well as the "product name", "manufacturer" and "model"... Go to admin/configuration.php and click on 'Product Listing' in the submenu and you can choose which options/info to display on the product listing pages! They are even sortable in which order they appear from left to right ie to have image, model, name, manufacturer, price, buy now. image = 1 model = 2 name = 3 etc etc. Hope this helps! Reddy to Rumble Thank you osCommerce and all who Contribute to her! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.