Community Add-Ons

Add file to this package
Top » Features

Product Attributes Sort Order v1.0
for osCommerce Online Merchant v2.2

Product Attributes are read out from the database and placed into a select box, however the top most attribute becomes the default, with no way to override or set the sort order of the options. This may result in a default item with a price different from the posted price.

Operating on the assumption that price modifiers should be specificaly selected by the user, this mod adds a sort_order field to the product_atributes table and to the products_attributes.php, and product_info.php pages to allow user ordering of these attributes.

Legend:  Download   Report

Expand All / Collapse All

modulo 4 Jul 2012  

// BOE: Attribute Sort with Clone Tool
$products_options_query = tep_db_query("select pov.products_options_values_id, pov.products_options_values_name, pa.options_values_price, pa.price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES . " pa, " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov where pa.products_id = '" . (int)$this->products_id . "' and pa.options_id = '" . (int)$products_options_name['products_options_id'] . "' and pa.options_values_id = pov.products_options_values_id and pov.language_id = '" . (int)$languages_id . "'" . " order by pa.options_values_price, pa.Products_attributes_id");
// EOE: Attribute Sort with Clone Tool

Product Attributes Sort Order 1.8.3a 22 Jun 2010  
Order by Price if Attrribute sort value is the same 23 Jun 2009  
EN-FR-DE Attribute Sort with Attribute Clone 1_8_3 12 May 2009  
Attribute Sort with Attribute Clone v1.8.3 6 Mar 2009  
Attribute Sort with Attribute Clone v1.8.2 5 Mar 2009  
Attribute Sort with Attribute Clone v1.8.1 5 Feb 2009  
Attribute Sort with Attribute Clone v1.8 3 Feb 2009  
Product Attributes Sort Order v1.7 (Français) 19 Jul 2008  
Small Update + Full Package 17 May 2008  
2 updates - 2 Bugs are Fixed 2 May 2008  
Product Attributes Sort Order v1.6 19 Apr 2008  
Bug 26 Jan 2008  
Versão em Portugues (Brasil) 23 Nov 2006  
Attrib sort v1.2a (+ instructions in Spanish) 21 Nov 2006  
Integrate Attributes Sort Order v.1.11 with Product Tabs1.5 9 Jul 2006  
1.2 Yari Gio 29 Mar 2005  
Option order slav 8 Dec 2004  
Product Attributes Sort Order v1.0 Mark Wilmoth 3 Jul 2004  
Product Attributes Sort Order v.1.11 Erika G. 24 Mar 2004  
Product Attributes Sort Order v.1.0.1 Lynette L. 29 Feb 2004  
Product Attributes Sort Order v1.04 Erik McCarty 29 Feb 2004  
Product Attributes Sort Order v1.03 Erik McCarty 31 Jan 2004  
Product Attributes Sort Order v1.01 Erik McCarty 30 Jan 2004  
Product Attributes Sort Order v1.0 Erik Wayne McCarty 26 Jan 2004