• Resolved ITCS

    (@dimath99)


    Hello,

    I need to fetch all the available images of my products. Some of them have 1 additional image, while others have 2 or more.

    Using this shortcode, I can bring a specific number of images only. Is there a way to fetch all the available gallery images of each product?

    <gallery_image_1>[alg_product_gallery_image_url image_nr=”1″]</gallery_image_1>

Viewing 1 replies (of 1 total)
  • Plugin Author Algoritmika

    (@algoritmika)

    Hi @dimath99,

    Current there is no way to automatically retrieve all the images, however there is a workaround. If you will be using before and after attributes, then nothing will be displayed if there is no image found for the product. So you could add something like this (i.e. you only need to know the max number of images):

    
    [alg_product_gallery_image_url image_nr="1" before="<gallery_image_1>" after="</gallery_image_1>"]
    [alg_product_gallery_image_url image_nr="2" before="<gallery_image_2>" after="</gallery_image_2>"]
    [alg_product_gallery_image_url image_nr="3" before="<gallery_image_3>" after="</gallery_image_3>"]
    [alg_product_gallery_image_url image_nr="4" before="<gallery_image_4>" after="</gallery_image_4>"]
    [alg_product_gallery_image_url image_nr="5" before="<gallery_image_5>" after="</gallery_image_5>"]
    

    Hope you get the idea.

Viewing 1 replies (of 1 total)
  • The topic ‘Number of images on product_image_gallery’ is closed to new replies.