Hi, just populated the database, went smooth.
Now, how to take away the model number that is used as the index.
In all my products a number is displayed, which is irrelevant.
Thanks for your help.,
Mike
This is a discussion on after easypopulate, how to take away the model number? within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Hi, just populated the database, went smooth. Now, how to take away the model number that is used as the ...
Hi, just populated the database, went smooth.
Now, how to take away the model number that is used as the index.
In all my products a number is displayed, which is irrelevant.
Thanks for your help.,
Mike
sorry, and this of course refers to useing easy populate
Mike
Well, it seams that there is no otherway than go into phpmyadmin and delete all model numbers manually.
What I thought would be the better way. Locate the string where the actual adding of model number to product name takes place and delete it. I looked in product_info_tpl.php but could not find any trace of it.
The problem is that if you ever want to use easypopulate again, you will not be able to.
How about just changing your product info pages and breadcrumb trail to not use the model number?
Michael Sasek
osCMax Developer
osCmax Installation Service - Have our professionals install osCmax on your server - same day service!
osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5
Stay Up To Date with everything osCMax:
Free osCmax Newsletters - Security notices, New Releases, osCMax News
osCmax on Twitter - Up to the minute info as it happens. Know it first.
osCmax Documentation
That would be nice. Any leads?
To delete them perm, use in phpmyadmin;
UPDATE products SET products_model = NULL;
No, the model number would still be in the database, you just wouldnt display it on your site. So, edit the product_info.tpl.php not to display it. Edit the breadcrumb trail not to display it.
You are not touching the database, just changing what you display from the query. It is a more simple solution that will allow you to continue to use easypopulate as well as give you the output you want, namely, no model numbers.
Michael Sasek
osCMax Developer
osCmax Installation Service - Have our professionals install osCmax on your server - same day service!
osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5
Stay Up To Date with everything osCMax:
Free osCmax Newsletters - Security notices, New Releases, osCMax News
osCmax on Twitter - Up to the minute info as it happens. Know it first.
osCmax Documentation
It worked ok, thanks.
Here is how to do it:
in templates/content/product.info.tpl.php -delete from query: p.products_model,
in includes/application_top.php around line 500 edit out the: add the products model to the breadcrumb trail
// 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']));
// }
// }
Cheers
Mike
Bookmarks