There is a comment in code:
var ImageGalleryArray=new Array("");
I can use variables instead of image.jpg, which are saved uder magento attributes. Let’s say:
It perfectly works if I put these variables inside ImageGalleryArray array
As soon as each product has all 3 images defined, all images will be uploaded to eBay. But in case they are not all there:
On eBay 2 images will be desplayed correctly and the third image like a broken one: https://path.to/my/image_one.jpg, https://path.to/my/image_two.jpg and the third image: http://path.to/my/ (because it’s attribute is empty).
The simple answer to this is… not easily.
There isn’t a sane way of checking if the image URL that has been entered into the gallery is a valid image or not.
Yes we could do some regex to check for the file extensions, but that would be flakey at best (because some images don’t always end in the common file extensions and may have ?d=0 for example if dropbox.
However maybe a simple solution would be to instead of adding just the image names, include the full URL to the image instead. That way if the image attribute is blank, it will come out as blank in the template.
Also a side note here is that by not using the media gallery in Magento, is that later on if you decide to use a CDN (maybe because you’re using a lot of bandwidth or want a faster loading Magento site), those images won’t be updated because they’re set as separate attributes. See here for a tutorial on whata CDN is and how to set one up.
Hope that helps!
Alex Beni said
is there also the way to upload to ebay not the biggest images?
I’m not sure I understand the question properly, if you wish to upload smaller images, just resize them and use those instead.
Why Should You Join UnderstandingE?
- Access to over 500 step-by-step video tutorials
- +20 video courses available
- Magento, M2E Pro, Magmi, eBay, Amazon & Design all covered
- Everything is in 100% Plain English
- Learn how to build your own multi-channel software for eBay & Amazon
- Access to the community forums, meet fellow business owners like yourself
Join Now with 2 Clicks
Join now for less that £1 per day you can gain access to over 400 step-by-step video tutorials & learn how to build your very own multi-channel software.
Most Users Ever Online: 1012
Currently Browsing this Page:
Jim @ Moogento: 688
Steve Froggatt: 514
Badeth - UE: 513
Paul Cartwright: 414
Administrators: Matthew Ogborne: 4565, Dave Furness: 4606