commercejs-nextjs-demo-store icon indicating copy to clipboard operation
commercejs-nextjs-demo-store copied to clipboard

Categories images not loading

Open lborruto opened this issue 3 years ago • 1 comments

Hi, looking to get my own images working in the CategoryBanner, nothing works despite reading the instructions. My collection.js look like this :

export default [
  {
    image: '/images/collection/1.png',
    slug: 'salle-de-bain',
    link: '/collection#salle-de-bain',
    translateRatio: 30,
    count: 3
  },
  {
    image: '/images/collection/2.png',
    slug: 'cuisine',
    link: '/collection#cuisine',
    translateRatio: 0,
    count: 3
  },
  {
    image: '/images/collection/3.png',
    slug: 'mode',
    link: '/collection#mode',
    translateRatio: 60,
    count: 2
  }
];

I double checked the spelling and path but everything seems ok. Maybe I'm doing this wrong. Categories are also set in the Chec dashboard:

image

lborruto avatar Apr 06 '22 12:04 lborruto

inside CategoryBanner.js exactly under the Link, change item.meta.image to item.assets[0].url

Dev-Dz27 avatar Feb 03 '23 21:02 Dev-Dz27