osCmax v2.5 User Manual
Results 1 to 8 of 8

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

      
  1. #1
    Member
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    69
    Rep Power
    0


    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

  2. #2
    Member
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    69
    Rep Power
    0


    Default

    sorry, and this of course refers to useing easy populate



    Mike

  3. #3
    Member
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    69
    Rep Power
    0


    Default

    Well, it seams that there is no otherway than go into phpmyadmin and delete all model numbers manually.

  4. #4
    Member
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    69
    Rep Power
    0


    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.

  5. #5
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


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

  6. #6
    Member
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    69
    Rep Power
    0


    Default

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

    UPDATE products SET products_model = NULL;

  7. #7
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


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

  8. #8
    Member
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    69
    Rep Power
    0


    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

Similar Threads

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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •