Contributions
File Upload .7 (for PA - Option Type Feature)
This is a file upload utility for use as an attribute on the product_info.php page. Using the standard HTML upload utility (FILE box with a browse button), one can upload a file and link it to a product as an attribute.
For simplicities sake, I am releasing this version as a modification of the Product Attributes - Option Type Feature v1.5 contribution. All files are included in this version (and this readme is merely a modified from of the other). In the future, I may release stripped down versions that will require the Option Type contribution to be installed first. I consider this to be a beta version, so I am releasing it as .7. This allows room for a future version one that can reasonably be considered gamma software.
Free support available in the forums: http://forums.oscommerce.com/index.php?showtopic=59589
Expand All / Collapse All
When a user includes commas in a text options field, an error results in shopping_cart.php, which expects commas to be delimiters of product id's.
After many hours trying to isolate the problem, I solved it by changing the function get_product_id_list() in classes/shopping_cart.php
Zip file includes the modified function only. All I did was take the true product ID to the product ID list, not the entire string, which contains attribute information, and in the case that a user has entered commas in text fields, commas.
Thanks to sszelei.
In catalogincludesmodulespaymentpaypal_ipn.php
changle line 254
which looks like this:
'products_options_values' => $attributes_values['products_options_values_name'],
to this:
'products_options_values' => $order->products[$i]['attributes'][$j]['value'],
I have made a small mistake in my previous upload. It is now fixed.
This is a FULL PACKAGE and can be used for 3 languages (english, german and dutch).
I have also updated the readme.
Many thanks to Matt Fletcher for this great contribution.
NOTE : please note this is a contribution-section, not a helpdesk-section. If you have any problems with this contribution, please do not make any comments here, but look in the support-topic :
http://forums.oscommerce.com/index.php?showtopic=59589
This is (almost) the same version as Matt Fletcher 21 Nov 2003.
This is compatible for "oscommerce-2.2ms2-060817".
Three languages are now included.
English, german and dutch.
I'm using this contribution as well as SQL 5 with no problems whatsoever.
Word or warning before you tear your site apart to install this. This is not MySQL 5 compatible. ie. when your host decides to upgrade to MySQL 5, it will no long work.
Example errors:
1264 - Out of range value adjusted for column 'products_options_values_id' at row 1
insert into products_options_values_to_products_options (products_options_values_id, products_options_id) values ('PRODUCTS_OPTIONS_VALUES_TEXT_ID', '11')
I'm not a programmer but i managed to piece a working system for combining the upload feature with options as images. Mine is for seperate pricing per customer.
Doesnt work with images for checkboxes
Works with radio option as images ,text and file uploads
Need to disable large images for it to work.
This is very rough .Problems experiences are attributes not correctly described on checkout confirmation page.Email problems as well
Bugfixed Enhancement to file upload v.77
by cc@mediakey.dk
-------------
Fixed af small bug in:
/catalog/admin/orders.php
-------------
This is a small enhancement to the contribution "File Upload .77 (for PA - Option Type Feature)"
When the customer Uploads a file for a product, there is no provision for the site admin to see it from interface.
Instead of going to the 'uploads' directory physically and check for the file uploaded by the user, this enhancement will facilitate the admin to view the same from the orders page.
Any feedback is welcome
-Sudheer
[ yakkalasudheer@hotmail.com ]
Fixed more spelling errors. Added new versions of the documentation. Commented out file size check, as that is probably normally better done in php.ini
This is a bug fix release. It repairs two spelling errors, one in products_attributes.php and one in option_type_feature.sql. Note: neither of those errors existed in .71; they were introduced by .75.
This is an update of the install procedure. No changes have been made to functionality. If you have already installed a previous version, then there is no current benefit to installing this one. If you have not yet installed, download this version as the install should be easier.
This addresses a few issues from the forums, including one security issue:
New feature: .htaccess for uploads directory so that people cannot access those files
New feature: error messages enabled
Change: file types limited to picture file types by default
Change: file permissions changed to 666 by default (formerly 777)
Fixed: two spelling mistakes: DIR_FS_UPLOAD in includes/configure.php.default and fro to from in line 134 of admin/products_attributes.php
This is a file upload utility for use as an attribute on the product_info.php page. Using the standard HTML upload utility (FILE box with a browse button), one can upload a file and link it to a product as an attribute.
For simplicities sake, I am releasing this version as a modification of the Product Attributes - Option Type Feature v1.5 contribution. All files are included in this version (and this readme is merely a modified from of the other). In the future, I may release stripped down versions that will require the Option Type contribution to be installed first. I consider this to be a beta version, so I am releasing it as .7. This allows room for a future version one that can reasonably be considered gamma software.
Free support available in the forums: http://forums.oscommerce.com/index.php?showtopic=59589
Note: Contributions are used at own risk.