abubobbob Posted October 16, 2007 Share Posted October 16, 2007 Hi everyone hope someone can help me with this one. In the whats new box the products are shown as such... Product Name Date Added: Monday 16 October, 2007 Manufacturer: Price: Ive been filling out the model instead of manufacturer for all my products so wondered if there was a way to change it to show the model field instead here. Also i would like to do the same on the advanced search box for when it does not return a product found, how would i change that drop down box to being a list of model names. Lastly the bread crumb for a product shows as such: catalog--->categories--->subcatagory---->subsubcatagory---->model I just want to delete the model name off the end of all product subcatagories. Thanks for any help given Adam Link to comment Share on other sites More sharing options...
ssmith546 Posted January 2, 2008 Share Posted January 2, 2008 The following will allow you to change the manufacturer to model in the whats_new pages. The rest of what you request, I am not sure at this time on how to make the changes you requested. Remember, before changing any of the files listed below, always save your original files so if you need to you can put them back in your webfiles. First go to catalog\includes\languages\english folder and open up products_new.php Find define('TEXT_PRICE', 'Price:');?> and change it to define('TEXT_PRICE', 'Price:');define('TEXT_MODEL_NUMBER', 'Model number:');?> Next replace your original file with this modified one in your webfiles. Next go to the Catalog folder and open up products_new.php First find p.products_price, p.products_tax_class_id, and change to p.products_price, p.products_model, p.products_tax_class_id, Next find TEXT_MANUFACTURER . ' ' . $products_new['manufacturers_name'] and change to TEXT_MODEL_NUMBER . ' <b>' . $products_new['products_model'] Now replace your original file with this modified one in your webfiles. If you make the changes as stated above it should work fine. Steve S. Link to comment Share on other sites More sharing options...
ssmith546 Posted January 2, 2008 Share Posted January 2, 2008 To change your breadcrumb trail to read catalog--->categories--->subcatagory---->subsubcatagory Find the catalog\includes folder and open up application_top.php Find } elseif (isset($HTTP_GET_VARS['manufacturers_id'])) { $manufacturers_query = tep_db_query("select manufacturers_name from " . TABLE_MANUFACTURERS . " where manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "'"); if (tep_db_num_rows($manufacturers_query)) { $manufacturers = tep_db_fetch_array($manufacturers_query); $breadcrumb->add($manufacturers['manufacturers_name'], tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'])); } } // add the products model to the breadcrumb trail if (isset($HTTP_GET_VARS['products_id'])) { $model_query = tep_db_query("select products_model from " . TABLE_PRODUCTS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "'"); if (tep_db_num_rows($model_query)) { $model = tep_db_fetch_array($model_query); $breadcrumb->add($model['products_model'], tep_href_link(FILENAME_PRODUCT_INFO, 'cPath=' . $cPath . '&products_id=' . $HTTP_GET_VARS['products_id'])); } } // initialize the message stack for output messages require(DIR_WS_CLASSES . 'message_stack.php'); $messageStack = new messageStack; Change it to } elseif (isset($HTTP_GET_VARS['manufacturers_id'])) { $manufacturers_query = tep_db_query("select manufacturers_name from " . TABLE_MANUFACTURERS . " where manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "'"); if (tep_db_num_rows($manufacturers_query)) { $manufacturers = tep_db_fetch_array($manufacturers_query); $breadcrumb->add($manufacturers['manufacturers_name'], tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'])); } } // initialize the message stack for output messages require(DIR_WS_CLASSES . 'message_stack.php'); $messageStack = new messageStack; Now save your new file and load it to your webfiles Remember to always save your original files so you can put them back on if you need to. Steve S. Link to comment Share on other sites More sharing options...
ssmith546 Posted January 2, 2008 Share Posted January 2, 2008 As for your search request. Please take a look at this contribution. I am not sure, but it may be what you are looking for. http://www.oscommerce.com/community/contributions,2698 Hope this all helps. Steve S. Link to comment Share on other sites More sharing options...
hellis Posted September 25, 2008 Share Posted September 25, 2008 Hello I need to make something similar, when I select a product I want in breadcrumb the manufacturer for this product, now I have the model, and I need the manufacturer instead model name. The actual code work only for manufacturers page not for product page. Somebody can help me?? Link to comment Share on other sites More sharing options...
hellis Posted September 27, 2008 Share Posted September 27, 2008 nobody?? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.