Results 1 to 6 of 6

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. ...

      
  1. #1
    Member
    Join Date
    Jan 2005
    Posts
    30
    Rep Power
    0


    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

  2. #2
    Member
    Join Date
    Nov 2004
    Posts
    84
    Rep Power
    0


    Default

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

    http://oscdox.com/index.php?name=PNp...xt+input+field

  3. #3
    Member
    Join Date
    Jan 2005
    Posts
    30
    Rep Power
    0


    Default

    Thanks GoAskMom,

    I'll try this in the morning.

    Cheers
    Derek

  4. #4
    Member
    Join Date
    Jan 2005
    Posts
    30
    Rep Power
    0


    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

  5. #5
    Member
    Join Date
    Feb 2005
    Posts
    30
    Rep Power
    0


    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.

  6. #6
    Member
    Join Date
    Jan 2005
    Posts
    30
    Rep Power
    0


    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

Similar Threads

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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •