michaelcrm Posted March 9, 2004 Share Posted March 9, 2004 Unlike most of guys in this forum, I am using osCommerce not for selling any visible products. Instead, I choose to use osCommerce as an album place for my clients who select their training teachers from my company's trainers bank, by using the powerful interactive displaying function of osCommerce. My questions are: 1. When all products in certain category are displayed, we can see each product is displayed like a picture followed by several description items to the right. How to replace those items like "Product Name", "Price" and "Buy Now" with other three (or more) different description items that I could set up by myself? For example, I would love to replace them with "Nationality", "Gender", "Year of Employment" and something of the same nature. 2. I really hope to make the body of my index page be full of teachers' pictures, looking like this page, or, better classified as this. I have very basic idea about PHP script, but I just have no clue about where to start. Any ideas are welcome and thanks in advance! Link to comment Share on other sites More sharing options...
Chris Dunning Posted March 9, 2004 Share Posted March 9, 2004 All of those text changes can be made in: includes/languages/english.php or includes/languages/english/matching_filename.php ie, if you're looking at www.yoursite.com/index.php and you see something you want to change, look for includes/languages/english/index.php for the text values. However, changing things like "buy now" and "price" will require a bit of php skill, because those are not just text items echoed back from the database. You could fairly easily make new fields in the database for "Nationality", "Gender" or whatever else you wanted, include those in the "add product" screen, and echo them in the product information. It takes a little knowledge of php - but most of it you can learn from looking over what's already there. Chris Dunning osCommerce, Contributions Moderator Team Please do not send me PM! I do not read or answer these often. Use the email button instead! I do NOT support contributions other than my own. Emails asking for support on other people's contributions will be ignored. Ask in the forum or contact the contribution author directly. Link to comment Share on other sites More sharing options...
michaelcrm Posted March 9, 2004 Author Share Posted March 9, 2004 Hi BlueNoteMKVI, your answer is helpful and thank you. While I have known how to modifid the text within the same place (through replacing the target text in /includes/languages/english/index.php), but I still have no idea about how to add/delete any of those items. For example, currently my system will display only three description items for each product, they are "Product Name", "Price" and "Buy Now". And I found there are other items available to describe a product, in following section of /includes/languages/english/index.php: if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) { define('HEADING_TITLE', 'Let\'s See What We Have Here'); define('TABLE_HEADING_IMAGE', ''); define('TABLE_HEADING_MODEL', 'Model'); define('TABLE_HEADING_PRODUCTS', 'Product Name'); define('TABLE_HEADING_MANUFACTURER', 'Manufacturer'); define('TABLE_HEADING_QUANTITY', 'Quantity'); define('TABLE_HEADING_PRICE', 'Price'); define('TABLE_HEADING_WEIGHT', 'Weight'); define('TABLE_HEADING_BUY_NOW', 'Buy Now'); define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.'); define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.'); define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: '); define('TEXT_SHOW', '<b>Show:</b>'); define('TEXT_BUY', 'Buy 1 \''); define('TEXT_NOW', '\' now'); define('TEXT_ALL_CATEGORIES', 'All Categories'); define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers'); } elseif ($category_depth == 'top') { define('HEADING_TITLE', 'What\'s New Here?'); } elseif ($category_depth == 'nested') { define('HEADING_TITLE', 'Categories'); } I believe those text underlined are also description items for product, but for some reason only three of them are displayed in the first place. So, my question is, if I want to add/delete any of those items related to certain product, what should I do? Many thanks. Link to comment Share on other sites More sharing options...
Chris Dunning Posted March 9, 2004 Share Posted March 9, 2004 You can change which of these things are shown in the admin panel under configuration->product listing. The code for those is in product_listing.php in your modules directory. Chris Dunning osCommerce, Contributions Moderator Team Please do not send me PM! I do not read or answer these often. Use the email button instead! I do NOT support contributions other than my own. Emails asking for support on other people's contributions will be ignored. Ask in the forum or contact the contribution author directly. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.