osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Text Attribute not included on order

This is a discussion on Text Attribute not included on order within the osCMax v1.7 Discussion forums, part of the osCMax v1.7 Forums category; Hi All, I've added a text box attribute to a product to allow the user to type in freeform text. ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v1.7 Forums > osCMax v1.7 Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 02-19-2005, 05:01 AM
Member
 
Join Date: Jan 2005
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
DerekJ
Default Text Attribute not included on order

Hi All,

I've added a text box attribute to a product to allow the user to type in freeform text. It works OK all the way up to the checkout showing the product name and text input by the user, but the text is not being passed on from the checkout to the order. It's not in the confirmation e-mail or the database.

Is there somthing I'm doing wrong here?

Thanks In Advance
Derek
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 02-19-2005, 06:31 AM
Member
 
Join Date: Nov 2004
Posts: 84
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
goaskmom
Default

It's a bug and the patch is out. See here ......

http://oscdox.com/index.php?name=PNp...xt+input+field
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 02-19-2005, 01:59 PM
Member
 
Join Date: Jan 2005
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
DerekJ
Default

Thanks GoAskMom,

I'll try this in the morning.

Cheers
Derek
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 02-20-2005, 09:19 AM
Member
 
Join Date: Jan 2005
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
DerekJ
Default That Works Now

Hi All,

Just to confirm that the fix GoAskMom mentions works OK.

However,......
The thread is long, (I started to read it before I posted this question but abandoned it half way down!) so work your way through it! (Not like me!)

If the dowload does not work, follow Msasek's advice and uncheck the Httm1.1 checkbox, quit ALL explorer windows and restart it before trying to download it again.

Thanks All
Derek
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 02-26-2005, 11:19 AM
Member
 
Join Date: Feb 2005
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Impreza25r
Default

I have updated with this patch and am Still having problems when the customer pays with Paypal all I get is the words TEXT for any text input boxes. But if they pay with check/money order everything works perfectly. Can someone help please!! Ive checked just about everything I can think of, compared all the paypal payment modules using beyond compare and nothing is wrong or out of place.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 03-19-2005, 06:40 AM
Member
 
Join Date: Jan 2005
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
DerekJ
Default

Hi All,
To get round the problem of the text string being mashed when using paypal, I did this which works.

HOWEVER!!! I don't know how safe it is. Can someone else comment??

In catalog/checkout_process.php, find this line-->

//clr 030714 changing to use values from $orders->products and adding call to tep_decode_specialchars()

$products_ordered_attributes .= "\n\t" . $attributes_values['products_options_name'] . ' ' .
tep_decode_specialchars($order->products[$i]['attributes'][$j]['value']);

REMOVE the call to tep_decode_specialchars()...Like this--->

$products_ordered_attributes .= "\n\t" . $attributes_values['products_options_name'] . ' ' . $order->products[$i]['attributes'][$j]['value'];

I'm not sure what decode_special_chars() does, it may in be to provent SQL-Injection or something, so it's maybe better to wait until a real coder has a look.

Best,
Derek
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
New Text Attribute Problem. Please Help prosam osCMax v1.7 Discussion 13 11-28-2006 12:00 PM
adding text box for a product attribute tunnel7 osCMax v2 Features Discussion 1 06-10-2006 09:02 AM
product attribute text option question SkidMark osCMax v1.7 General Mods Discussion 5 04-29-2005 10:46 AM
Text Attribute Character Limit prosam osCommerce 2.2 Modification Help 5 04-27-2005 10:02 AM
Shipping not being included/added to order in a MS/2 Install cpeters osCMax v1.7 Installation 1 12-17-2004 03:42 PM


All times are GMT -8. The time now is 02:35 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax