Showing posts with label image. Show all posts
Showing posts with label image. Show all posts

Friday, September 30, 2011

Upload issue for Magento 1.6.0.0

I've seen lately the magento forum flooded with this issue.
When trying to upload an image for the product the section with the image name gets a red border and an error message appears.
When trying to upload something for the downloadable products...well..
same s**t different a**h**e (pardon my French).

Here is what I did to fix it:
The problem seems to be caused by the prototype v1.7.
It works great with prototype 1.6
Get the 1.6 version from here http://prototypejs.org/assets/2009/8/31/prototype.js
Create this file: js/prototype/prototype1.6.js and put the contents from the link above in it.
Now edit app/design/adminhtml/default/default/layout/main.xml and add this line
<action method="addJs"><script>prototype/prototype1.6.js</script></action>
right below
<action method="addJs"><script>prototype/prototype.js</script></action>

I don’t think it’s a problem if you edit this core file. I can assume that the guys at Magento will fix the issue with the uploader untill the next version (at least I hope it’s the same issue as reported here: http://www.magentocommerce.com/bug-tracking/issue?issue=12265 - and they claim it’s fixed)

I hope this helps someone
Cheers,
Marius.

Friday, November 20, 2009

Add one image to just one product (For John Egg)

Problem: http://www.magentocommerce.com/boards/viewthread/67233/
Add an image to only a single product in the view page:
Possible solution:
Add a new 'yes/no' attribute for the products, lets call it 'use_alternative_image'
Edit the product you want the image for and set the attribute to "Yes";
In the view.phtml file, you just have to do this:

<?php if ($_product->getUseAlternativeImage()) : ?>
 <img src="{Your image src}" />
<?php endif; ?> 



This way you can set this image to one ore more products (or none).