osCmax v2.5 User Manual
Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Option Type Feature - Listing out of order

This is a discussion on Option Type Feature - Listing out of order within the osCMax v1.7 Installation forums, part of the osCmax v1.7 Forums category; In checkout_confirmation.php, and the subsequent "order process" emails, the product option type attributes are listed out of order: for example ...

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


    Default Option Type Feature - Listing out of order

    In checkout_confirmation.php, and the subsequent "order process" emails, the product option type attributes are listed out of order:
    for example ()=correct order:

    1 x Pet Memorial - 6x6 [Black Marble]
    (4) - Text line 3: Your soul will find its way to
    (3) - Text line 2: I'll always love you
    (2) - b. Text line 1: Jimmy Bo Jangles
    (1) - a. Font number: 5 (chancellor)
    (5) - Text line 4: the halls of your fathers

    It displays a different order almost everytime I test. It is strange. Again, every test I make, they are displayed in a different order, so there is no set order.

    Any ideas how to make it display correctly?

  2. #2
    Active Member
    Join Date
    Jan 2005
    Posts
    101
    Rep Power
    0


    Default RE: Option Type Feature - Listing out of order

    I suppose a "brute force" way of making it display correctly is to manually tell it to display in alphabetical order (which is how I named them). Although I have no idea how to do that.

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


    Default RE: Option Type Feature - Listing out of order

    heres another example of the problem displayed in an "order process" email:

    1 x Pet Marker - Flat Absolute Black SS [6x12x4] (FABSS-6x12x4) = $145.00
    Text line 5 that would be freaky, right?
    Text line 4 and memories a lane
    a. Font number 9 (formal)
    b. Text line 1 Goodbye sweetheart
    Text line 3 if tears could build a stairway
    Text line 2 take it easy

    and then the invoice (admin/invoice.php) for the EXACT same order looks like this:

    1 x Pet Marker - Flat Absolute Black SS [6x12x4]
    - b. Text line 1: Goodbye sweetheart
    - a. Font number: 9 (formal)
    - Text line 4: and memories a lane
    - Text line 5: that would be freaky, right?
    - Text line 3: if tears could build a stairway
    - Text line 2: take it easy

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


    Default RE: Option Type Feature - Listing out of order

    No ideas huh? How would I go about manually forcing the "order process" email to put them in alphabetical order, IE:

    - a. Font number:_____
    - b. Text line 1:_____
    - Text line 2:_____
    - Text line 3:_____
    - Text line 4:_____
    - Text line 5:_____

    ========================
    I mean couldn't I go into the actually php file that sends the "order process" email and add some code to make it sort them alphabetically? How would I do that, exactly?

  5. #5
    Active Member
    Join Date
    Jan 2005
    Posts
    101
    Rep Power
    0


    Default RE: Option Type Feature - Listing out of order

    Is there no php function to sort something alphabetically?

  6. #6
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default RE: Option Type Feature - Listing out of order

    I think there is already a mod to put them in order. Look here:

    http://www.oscommerce.com/community/...ributes+sorter
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  7. #7
    Active Member
    Join Date
    Jan 2005
    Posts
    101
    Rep Power
    0


    Default RE: Option Type Feature - Listing out of order

    I don't see anything in that contribution regarding the "order process" email, which is where this problem lies. By chance, did you post the wrong link?

  8. #8
    Member
    Join Date
    Dec 2004
    Posts
    75
    Rep Power
    8


    Default Re: RE: Option Type Feature - Listing out of order

    Quote Originally Posted by adam71o
    I don't see anything in that contribution regarding the "order process" email, which is where this problem lies. By chance, did you post the wrong link?
    This is a good point - I'd like to do this too. Maybe Michael can weigh in on this, but I believe the attributes query for the email sent at order completion is in catalog/checkout_process and looks like this:

    Code:
              $attributes = tep_db_query("select popt.products_options_name, poval.products_options_values_name, pa.options_values_price, pa.price_prefix from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_OPTIONS_VALUES . " poval, " . TABLE_PRODUCTS_ATTRIBUTES . " pa where pa.products_id = '" . $order->products[$i]['id'] . "' and pa.options_id = '" . $order->products[$i]['attributes'][$j]['option_id'] . "' and pa.options_id = popt.products_options_id and pa.options_values_id = '" . $order->products[$i]['attributes'][$j]['value_id'] . "' and pa.options_values_id = poval.products_options_values_id and popt.language_id = '" . $languages_id . "' and poval.language_id = '" . $languages_id . "'");
    Could you revise the last line to look like this?:

    Code:
    $languages_id . "' order by popt.products_options_name");
    Brian Neuman
    Webmaster
    www.honeybeadjewelry.com

  9. #9
    Active Member
    Join Date
    Jan 2005
    Posts
    101
    Rep Power
    0


    Default RE: Re: RE: Option Type Feature - Listing out of order

    I wish I could say yes or no. I'm not proficient enough at php to know.

  10. #10
    Active Member
    Join Date
    Jan 2005
    Posts
    101
    Rep Power
    0


    Default RE: Re: RE: Option Type Feature - Listing out of order

    MSasek.... any suggestions?

Page 1 of 2 12 LastLast

Similar Threads

  1. Back End Help for Option Type Feature 1.6
    By makemethis in forum osCmax v1.7 Discussion
    Replies: 2
    Last Post: 09-16-2005, 06:24 AM
  2. Option Type Feature
    By adam71o in forum osCMax v1.7 Installation
    Replies: 2
    Last Post: 04-24-2005, 01:08 PM
  3. Option Type feature/contribution - bug - help!!
    By jasonabc in forum osCommerce 2.2 Modification Help
    Replies: 2
    Last Post: 11-17-2004, 12:19 PM
  4. Have BTS 1.2a, want to add Option Type Feature
    By nfmg in forum osCMax v1.7 General Mods Discussion
    Replies: 1
    Last Post: 05-31-2004, 03:50 PM
  5. Option Type Feature v1.6 for MS2-MAX v1.5.5
    By michael_s in forum osCmax v1.7 Discussion
    Replies: 3
    Last Post: 01-23-2004, 12:09 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
  •