osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Date and free text entry on order

This is a discussion on Date and free text entry on order within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Hi, I am setting up a shopping site using OSCommerce shopping cart Version 2.2ms2-060817. I have installed/configured the contribution - ...



Find us on Facebook
Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Connect with Facebook Register FAQDonate Members List Calendar Mark Forums Read


Closed Thread

 

LinkBack Thread Tools
  #1  
Old 11-09-2008, 02:30 PM
Lurker
 
Join Date: Nov 2008
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0
Olly1234 is on a distinguished road
Default Date and free text entry on order

Hi,
I am setting up a shopping site using OSCommerce shopping cart Version 2.2ms2-060817. I have installed/configured the contribution - Options Types.
The shopping site that I am creating will allow customers order refreshments for meeting rooms that they have already booked elsewhere.
I am trying to create a 'Product' that will allow customers to enter the date of their booking and possibly enter free text for other information.
Can anyone advise how I can create an entry field to capture a date and also how I can configure an option box to allow the entry of free text.
Any advice welcome but please give me easy to follow steps! Thanks in advance.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 11-09-2008, 06:55 PM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 2,681
Thanks: 12
Thanked 214 Times in 196 Posts
Rep Power: 20
jpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud of
Default Re: Date and free text entry on order

OTF already has a built in "free text feild" option.

To add - say a date field would not be that hard. Follow much the same as what the text input would be - use HTML date - or use a JAVA calender if you wished. How you store that is a bit more tricky - convert it to TEXT or save as a date variable. Maybe a little date validation would be in order - say nothing next day or in the past - and maybe a MAX time span....like 100 or 365 days.
__________________
JPF - osCMax Fourm Moderator - To contact, post on the forum or click here
Try out our osCMax at: Live Catalog Demo
Limited access Admin: Live Admin Demo
Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 11-10-2008, 12:32 PM
Lurker
 
Join Date: Nov 2008
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0
Olly1234 is on a distinguished road
Default Re: Date and free text entry on order

Hi jpf,

thanks for coming back to me. I am still struggling to set up the free text entry box, I know that I need to set up a new attribut in 3 stages,
Stage 1 create the Product Option, this is where I have selected Text as my option type.

Stage 2, Create my option values, this is where I would normally create standard options e.g. Meeting Room 1, Meeting Room 2, Meeting Room 3 etc but in this case I do not want to suggest any standard text but allow my customers free entry.

Stage 3, Products Attributes where I tie the above 2 bits to a product.
If I create an option and leave the option value blank and then add it to a product in Product Attributes I get a blank drop down box, what I really want is a box of a specific width that the customer would type into.
If I can get this to work I can also use it to ask customer for date of meeting.

Is there any other contribution that would do all the hard work for me on the date entry front as I think I will struggle with the coding to build this in.

As always, thanks for your help,
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 11-11-2008, 04:33 PM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 2,681
Thanks: 12
Thanked 214 Times in 196 Posts
Rep Power: 20
jpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud of
Default Re: Date and free text entry on order

I think you missed a step in doing this. Should shoulkd be selecting the free text option then puting in "Orginization:" or "Name to engrave:" etc... then should allow text input. If there is a drop down box then your seting up the attrib incorrectly or you did not properly install this into oscommerce.

MS2MAX v1.7 (oscmax) had this built in - but support for that version has expired a few years ago. Support in 2.X was dropped in favor or Quanity Tracking Pro (but it broke/incompatable with Option Type)
__________________
JPF - osCMax Fourm Moderator - To contact, post on the forum or click here
Try out our osCMax at: Live Catalog Demo
Limited access Admin: Live Admin Demo
Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
The Following User Says Thank You to jpf For This Useful Post:
Olly1234 (11-14-2008)
  #5  
Old 11-13-2008, 11:44 AM
Lurker
 
Join Date: Nov 2008
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0
Olly1234 is on a distinguished road
Default Re: Date and free text entry on order

Hi,

thanks for coming back to me, I do not have an option for Free Text in my drop down list, only Text, Radio, Checkbox, and Textarea as you say I must have missed a trick when doing the install.
I have double checked the contribution I have added, it is: product_attributes_option_type_2.01
When I look at the install details for the file products_attributes.php I can see this in the amendments to add:

// OTF contrib begins
//CLR 030312 add function to draw pulldown list of option types
// Draw a pulldown for Option Types
function draw_optiontype_pulldown($name, $default = '') {
$values = array();
$values[] = array('id' => 0, 'text' => 'Select');
$values[] = array('id' => 1, 'text' => 'Text');
$values[] = array('id' => 2, 'text' => 'Radio');
$values[] = array('id' => 3, 'text' => 'Checkbox');
return tep_draw_pull_down_menu($name, $values, $default);
}
//CLR 030312 add function to translate type_id to name
// Translate option_type_values to english string
function translate_type_to_name($opt_type) {
if ($opt_type == 0) return 'Select';
if ($opt_type == 1) return 'Text';
if ($opt_type == 2) return 'Radio';
if ($opt_type == 3) return 'Checkbox';
if ($opt_type == 4) return 'Textarea';
return 'Error ' . $opt_type;
}
// OTF contrib ends


Which clearly doesn't have an option for Freetext, have I installed the wrong contribution?

I can easily add the option to the drop down box but of course OSCommerce does not know how to deal with this.

I can see other sections in the /catalog/product_info.php which have code such as:

case PRODUCTS_OPTIONS_TYPE_TEXTAREA

so I can see that there is more to it than just having the option in the drop down.

Sorry but I am a complete numpty at this and seem to be asking very silly questions. Any suggestions as to how I can add this extra option?


Thanks again.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 11-16-2008, 05:37 AM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 2,681
Thanks: 12
Thanked 214 Times in 196 Posts
Rep Power: 20
jpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud of
Default Re: Date and free text entry on order

text...text area...free typeable text area...

No need to add - it already there - just select the TEXT option.
__________________
JPF - osCMax Fourm Moderator - To contact, post on the forum or click here
Try out our osCMax at: Live Catalog Demo
Limited access Admin: Live Admin Demo
Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Add date and order number to invoice and packing slip michael_s New osCommerce Contributions 1 10-21-2008 06:15 PM
Add date and order number to invoice and packing slip michael_s New osCommerce Contributions 0 02-13-2007 11:11 AM
please giv me advise for upgrading Step-By-Step Manual Order Entry 1.8 jikey osCMax v2 Customization/Mods 1 12-09-2006 04:00 AM
Text Attribute not included on order DerekJ osCMax v1.7 Discussion 5 03-19-2005 06:40 AM
Create an Order for New Customer For FREE access to "Fi In-Overtime osCMax v1.7 Discussion 1 05-14-2004 10:33 PM


All times are GMT -8. The time now is 11:51 PM.


Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2009 osCMax
Inactive Reminders By Icora Web Design