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

1 Answer 1

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 Commented Mar 11, 2015 at 19:29
  • At line 145 Check there
    – seb
    Commented Mar 11, 2015 at 19:44
  • Nope not there, i even tried searching with phrases of that line of code, nothing. Very strange Commented Mar 11, 2015 at 20:09
  • I have a look again for it also
    – seb
    Commented Mar 11, 2015 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
    – seb
    Commented Mar 11, 2015 at 20:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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