Announcement

Collapse
No announcement yet.

Catetory Product Display not showing images

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Catetory Product Display not showing images

    I'm using the Colossus ReadyTheme to develop a new website, but on my CTGY page, product images aren't showing. Upon looking at the code, the source is blank.

    <picture class="x-product-list__picture">
    <img class="x-product-list__image" data-src="&mvte:product:imagetypes:main;" src="" alt="&mvte:product:name;">
    </picture>


    If I hard code an image url into src it works and displays properly, but obviously uses the same picture for every product in the foreach loop.

    What variable do I need to put into src to get Miva to show the picture for the respective product in the loop?

    I guess the bigger question is: how do I know what variables are even available and their names? I could have sworn there used to be a way to show all of the variables available on a page along with their current values. Is that a feature that is still available in Miva, and if not where do I go for this information?

    Sorry if this is a stupid question; there's a big learning curve here.

    Thanks!
    Last edited by UEP; 03-18-22, 02:05 PM.

    #2
    The code you posted is for the subcategory listing. Those images are populated by uploading a Category Tree image for the relevant category in the administration portal.
    Matt Zimmermann

    Miva Web Developer
    Alchemy Web Development
    https://www.alchemywebdev.com
    Site Development - Maintenance - Consultation

    Miva Certified Developer
    Miva Professional Developer

    https://www.dev4web.net | Twitter

    Comment


      #3
      Originally posted by UEP View Post
      I guess the bigger question is: how do I know what variables are even available and their names? I could have sworn there used to be a way to show all of the variables available on a page along with their current values. Is that a feature that is still available in Miva, and if not where do I go for this information?
      What you're looking for is called the Token List. In order for it to be available on a page, the tokenlist item has to be enabled first.

      Comment

      Working...
      X