Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remote images via url #149

Closed
muhammadzia-se opened this issue Apr 11, 2018 · 9 comments
Closed

Remote images via url #149

muhammadzia-se opened this issue Apr 11, 2018 · 9 comments

Comments

@muhammadzia-se
Copy link

Hi Tim,
thanks for your valuable support. AS you said that we will upload the images directly to folder and put the images relative path in csv file. but if we have remote images then what procedure we will adopt.

Thanks & Regards,
Zia

@wagnert
Copy link
Member

wagnert commented Apr 11, 2018

Hi @muhammadzia-se, can you please describe what a remote image is in your case and what functionality you would expect? This will help us to understand you better and probably give you a solution.

@muhammadzia-se
Copy link
Author

Thanks for your reply.
like, i wan to add additional images under column header "additional_images" and values should separate commas "," their i will provide multiple images with comma.
eg: http://image.cdn1.jpg,http://image.cdn2.jpg,http://image.cdn3.jpg

Thanks.

@wagnert
Copy link
Member

wagnert commented Apr 12, 2018

Ok, i understand. Should the image be downloaded and moved to the pub/media/catalog/product/ folder or do you want them be loaded from the remote location when e. g. the catalog will be rendered? Basically the importer doesn't care about the images, it'll only set the value from the additional_images column to the database table where it belongs to. This means, if you have "http://image.cdn1.jpg,http://image.cdn2.jpg,http://image.cdn3.jpg" these value will be written to the database. Did you have a look at the Magento 2 option to set a base URL for static files in the backend? I think this is the solution for what you want to do.

@muhammadzia-se
Copy link
Author

Thank you very much for your reply.
Actually it is saving the urls into database. and also i set the "Base URL for User Media Files" still it is not showing the images from remote source. for your best knowledge i am attaching the screenshots.
Thanks & Regards,
Zia
base_url
images

@wagnert
Copy link
Member

wagnert commented Apr 16, 2018

Hi @muhammadzia-se I think, you have to configure the Base URL as you did, but only specify the relative path to the Base URL in additional_images column like my-path/test-01.jpg,my-path/test-02.jpg ... but i didn't test it, so this is only an assumption ;)

@muhammadzia-se
Copy link
Author

Hi @wagnert Thank you for your reply.
you can see in attached screenshot, that i am uploading images in this way comma separated, it is storing values in the database but not showing at the frond end.
images

@wagnert
Copy link
Member

wagnert commented Apr 18, 2018

Hi @muhammadzia-se, please try it without the base URL in the additional_images field, only specify the relative path to the images like my-path/test-01.jpg,my-path/test-02.jpg.

@muhammadzia-se
Copy link
Author

hi Wagnert,
thanks for your kind reply!
you are right that i have to give relative path. but that will only be possible if i have those images in my database. this is first time i am uploading products with remote urls, those images are present on cloud i want them to be in magento while importing.

Regards,
Zia

@wagnert
Copy link
Member

wagnert commented May 15, 2018

@muhammadzia-se Hi, as described before, this should not be an importer issue, it's more up to your magento configuration and the path specified in your import files. If you need more help regard Magento image handling, please checkout the Magento developer documentation.

@wagnert wagnert closed this as completed May 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants