How Are Product Images Displayed? Print

  • SellStack
  • 0

How Are Product Images Displayed?

SellStack 365 Cannabis displays product images according to simple, deterministic rules based on image count and the optional type flag main. Ordering follows FIFO (first-in, first-out), meaning images are shown in the same sequence they were added to the product.

Display Locations

  • Product detail page
  • Categories listings (list)
  • Categories listings (grid)
  • Products in layouts, latest products lists, and similar modules

Single Image

If there is only one image for a product, that image is shown in all locations.

Multiple Images, No type Specified

If there are multiple images and none has a type set to main, images are displayed as follows:

  • Product detail page: All images, FIFO
  • Categories listings (list): 1 image, FIFO
  • Categories listings (grid): Gallery swiper, FIFO
  • Products in layouts, latest products lists, and similar: Gallery swiper, FIFO

Multiple Images, Exactly One main

If there are multiple images and exactly one image is marked with type main, that single main image is shown in all locations.

Multiple Images, More Than One main

If there are multiple images and more than one is marked with type main, only the images marked main are displayed as follows:

  • Product detail page: Only main images, FIFO
  • Categories listings (list): 1 main image, FIFO
  • Categories listings (grid): Gallery swiper, FIFO, only main
  • Products in layouts, latest products lists, and similar: Gallery swiper, FIFO, only main

Definitions

  • FIFO: Images appear in the order they were added to the product (first added is shown first).
  • Gallery swiper: A swipeable or scrollable image gallery showing multiple images in sequence.
  • type = main: An optional flag on an image indicating it is a primary image for display selection logic.

Was this answer helpful?

« Back