Contributions

Features (Category Index)
Search: 

Option Types v2

This contribution is built on top of osCommerce 2.2rc2a.
It is an update/upgrade/revision/compilation of the following contributions:

* Option Type Feature v3 (Originally by Chandra Roukema)
* Option Type File Feature v.8 (Originally by Matt Fletcher)
* AJAX Attribute Manager v2.8.6 ((Almost unchanged) Originally by Sam West)
* Improvements by me (AvanOsch aKa Zappo the Wizard of Osch) for http://shop.crystalcopy.nl


The Option Types v2 contribution adds the following functionality to osCommerce:

* The following Option Types:
o Text (With progress bar)
o Text area (With progress bar)
o Uploads
o Checkboxes
o Radio buttons
* Option Sort Order (this makes it possible to order the attributes in product_info by Option)
* Option Length (this is for Text fields. Limits to the number of characters, which is shown in a progress bar)
* Comments for Options (if set in Admin, this is shown after the Option in product_info)
* Uploads are 'connected' to the customer, who now gets a dropdown with uploaded files when upload option is available.
* Uploads are placed in temporary directory if the customer is a guest, and in uploads directory if customer is registered (moves files if customer signs in)
* Temporary Uploads folder is automatically cleaned. How old the files must be for deletion, can be set via Admin.
* Use AJAX Attribute Manager for editing product attributes (Removes product attributes from product_attributes.php in Admin (hmmm.... ;D ))
o If the AJAX Attribute Manager is not wanted/needed, it is easy to exclude from the installation

The Support Thread can be found here: http://forums.oscommerce.com/index.php?showtopic=338661

Expand All / Collapse All

Addendum to 13 Nov 2009 download 20 Oct 2010

/includes/functions/general.php also needs this added;

////
//BOF - Zappo - Option Types v2 - Add function tep_decode_specialchars
// Decode string encoded with htmlspecialchars()
function tep_decode_specialchars($string){
$string=str_replace('>', '>', $string);
$string=str_replace('&lt;', '<', $string);
$string=str_replace('&#039;', "'", $string);
$string=str_replace('&quot;', """, $string);
$string=str_replace('&amp;', '&', $string);

return $string;
}
//EOF - Zappo - Option Types v2 - Add function tep_decode_specialchars

No file in download, use 13 Nov 2009 download

Option Types v2.1.3 w/ Install txt 13 Nov 2009
Option Types v2.1.3 18 Oct 2009
Option Types v2.1.2 2 Oct 2009
Option Types v2.1.1 6 Aug 2009
Option Types v2.1.0 6 Aug 2009
Option Types v2.0.1 14 Jul 2009
Option Types v2 16 Jun 2009

Note: Contributions are used at own risk.