osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

after easypopulate, how to take away the model number?

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 05-10-2004, 04:41 AM
Member
 
Join Date: Nov 2003
Location: Greece
Posts: 69
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
vandiike
Default after easypopulate, how to take away the model number?

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 05-10-2004, 05:08 AM
Member
 
Join Date: Nov 2003
Location: Greece
Posts: 69
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
vandiike
Default

sorry, and this of course refers to useing easy populate



Mike
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 05-11-2004, 07:03 AM
Member
 
Join Date: Nov 2003
Location: Greece
Posts: 69
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
vandiike
Default

Well, it seams that there is no otherway than go into phpmyadmin and delete all model numbers manually.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 05-11-2004, 07:08 AM
Member
 
Join Date: Nov 2003
Location: Greece
Posts: 69
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
vandiike
Default

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 05-11-2004, 08:09 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 11,058
Thanks: 80
Thanked 348 Times in 327 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

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 Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 05-12-2004, 09:13 AM
Member
 
Join Date: Nov 2003
Location: Greece
Posts: 69
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
vandiike
Default

That would be nice. Any leads?
To delete them perm, use in phpmyadmin;

UPDATE products SET products_model = NULL;
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 05-12-2004, 02:32 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 11,058
Thanks: 80
Thanked 348 Times in 327 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

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 Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #8  
Old 05-13-2004, 02:48 AM
Member
 
Join Date: Nov 2003
Location: Greece
Posts: 69
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
vandiike
Default

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
get rid of c-number & p-number in SEO url's amilo osCMax v2 Features Discussion 1 07-31-2006 04:39 PM
Model Number ERROR torweb osCMax v2 Features Discussion 1 06-28-2006 01:52 PM
Model Number per Attribute cacooke osCMax v2 Customization/Mods 7 10-08-2005 03:52 PM
model number - how to increase maximum filed size? jloyzaga osCMax v1.7 Discussion 3 07-08-2004 07:54 PM
increase model number size jloyzaga osCMax v1.7 Discussion 5 10-18-2003 04:48 PM


All times are GMT -8. The time now is 07:46 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax