1

I was wondering if someone knows how i can customize the "browse" (change language, and add some css to it ) button for uploading a file on the product page(custom options)

The customer should be able to upload multiple files, no you can only upload 1?

I also want to hide the max allowed image dimensions.

Thanks!

4
0

I just checked on my local version so it would be changing the button styling etc. in the Styles.css and then change the following file magento\app\code\core\Mage\Catalog\Model\Product\Option\Type\File.php

where you find this line

if (!$upload->receive()) {

and change it to this one

if (!$upload->receive($file)) {
7
  • Just checked for the PHP file. Unfortunately i cant find that line of code in the file.php? (i used the search function of my text editor) This is the path i used /domains/ideezmedia.nl/public_html/app/code/core/Mage/Catalog/Model/Product/Option/Type/file.php my magento version is 1.9.1.0 Mar 11 '15 at 19:29
  • At line 145 Check there
    – Klettseb
    Mar 11 '15 at 19:44
  • Nope not there, i even tried searching with phrases of that line of code, nothing. Very strange Mar 11 '15 at 20:09
  • I have a look again for it also
    – Klettseb
    Mar 11 '15 at 20:29
  • Magento_Folder/app/code/core/Mage/Catalog/Model/Product/Option/Type/ and then there in any php file otherwise try to download the file again as it probably was deleted then
    – Klettseb
    Mar 11 '15 at 20:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.