Skip to content
This repository has been archived by the owner on Jun 5, 2024. It is now read-only.

Magento images are not displaying in Vue-StoreFront #29

Closed
anirudh3333 opened this issue Aug 27, 2018 · 14 comments
Closed

Magento images are not displaying in Vue-StoreFront #29

anirudh3333 opened this issue Aug 27, 2018 · 14 comments

Comments

@anirudh3333
Copy link

anirudh3333 commented Aug 27, 2018

Hello,

I successfully connected Magento to Vue-StoreFront. I'm able to get all products in Vue-StoreFront which are added in Magento. But I'm unable to get Magento product images in Vue-StoreFront.

How I will get my Magento product images in Vue-StoreFront??

When I was installing Vue-StoreFront it was asked for image path , which path we need to provide there?either Magento image path or Vue-StoreFront path??
I have imagemagic also, still it is not working.
Anyone please help me.

Thanks in advance :),
Anirudh.

@zadigus
Copy link

zadigus commented Aug 27, 2018

Please have a look at this: #28 as I had the very same problem yesterday.

@anirudh3333
Copy link
Author

anirudh3333 commented Aug 29, 2018

Hello,

Here I'm getting the images path in vue-storefront like

<img lazy="error" data-src="http://magento-sample-url/pub/media/catalog/product/310/300/resize/s/h/shirt_1.jpeg" alt="Ctel Shirts" src="/assets/placeholder.jpg" data-testid="productImage" data-v-af5f87e8="" height="300" width="310">

if I remove "310/300/resize" from the src URL I am able get the image in browser.

What is the issue?What I need to change?

@Darwex
Copy link
Contributor

Darwex commented Nov 8, 2018

Hi.

I had the same issue, there was wrong url in generated config inside vue-storefront-api. I had to change value inside vue-storefront-api/config/local.json section magento2.imgUrl to "https://your.magento.host/pub/media/catalog/product".

@parnus01
Copy link

Hello,

Here I'm getting the images path in vue-storefront like

<img lazy="error" data-src="http://magento-sample-url/pub/media/catalog/product/310/300/resize/s/h/shirt_1.jpeg" alt="Ctel Shirts" src="/assets/placeholder.jpg" data-testid="productImage" data-v-af5f87e8="" height="300" width="310">

if I remove "310/300/resize" from the src URL I am able get the image in browser.

What is the issue?What I need to change?

same problem do you have any idea for this ?

@pkarw
Copy link
Contributor

pkarw commented Dec 13, 2018

You need to set magento2 img url (/pub/media/catalog ...) in the vue-storefront-api/config/local.json. Then in the vue-storefront You need to set images.baseUrl to point to vue-storefront-api which is usually: localhost:8080/img

@parnus01
Copy link

i change config in vue-storefront-api and run yarn dev to recomplie . but it got some error
uncaughtException: listen EADDRINUSE 127.0.0.1:8080

@Cyclonecode
Copy link
Contributor

@parnus01 - The error message tells you that your vue-storefront-api instance is already running so you will need to terminate and restart the current node application.

@lukeromanowicz
Copy link
Contributor

Closing due to OP inactivity.

@rahuljajra
Copy link

Hello,

I successfully connected Magento to Vue-StoreFront. I'm able to get all products in Vue-StoreFront which are added in Magento. But I'm unable to get Magento product images in Vue-StoreFront.

How I will get my Magento product images in Vue-StoreFront??

When I was installing Vue-StoreFront it was asked for image path , which path we need to provide there?either Magento image path or Vue-StoreFront path??
I have imagemagic also, still it is not working.
Anyone please help me.

Thanks in advance :),
Anirudh.

can you please advise how to Integrate Vue-storefront with local Magento.
I have tried with all steps but not successfully integrated

@anirudh3333
Copy link
Author

anirudh3333 commented Nov 18, 2019 via email

@rahuljajra
Copy link

Hello Rahul, For that you have to install image magick(PHP-ImageMagick extension). One try with that.

What is the role of this extension?
I followed below some steps to connect magento2 with vue-storefront

  1. Cloned vue-storefront-api as per documentation and run with following commands
  2. Cloned Vue-storefront as per documentation and run with following commands
  3. Cloned Mage2vuefrontstore (mage2nosql) and run the following commands.
  4. In local Magento admin panel system -> Integration -> done all steps in documentation

kindly let me know if anything missed

@Chiragsorathiya
Copy link

Chiragsorathiya commented Mar 17, 2020

Hello team i have same problem i can't see product image

@davevh
Copy link

davevh commented Jul 29, 2020

I have the same problem here

@sprajapat770
Copy link

still this issue not solved.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests