Thread: Product ID

Results 1 to 8 of 8
  1. #1
    Join Date
    Mar 2007
    Posts
    56
    Plugin Contributions
    0

    Default Product ID

    Zencart automatically creates a product ID and also has a field for model number (ID)

    If I already have my own product IDs, is there a way i can display this so that the product ID is what I have set it to be?

    So that Zencart can use it's auto-ID to arrange things in the database, but the customer can view and search by the product ID I set for the item

  2. #2
    Join Date
    Jun 2003
    Posts
    33,715
    Plugin Contributions
    0

    Default Re: Product ID

    Put your ID in the Model # field?
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  3. #3
    Join Date
    Mar 2007
    Posts
    56
    Plugin Contributions
    0

    Default Re: Product ID

    If i put the Product ID into the Model Number field, is there a way i can change the display so that when the customer sees the number, it doesn't say Model:

    but instead it shows Product ID:

  4. #4
    Join Date
    Feb 2007
    Location
    Leicester UK
    Posts
    219
    Plugin Contributions
    0

    Default Re: Product ID

    Originally Posted by econcepts
    If all you want to alter is the terminology of how the customer sees it (insteadd of seeing "model" you want them to see "catalog") then you can do this by looking at the language files.

    In your case it would be specifically the following file:

    /includes/languages/english/product_info.php

    Find the following line and alter as needed

    define('TEXT_PRODUCT_MODEL', 'Model: ');

    (Yours would look like this:)
    define('TEXT_PRODUCT_MODEL', 'Catalog: ');
    The search tool is a wonderful thing.

    You would substitute the word Model with the word Product ID

  5. #5
    Join Date
    Mar 2007
    Posts
    56
    Plugin Contributions
    0

    Default Re: Product ID

    Thanks for that, I managed to get it done now.

  6. #6
    Join Date
    Mar 2007
    Posts
    56
    Plugin Contributions
    0

    Default Re: Product ID

    Thanks for that, I managed to get it done now.

    How about in the admin, so that when a product is being added, the field shows "Product ID" isntead of "Products Model" ?
    The reason for this is to avoid the confusion that may be created when an admin sees "Products Model" in the backend and then "Product ID" in the frontend and can't tell if they are one and the same.
    I have used the development Toolkit to search for "model" but there are so many references i don't want to break the cart by changing the wrong one.

    -------
    Also, what happens now if a Product is added that ahs a manufacturer, a model number and product ID

    Lets say a Printer cartridge is being sold

    Product ID: CT192
    Title: HP 57 Printer cartridge
    Manufacturer: HP
    Model: 57

    Now if the model number has been made into the product ID, what happens when a model number specific to a product is needed?
    That's why i initially asked if there is a way or a plugin that adds fields to products.

    This is because, if someone comes along searching for a specific thing and selects "manufacturer", then the next thing they'll want are the model numbers for an item by that manufacturer and not the product ID.
    Whereas a custom product ID is also needed to organise and easily access all items in the catalog as desired with a given reference.

  7. #7
    Join Date
    Aug 2007
    Location
    Tampa FL.
    Posts
    142
    Plugin Contributions
    0

    Default Re: Product ID

    Hello,

    You need to edit more lines than that to have your shop look proper for all things, you dont want the customers searching by model or sorting by model,
    you will need to edit the pages and the respected lines within:

    HTML Code:
    admin/includes/languages/english.php 
    
    Line #196 : define('JS_PRODUCTS_MODEL', '* The new product needs a model value\n'); 
    
    Line #432 : define('TEXT_VALID_PRODUCTS_MODEL', 'Products Model'); 
    
    Line #458 : // generic model 
    
    Line #459 : define('TEXT_MODEL','Model:'); 
    
    Line #501 : define('HEADING_TITLE_SEARCH_DETAIL_REPORTS_NAME_MODEL', 'Search for Products Name/Model'); 
    
    Line #613 : define('TEXT_SORT_PRODUCTS_MODEL', 'Products Model');
    HTML Code:
    admin/includes/languages/english/categories.php 
    
    Line #117 : define('TEXT_PRODUCTS_MODEL', 'Model No:'); 
    
    Line #161 : define('TABLE_HEADING_MODEL', 'Model');  
    HTML Code:
    admin/includes/languages/english/document_general.php 
    
    Line #120 : define('TABLE_HEADING_MODEL', 'Model'); 
    
    Line #179 : define('TEXT_PRODUCTS_METATAGS_MODEL_STATUS','<strong>Model:</strong>');  
    HTML Code:
    admin/includes/languages/english/document_product.php 
    
    Line #108 : define('TEXT_PRODUCTS_MODEL', 'Products Model:'); 
    
    Line #130 : define('TABLE_HEADING_MODEL', 'Model'); 
    
    Line #189 : define('TEXT_PRODUCTS_METATAGS_MODEL_STATUS','<strong>Model:</strong>');  
    HTML Code:
    admin/includes/languages/english/downloads_manager.php 
    
    Line #26 : define('TABLE_HEADING_MODEL', 'Model'); 
    
    Line #38 : define('TEXT_PRODUCTS_MODEL', 'Model: ');  
    iff your going to use easy populate:
    HTML Code:
    admin/includes/languages/english/easypopulate.php 
    
    Line #32 : define('EASYPOPULATE_DISPLAY_RESULT_DELETED','<br /><font color="fuchsia"><b>DELETED! - Model:</b> %s</font>'); 
    
    Line #33 : define('EASYPOPULATE_DISPLAY_RESULT_DELETE_NOT_FOUND','<br /><font color="darkviolet"><b>NOT FOUND! - Model:</b> %s - cant delete...</font>'); 
    
    Line #34 : define('EASYPOPULATE_DISPLAY_RESULT_CATEGORY_NOT_FOUND', '<br /><font color="red"><b>SKIPPED! - Model:</b> %s - No category provided for this%s product</font>'); 
    
    Line #35 : define('EASYPOPULATE_DISPLAY_RESULT_CATEGORY_NAME_LONG','<br /><font color="red"><b>SKIPPED! - Model:</b> %s - Category name(s) too long (max. %s)</font>'); 
    
    Line #36 : define('EASYPOPULATE_DISPLAY_RESULT_MODEL_NAME_LONG','<br /><font color="red"><b>SKIPPED! - Model: </b>%s - model name too long</font>'); 
    
    Line #37 : define('EASYPOPULATE_DISPLAY_RESULT_NEW_PRODUCT', '<br /><font color="green"><b>NEW PRODUCT! - Model:</b> %s</font> | '); 
    
    Line #38 : define('EASYPOPULATE_DISPLAY_RESULT_NEW_PRODUCT_FAIL', '<br /><font color="red"><b>ADD NEW PRODUCT FAILED! - Model:</b> %s - SQL error. Check Easy Populate error log in uploads directory</font>'); 
    
    Line #39 : define('EASYPOPULATE_DISPLAY_RESULT_UPDATE_PRODUCT', '<br /><font color="mediumblue"><b>UPDATED! - Model:</b> %s</font> | '); 
    
    Line #40 : define('EASYPOPULATE_DISPLAY_RESULT_UPDATE_PRODUCT_FAIL', '<br /><font color="red"><b>UPDATE PRODUCT FAILED! - Model:</b> %s - SQL error. Check Easy Populate error log in uploads directory</font>'); 
    
    Line #41 : define('EASYPOPULATE_DISPLAY_RESULT_NO_MODEL', '<br /><font color="red"><b>No model field in record. This line was not imported</b></font>'); 
    
    Line #52 : define('EASYPOPULATE_MSGSTACK_MODELSIZE_DETECT_FAIL','Easy Populate cannot determine the maximum size permissible for the products_model field in your products table. Please ensure that the length of your model data field does not exceed the Zen Cart default value of 32 characters for any given product. Failure to heed this warning may have unintended consequences for your data.'); 
    
    Line #90 : define('EASYPOPULATE_SPECIALS_PRICE_FAIL', '<font color="red"><b>SKIPPED! - Model:</b> %s - specials price higher than normal price...</font><br />'); 
    
    Line #91 : define('EASYPOPULATE_SPECIALS_NEW', '<font color="green"><b>NEW! - Model:</b> %s</font> | %s | %s | <font color="green"><b>%s</b></font> |<br />'); 
    
    Line #92 : define('EASYPOPULATE_SPECIALS_UPDATE', '<font color="mediumblue"><b>UPDATED! - Model:</b> %s</font> | %s | %s | <font color="green"><b>%s</b></font> |<br />'); 
    
    Line #93 : define('EASYPOPULATE_SPECIALS_DELETE', '<font color="fuchsia"><b>DELETED! - Model:</b> %s</font> | %s |<br />'); 
    
    Line #94 : define('EASYPOPULATE_SPECIALS_DELETE_FAIL', '<font color="darkviolet"><b>NOT FOUND! - Model:</b> %s - cant delete special...</font><br />');  
    If you will use image Handeler:
    HTML Code:
    admin/includes/languages/english/extra_definitions/bmz_image_handler.php 
    
    Line #51 : define('TEXT_PRODUCTS_MODEL', 'Model');  
    For featured products:
    HTML Code:
    admin/includes/languages/english/featured.php 
    
    Line #25 : define('TABLE_HEADING_PRODUCTS_MODEL','Model');  
    Dont forget your invoices:
    HTML Code:
    admin/includes/languages/english/invoice.php 
    
    Line #23 : define('TABLE_HEADING_PRODUCTS_MODEL', 'Model');  
    and your orders:
    HTML Code:
    admin/includes/languages/english/orders.php 
    
    Line #39 : define('TABLE_HEADING_PRODUCTS_MODEL', 'Model');  
    Packing Slip:
    HTML Code:
    admin/includes/languages/english/packingslip.php 
    
    Line #23 : define('TABLE_HEADING_PRODUCTS_MODEL', 'Model');  
    product:
    HTML Code:
    admin/includes/languages/english/product.php 
    
    Line #107 : define('TEXT_PRODUCTS_MODEL', 'Products Model:'); 
    
    Line #135 : define('TABLE_HEADING_MODEL', 'Model'); 
    
    Line #194 : define('TEXT_PRODUCTS_METATAGS_MODEL_STATUS','<strong>Model:</strong>');  
    Free shipping:
    HTML Code:
    admin/includes/languages/english/product_free_shipping.php 
    
    Line #104 : define('TEXT_PRODUCTS_MODEL', 'Products Model:'); 
    
    Line #126 : define('TABLE_HEADING_MODEL', 'Model'); 
    
    Line #185 : define('TEXT_PRODUCTS_METATAGS_MODEL_STATUS','<strong>Model:</strong>');  
    if you have music:
    HTML Code:
    admin/includes/languages/english/product_music.php 
    
    Line #107 : define('TEXT_PRODUCTS_MODEL', 'Products Model:'); 
    
    Line #130 : define('TABLE_HEADING_MODEL', 'Model'); 
    
    Line #189 : define('TEXT_PRODUCTS_METATAGS_MODEL_STATUS','<strong>Model:</strong>');  
    price manager module:
    HTML Code:
    admin/includes/languages/english/products_price_manager.php 
    
    Line #26 : define('TABLE_HEADING_PRODUCTS_MODEL','Model'); 
    
    Line #36 : define('TEXT_PRODUCTS_MODEL','Model:'); 
     
    specials:
    HTML Code:
    admin/includes/languages/english/specials.php 
    
    Line #25 : define('TABLE_HEADING_PRODUCTS_MODEL','Model');  
    products purchaced:
    HTML Code:
    admin/includes/languages/english/stats_products_purchased.php 
    
    Line #34 : define('TABLE_HEADING_PRODUCTS_MODEL', 'Model');  
    That ends the admin side
    customer side:

    Sort:
    HTML Code:
    includes/languages/english.php 
    
    Line #583 : define('TEXT_INFO_SORT_BY_PRODUCTS_MODEL', 'Model');  
    Search:
    HTML Code:
    includes/languages/english/advanced_search.php 
    
    Line #34 : define('TABLE_HEADING_MODEL', 'Model'); 
    
    includes/languages/english/advanced_search_result.php 
    
    Line #49 : define('TABLE_HEADING_MODEL', 'Model'); 
    
     includes/languages/english/YOUR TEMPLATE/advanced_search.php 
    
    Line #34 : define('TABLE_HEADING_MODEL', 'Model');  
    
    includes/languages/english/YOUR TEMPLATE/advanced_search_result.php 
    
    Line #49 : define('TABLE_HEADING_MODEL', 'Model');  
    HTML Code:
    includes/languages/english/YOUR TEMPLATE/document_general_info.php 
    
    Line #19 : define('TEXT_PRODUCT_MODEL', 'Model: ');  
    HTML Code:
    includes/languages/english/classic/document_product_info.php 
    
    Line #19 : define('TEXT_PRODUCT_MODEL', 'Model: ');  
    HTML Code:
    includes/languages/english/YOUR TEMPLATE/english.php 
    
    Line #583 : define('TEXT_INFO_SORT_BY_PRODUCTS_MODEL', 'Model');  
    [HTML]includes/languages/YOUR TEMPLATE/faq.php

    Line #46 : define('TABLE_HEADING_MODEL', 'Model');
    FAQ'S:
    HTML Code:
    includes/languages/english/YOUR TEMPLATE/faq_info.php 
    
    Line #56 : define('TEXT_FAQ_MODEL', 'Model: '); 
     
    includes/languages/english/YOUR TEMPLATE/faqs_all.php 
    
    Line #48 : define('TEXT_FAQS_MODEL','Model: ');  
    
    includes/languages/english/YOUR TEMPLATE/faqs_new.php 
    
    Line #52 : define('TEXT_FAQS_MODEL','Model: '); 
     
    includes/languages/english/extra_definitions/faq_manager.php 
    
    Line #172 : define('TEXT_INFO_SORT_BY_FAQS_MODEL', 'Model');  
    
    includes/languages/english/faq.php 
    
    Line #46 : define('TABLE_HEADING_MODEL', 'Model');  
    
    includes/languages/english/faq_info.php 
    
    Line #56 : define('TEXT_FAQ_MODEL', 'Model: ');  
    
    includes/languages/english/faqs_all.php 
    
    Line #48 : define('TEXT_FAQS_MODEL','Model: ');  
    
    includes/languages/english/faqs_new.php 
    
    Line #52 : define('TEXT_FAQS_MODEL','Model: ');  
    HTML Code:
    includes/languages/english/document_general_info.php 
    
    Line #19 : define('TEXT_PRODUCT_MODEL', 'Model: ');  
    HTML Code:
    includes/languages/english/document_product_info.php 
    
    Line #19 : define('TEXT_PRODUCT_MODEL', 'Model: ');  
    HTML Code:
    includes/languages/english/featured_products.php 
    
    Line #29 : define('TEXT_PRODUCTS_MODEL','Model: ');  
    HTML Code:
    includes/languages/english/index.php 
    
    Line #33 : define('TABLE_HEADING_MODEL', 'Model');  
    HTML Code:
    includes/languages/english/product_free_shipping_info.php 
    
    Line #19 : define('TEXT_PRODUCT_MODEL', 'Model: ');  
    HTML Code:
    includes/languages/english/product_info.php 
    
    Line #36 : define('TEXT_PRODUCT_MODEL', 'Model: ');  
    HTML Code:
    includes/languages/english/product_music_info.php 
    
    Line #22 : define('TEXT_PRODUCT_MODEL', 'Model: ');  
    HTML Code:
    includes/languages/english/products_all.php 
    
    Line #29 : define('TEXT_PRODUCTS_MODEL','Model: ');  
    HTML Code:
    includes/languages/english/products_new.php 
    
    Line #29 : define('TEXT_PRODUCTS_MODEL','Model: ');  
    Dont forget the shoping cart:
    HTML Code:
    includes/languages/english/shopping_cart.php 
    
    Line #15 : define('TABLE_HEADING_MODEL', 'Model');  
    Product info Page:
    HTML Code:
    includes/languages/product_info.php 
    
    Line #36 : define('TEXT_PRODUCT_MODEL', 'Model: ');  
    Rich

  8. #8
    Join Date
    Mar 2007
    Posts
    56
    Plugin Contributions
    0

    Default Re: Product ID

    Thanks for that

 

 

Similar Threads

  1. v150 Remove Product Image and product name from product page
    By LloydR in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 19 Sep 2012, 11:06 AM
  2. Issues with Product info page: my product image is overlapping the product name, etc
    By wmorris in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 4 May 2011, 06:30 PM
  3. Missing product name & product price from Product Info Page
    By kpatterson in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 16 Feb 2011, 03:11 AM
  4. Replies: 2
    Last Post: 13 Jun 2010, 02:48 PM
  5. Product description in product more info in html format but not in product listing?
    By this side up in forum Customization from the Admin
    Replies: 1
    Last Post: 18 Dec 2006, 06:25 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR