Miva Custom Web Development
Our available modules can be found here. Created with maximum flexibility in mind. If you have any questions for us or just have a comment, contact us. Want to know about our policies on privacy and use of modules? Check out our policies. |
Home Miva Look and Feel MvCarousel
MvCarousel makes adding interactive carousels to any page of your Miva Merchant storefront fast and simple.
Q: How much customization is there with the pictures in the carousel? Are they pulled from product thumbnails, or could I make each image for each item? A: Within the template which will display the carousel, a foreach loop is used similar to how products may be displayed on your typical Miva category page. Within the foreach loop, several tokens are available for each product being displayed. Typically, the product's thumbnail is displayed using the token: &mvt:item:thumbnail; however you can configure each carousel to pull a specific custom product field for all its products. The value of this custom product field can be accessed by the template using the token: &mvt:item:cpf; . So you could create a custom product field called 'Carousel Image', populate it with the path to the image you would like to represent that product in the carousel, configure the carousel to pull that custom product field, and then update your carousel template with something like: Within the template which will display the carousel, a foreach loop is used similar to how products may be displayed on your typical Miva category page. Within the foreach loop, several tokens are available for each product being displayed. Typically, the product's thumbnail is displayed using the token: &mvt:item:thumbnail; however you can configure each carousel to pull a specific custom product field for all its products. The value of this custom product field can be accessed by the template using the token: &mvt:item:cpf; . So you could create a custom product field called 'Carousel Image', populate it with the path to the image you would like to represent that product in the carousel, configure the carousel to pull that custom product field, and then update your carousel template with something like: <img src="&mvt:item:cpf;" /> |