Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Hi everyone,

 

I'm trying to get the option_type contribution working, it looks excellent. I'm having no problem with drop downs, select boxes, or checkboxes. However, I can't add a text box.

 

Under Products Options in the admin interface, I added and an option called "Runner Name" with option type "Text." When I try to add this to the Products Attributes lower on the screen, I select the product name, select "runner name" as the option name, but I don't understand what I'm supposed to select for "option value". I don't see anything in there that has to do with text.

 

Do I have to go and add a "Text" option value in the admin interface?

 

Thank you!!!

 

Joe Glass

Posted

Hi, Joe--

 

It works no matter what value you assign it, but we resolved this problem in our own installs by creating an option name field and leaving the field where you enter the option name blank. Then, when assigning an attribute to a product, you can select this "blank" field. As I said, either solution should work fine for your purposes. We just prefer it that was so its not so confusing when you scan through your attributes list.

Posted

Thanks Marketster, that worked excellently. I have a second question about option type. On the order confirmation page, as well as the confirmation emails, it doesn't say the name of the text field, just the value. It seems like it should say "Runner Name: Joe Glass'" instead of just "Joe Glass."

 

I'm sure there is a problem in my code somewhere, can you suggest where to look? It must have something to do with either the database or the function class since it is consistent on the confirmation page and the email confirmations... By the way, is that your real picture on the left? :)

 

Thanks!

Posted (edited)

With mine, text options are set as follows:

 

1. Under 'Product Options,' I created an option name of 'Child's First Name,' to which I assigned the TEXT option type.

 

2. In 'Option Values,' when I uploaded the SQL, it created a new blank Option Name with ID 0 and Option Value of 'TEXT.' I've left it alone (as instructed in the ReadMe).

 

3. Under 'Product Attributes,' I selected the product that I wanted to assign the 'Child's First Name' Option Name to, then selected it under the 'Option Name' field. I selected TEXT as the Option Value, left value price blank, and put the + sign in the Prefix field.

 

With those steps, it's working fine for me. You can see it in action via the WWW link in my sig. (Click on either the 'Personalized' category, or the 'My Very Own Music' CD at the top of the 'What's New' list. If you add it to your cart, you'll see that it's giving the option description before the inputted text.

 

HTH,

 

Terry

Edited by TerryK

Terry Kluytmans

 

Contribs Installed: Purchase Without Account (PWA); Big Images, Product Availability, Description in Product Listing, Graphical Infobox, Header Tags Controller, Login Box, Option Type Feature, plus many layout changes & other mods of my own, like:

 

Add order total to checkout_shipment

Add order total to checkout_payment

Add radio buttons at checkout_shipping (for backorder options, etc.)

Duplicate Table Rate Shipping Module

Better Product Review Flow

 

* If at first you don't succeed, find out if there's a prize for the loser. *

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...