lightningjkb Posted June 20, 2004 Posted June 20, 2004 I needed the ability to have multiple attributes. For example, one shirt style with multiple sizes and colors available. Therefore, I installed the contribution: Attributes option type selection. I'm racking my brain to figure out what I did wrong. Because when I try and access the catalog, I get: Fatal error: Call to undefined function: tep_output_string() in /home/vividear/vividearth-www/catalog/includes/functions/html_output.php on line 81 Anyone have an idea as to what is wrong here? I can't tell by looking at line 81. Or, are there any other contributions for someone needing multiple attributes?
Paycheck Posted June 20, 2004 Posted June 20, 2004 First off I am unclear why you would need to install this contribution. You have the ability to assign as many different option attributes to a product as you want. For instance, a T-Shirt may have the following attributes of: Size: SM, Med, Large, Xl, XXL Color: REd, White, Black, blue Style: Short Sleeve, Long Sleeve, Crew, V-Neck Logo: Yes, No As you see all of these attributes can be created already in the admin section of attributes. You can even sort these by adding a simple contribution for attribute sort and give them proces for each one of the attributes, i.e. long sleeves may cost an extra $2.00, you assign that particular attribute a +2.00 to the attribute of long sleeve. Can you tell me what contribution you are using? and I assume you are on the 2.2MS2 version? JM Always remember, we need patience, guidance and most of all understanding. My Contributions
Paycheck Posted June 20, 2004 Posted June 20, 2004 I needed the ability to have multiple attributes. For example, one shirt style with multiple sizes and colors available. Therefore, I installed the contribution: Attributes option type selection. I'm racking my brain to figure out what I did wrong. Because when I try and access the catalog, I get: Fatal error: Call to undefined function: tep_output_string() in /home/vividear/vividearth-www/catalog/includes/functions/html_output.php on line 81 Anyone have an idea as to what is wrong here? I can't tell by looking at line 81. Or, are there any other contributions for someone needing multiple attributes? Check you images path, line 81 is: // alt is added to the img tag even if it is null to prevent browsers from outputting // the image filename as default $image = '<img src="' . tep_output_string($src) . '" border="0" alt="' . tep_output_string($alt) . '"'; You may have an error in your contribution or in your html_output.php file. JM Always remember, we need patience, guidance and most of all understanding. My Contributions
Guest Posted June 20, 2004 Posted June 20, 2004 you need to make sure in your catalog/includes/functions/general.php this function is in there: function tep_output_string($string, $translate = false, $protected = false) { if ($protected == true) { return htmlspecialchars($string); } else { if ($translate == false) { return tep_parse_input_field_data($string, array('"' => '"')); } else { return tep_parse_input_field_data($string, $translate); } } }
lightningjkb Posted June 22, 2004 Author Posted June 22, 2004 First off I am unclear why you would need to install this contribution. You have the ability to assign as many different option attributes to a product as you want. For instance, a T-Shirt may have the following attributes of: Size: SM, Med, Large, Xl, XXL Color: REd, White, Black, blue Style: Short Sleeve, Long Sleeve, Crew, V-Neck Logo: Yes, No Ok, maybe that right there is the problem. When I go to the product attributes page, near as I can tell, I get one attribute per item. I see where I can list multiple attributes...but I've only see one option per item at the bottom of the page. I can pick either color or size, etc...but I can't see at all how to use both. I must be having a complete brainfart here... Maybe you can tell me how I can get it to allow more than one option?
GraphicsGuy Posted June 22, 2004 Posted June 22, 2004 I think reading this page in the knowledgebase will guide you on your way: http://www.oscommerce.info/kb/osCommerce/A..._Attributes/152 Rule #1: Without exception, backup your database and files before making any changes to your files or database. Rule #2: Make sure there are no exceptions to Rule #1.
patrickbailey1 Posted June 22, 2004 Posted June 22, 2004 Plus, what that link doesn't tell you that i think you're not seeing yet, is that once you enter in the product name and option that you want like: name option tshirt small red tshirt small blue tshirt small green tshirt med red tshirt med blue etc... then, for other tshirts that are similar, you DO NOT have to all of these things with the price and symbol (+,-) in the actual "product attributes" page under the catalog admin directory. Whenever you bring in a new product in "categories/products", when you edit the product (or are adding it the first time) at the bottom of the page you can just check the box next to each attribute you want to have on each subsequent product! You do not have to fill out everything on the actual product attribute page...that would take FOREVER!!! Do it right on the product page, where you edit the price of the product and enter the model and all that...it will be on the bottom near "preview." Patrick Patrick Bailey www.DisplayHaven.com
patrickbailey1 Posted June 22, 2004 Posted June 22, 2004 Plus, i forgot to mention, in answer to your brainfart, yes you can only have one attribute per product, but on one products page you can have tons of different attribute scroll bars...ie: Size: |============| small medium +$2.00 large + $4.00 Color: |===========| red blue school bus yellow Style: |===========| Gym Cutoff -$5.00 Tight Spandex +$20.00 Crotchless +$50.00 etc... Patrick Bailey www.DisplayHaven.com
GraphicsGuy Posted June 22, 2004 Posted June 22, 2004 ... for other tshirts that are similar, you DO NOT have to all of these things with the price and symbol (+,-) in the actual "product attributes" page under the catalog admin directory. Whenever you bring in a new product in "categories/products", when you edit the product (or are adding it the first time) at the bottom of the page you can just check the box next to each attribute you want to have on each subsequent product! You do not have to fill out everything on the actual product attribute page...that would take FOREVER!!! Do it right on the product page, where you edit the price of the product and enter the model and all that...it will be on the bottom near "preview." Patrick I don't think the functionality that you are describing is a part of stock MS2.2. At least I haven't seen anything like that. I use the attributes copier contrib to get around the hassle of setting large numbers of attributes on new products all at once. Rule #1: Without exception, backup your database and files before making any changes to your files or database. Rule #2: Make sure there are no exceptions to Rule #1.
patrickbailey1 Posted June 22, 2004 Posted June 22, 2004 Yeah, the copier you use to copy attributes from one product to another...im just saying you dont have to enter in every attribute on the attribute page under the catalog heading in the admin menu bar. I did that for a while until i realized once you enter the option name and category you just click select which options to use when you enter each product using the categories/products page under the catalog heading of the admin menu bar....see what im saying...maybe its confusing... Patrick Bailey www.DisplayHaven.com
GraphicsGuy Posted June 22, 2004 Posted June 22, 2004 Yeah, the copier you use to copy attributes from one product to another...im just saying you dont have to enter in every attribute on the attribute page under the catalog heading in the admin menu bar. I did that for a while until i realized once you enter the option name and category you just click select which options to use when you enter each product using the categories/products page under the catalog heading of the admin menu bar....see what im saying...maybe its confusing... I guess I am missing something. On my MS2.2 categories/product page (where you set up a new product or edit an existing one) there isn't anything to do with attributes. There are several contribs for changing the handling of attributes. Are you sure you haven't installed one of them? Rule #1: Without exception, backup your database and files before making any changes to your files or database. Rule #2: Make sure there are no exceptions to Rule #1.
patrickbailey1 Posted June 22, 2004 Posted June 22, 2004 i have installed several...none that list all the attributes at the bottom of each product you input though...pretty sure that is standard... lets say you want to add a new product...you fill out price and the description, quantity, model, URL, weight...below weight you can check the box of the product you want...isnt' that standard? I installed a contribution called attributes sort v.1...i can't remember if attributes were listed prior to that or not...you may be right...if so i stand corrected! Patrick Patrick Bailey www.DisplayHaven.com
lightningjkb Posted June 24, 2004 Author Posted June 24, 2004 Oh my. *head desk* Ok, I get it. I tried it again...and what do you know? I *can* have multiple attributes w/the set up as it is. Since I only saw one option, I thought I could only choose either size or color. Didn't realize I set it in attributes for each and every item. Doh! I read the knowledge base before, but when I looked at the attributes page I just didn't see right off (or at any point in the following days) that I could have more than one. All right, got it. Will get to work on this sucker. Thanks for all the help guys.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.