[ECOMMERCE-297] MAGENTO. Investigate why image thumbnail preview and display in product detail does not work Created: 12/May/20  Updated: 06/Apr/21  Resolved: 17/Mar/21

Status: Closed
Project: E-commerce
Component/s: None
Affects Version/s: 1.2.3
Fix Version/s: 1.2.4

Type: Bug Priority: Neutral
Reporter: Julie Legendre Assignee: Thuy To
Resolution: Fixed Votes: 1
Labels: VN-Analysis, VN-Implementation
Remaining Estimate: 0d
Time Spent: 5.25d
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[X]* Doc/release notes changes? Comment present?
[X]* Downstream builds green?
[X]* Solution information and context easily available?
[X]* Tests
[X]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[X]* Steps to reproduce, expected, and actual results filled
[X]* Affected version filled
Date of First Response:
Epic Link: Commerce fixes and improvements 1.2.4 - 1.2.5
Sprint: Add-Ons 59
Story Points: 5

 Description   

Thumbnail previews are not displayed and, in the product detail view, no images appear either. Both work in the case of the salesforce connector. 

The image link leads to a 404 on the magento demo site, but the product does exist. For example: 

http://demo-acm-2.bird.eu/pub/media/catalog/product/w/b/wb02-green-0.jpg >>>404
http://demo-acm-2.bird.eu/compete-track-tote.html >>>correct product

For the sample magento config:

class: info.magnolia.ecommerce.common.EcommerceDefinition
type: Magento
enabled: true
implementation:
  products:
    all: info.magnolia.ecommerce.magento.products.All
    byId: info.magnolia.ecommerce.magento.products.ById
    byCategoryId: info.magnolia.ecommerce.magento.products.ByCategoryId
    searchByText: info.magnolia.ecommerce.magento.products.SearchByText
  categories:
    all: info.magnolia.ecommerce.magento.categories.All
    byId: info.magnolia.ecommerce.magento.categories.ById
    byParentCategoryId: info.magnolia.ecommerce.magento.categories.ByParentCategoryId
    byProductId: info.magnolia.ecommerce.magento.categories.ByProductId
connections:
  connectionName:
  authUrl: http://demo-acm-2.bird.eu
  baseUrl: http://demo-acm-2.bird.eu
  enabled: true
  credentials:
    username: demo
    password: demo123

 

 



 Comments   
Comment by Pierre Sandrin [ 12/Aug/20 ]

You have to remove the '/pub' from the path.

http://demo-acm-2.bird.eu/media/catalog/product/w/b/wb02-green-0.jpg -> works

I dont know why though.

We remove the '/pub' with a regex in the Java code before delivering it. But still the preview image in Magnolia does not work. Would be great if this could be fixed soon!

Generated at Mon Feb 12 01:42:42 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.