osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

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


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

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 04-18-2005, 06:33 AM
Member
 
Join Date: Jan 2005
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
adam71o
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 04-18-2005, 07:05 AM
Member
 
Join Date: Jan 2005
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
adam71o
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 04-20-2005, 12:55 PM
Member
 
Join Date: Jan 2005
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
adam71o
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 04-25-2005, 05:31 AM
Member
 
Join Date: Jan 2005
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
adam71o
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 05-03-2005, 07:02 AM
Member
 
Join Date: Jan 2005
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
adam71o
Default RE: Option Type Feature - Listing out of order

Is there no php function to sort something alphabetically?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 05-03-2005, 07:32 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,329
Thanks: 68
Thanked 322 Times in 305 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
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 Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 05-04-2005, 12:53 PM
Member
 
Join Date: Jan 2005
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
adam71o
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #8  
Old 05-04-2005, 01:35 PM
Member
 
Join Date: Dec 2004
Posts: 75
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
bdneuman
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #9  
Old 05-05-2005, 11:05 AM
Member
 
Join Date: Jan 2005
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
adam71o
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #10  
Old 05-06-2005, 08:26 AM
Member
 
Join Date: Jan 2005
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
adam71o
Default RE: Re: RE: Option Type Feature - Listing out of order

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


All times are GMT -8. The time now is 09:11 AM.


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