Forums / General Questions / Product ID

Product ID

Locked
Results 1 to 8 of 8
This thread is locked. New replies are disabled.
26 Oct 2007, 02:03
#1
maraud avatar

maraud

New Zenner

Join Date:
Mar 2007
Posts:
56
Plugin Contributions:
0

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
26 Oct 2007, 04:39
#2
kim avatar

kim

Obaa-san

Join Date:
Jun 2003
Posts:
26,564
Plugin Contributions:
0

Re: Product ID

Put your ID in the Model # field?
27 Oct 2007, 10:38
#3
maraud avatar

maraud

New Zenner

Join Date:
Mar 2007
Posts:
56
Plugin Contributions:
0

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:
27 Oct 2007, 12:46
#4
spbennett avatar

spbennett

Zen Follower

Join Date:
Feb 2007
Posts:
230
Plugin Contributions:
0

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
28 Oct 2007, 14:26
#5
maraud avatar

maraud

New Zenner

Join Date:
Mar 2007
Posts:
56
Plugin Contributions:
0

Re: Product ID

Thanks for that, I managed to get it done now.
28 Oct 2007, 14:45
#6
maraud avatar

maraud

New Zenner

Join Date:
Mar 2007
Posts:
56
Plugin Contributions:
0

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.
29 Oct 2007, 03:03
#7
poolprorich avatar

poolprorich

Zen Follower

Join Date:
Aug 2007
Posts:
143
Plugin Contributions:
0

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

[HTML]admin/includes/languages/english/categories.php

Line #117 : define('TEXT_PRODUCTS_MODEL', 'Model No:');

Line #161 : define('TABLE_HEADING_MODEL', 'Model');
[/HTML]
[HTML]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]
[HTML]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]
[HTML]admin/includes/languages/english/downloads_manager.php

Line #26 : define('TABLE_HEADING_MODEL', 'Model');

Line #38 : define('TEXT_PRODUCTS_MODEL', 'Model: ');
[/HTML]
iff your going to use easy populate:
[HTML]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 />');
[/HTML]
If you will use image Handeler:
[HTML]admin/includes/languages/english/extra_definitions/bmz_image_handler.php

Line #51 : define('TEXT_PRODUCTS_MODEL', 'Model');
[/HTML]
For featured products:
[HTML]admin/includes/languages/english/featured.php

Line #25 : define('TABLE_HEADING_PRODUCTS_MODEL','Model');
[/HTML]
Dont forget your invoices:
[HTML]admin/includes/languages/english/invoice.php

Line #23 : define('TABLE_HEADING_PRODUCTS_MODEL', 'Model');
[/HTML]
and your orders:
[HTML]admin/includes/languages/english/orders.php

Line #39 : define('TABLE_HEADING_PRODUCTS_MODEL', 'Model');
[/HTML]
Packing Slip:
[HTML]admin/includes/languages/english/packingslip.php

Line #23 : define('TABLE_HEADING_PRODUCTS_MODEL', 'Model');
[/HTML]
product:
[HTML]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>');
[/HTML]
Free shipping:
[HTML]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>');
[/HTML]
if you have music:
[HTML]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>');
[/HTML]
price manager module:
[HTML]admin/includes/languages/english/products_price_manager.php

Line #26 : define('TABLE_HEADING_PRODUCTS_MODEL','Model');

Line #36 : define('TEXT_PRODUCTS_MODEL','Model:');

[/HTML]
specials:
[HTML]admin/includes/languages/english/specials.php

Line #25 : define('TABLE_HEADING_PRODUCTS_MODEL','Model');
[/HTML]
products purchaced:
[HTML]admin/includes/languages/english/stats_products_purchased.php

Line #34 : define('TABLE_HEADING_PRODUCTS_MODEL', 'Model');
[/HTML]
That ends the admin side
customer side:

Sort:
[HTML]includes/languages/english.php

Line #583 : define('TEXT_INFO_SORT_BY_PRODUCTS_MODEL', 'Model');
[/HTML]
Search:
[HTML]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]
[HTML]includes/languages/english/YOUR TEMPLATE/document_general_info.php

Line #19 : define('TEXT_PRODUCT_MODEL', 'Model: ');

[/HTML]
[HTML]includes/languages/english/classic/document_product_info.php

Line #19 : define('TEXT_PRODUCT_MODEL', 'Model: ');
[/HTML]
[HTML]includes/languages/english/YOUR TEMPLATE/english.php

Line #583 : define('TEXT_INFO_SORT_BY_PRODUCTS_MODEL', 'Model');
[/HTML]

[HTML]includes/languages/YOUR TEMPLATE/faq.php

Line #46 : define('TABLE_HEADING_MODEL', 'Model');
FAQ'S:
[HTML]
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]
[HTML]includes/languages/english/document_general_info.php

Line #19 : define('TEXT_PRODUCT_MODEL', 'Model: ');
[/HTML]
[HTML]includes/languages/english/document_product_info.php

Line #19 : define('TEXT_PRODUCT_MODEL', 'Model: ');
[/HTML]
[HTML]includes/languages/english/featured_products.php

Line #29 : define('TEXT_PRODUCTS_MODEL','Model: ');
[/HTML]
[HTML]includes/languages/english/index.php

Line #33 : define('TABLE_HEADING_MODEL', 'Model');
[/HTML]
[HTML]includes/languages/english/product_free_shipping_info.php

Line #19 : define('TEXT_PRODUCT_MODEL', 'Model: ');
[/HTML]
[HTML]includes/languages/english/product_info.php

Line #36 : define('TEXT_PRODUCT_MODEL', 'Model: ');
[/HTML]
[HTML]includes/languages/english/product_music_info.php

Line #22 : define('TEXT_PRODUCT_MODEL', 'Model: ');
[/HTML]
[HTML]includes/languages/english/products_all.php

Line #29 : define('TEXT_PRODUCTS_MODEL','Model: ');
[/HTML]
[HTML]includes/languages/english/products_new.php

Line #29 : define('TEXT_PRODUCTS_MODEL','Model: ');
[/HTML]
Dont forget the shoping cart:
[HTML]includes/languages/english/shopping_cart.php

Line #15 : define('TABLE_HEADING_MODEL', 'Model');
[/HTML]
Product info Page:
[HTML]includes/languages/product_info.php

Line #36 : define('TEXT_PRODUCT_MODEL', 'Model: ');
[/HTML]

Rich
30 Oct 2007, 03:28
#8
maraud avatar

maraud

New Zenner

Join Date:
Mar 2007
Posts:
56
Plugin Contributions:
0

Re: Product ID

Thanks for that