- AdvSearch
- cookieJar
- getYoutube
- aliasid
- AddHeaderfiles
- AjaxUpload
- amazonSES mailing list
- Analytics
- Archivist
- Articles
- Babel
- BannerX
- BannerY
- Batcher
- bdListings
- boilerX
- BreadCrumb
- Breadcrumbs
- BxrExtra
- cachebuster
- CamperManagement
- Church Events Calendar
- Cliche
- ClientConfig
- CMPGenerator
- Collections
- ContextRouter
- CookieList
- CronManager
- cssSweet
- CustomUrls
- Databackup
- Discuss
- DitsNews
- Eletters
- EventManager
- eventsCalendar2
- EventsX
- ExerPlan
- fastField
- FileDownload R
- FileLister
- FirstChildRedirect
- Flexibility
- ForcedPasswdChange
- FormIt
- FormIt2db
- FormitFastPack
- FormSave
- FoundationX
- FX2themebase
- Gallery
- GatewayManager
- gCal
- getDate
- getFeed
- getPage
- getRelated
- getResourceField
- getResources
- getUrlParam
- getRTImages
- getVimeo
- GoogleSiteMap
- GridClassKey
- HandyMan
- Hits
- HitsPage
- HybridAuth
- If
- Image+
- imageHERE
- ImageStyles
- ImportX
- LexRating
- Lingua
- Login
- Loginza
- mChimpX
- MetaX
- mhPayPal
-
MIGX
- MIGX.Backend-Usage
- MIGX.Data-Entry
- MIGX.Frontend-Usage
-
MIGX.Tutorials
- MIGX.Fancybox-images with seperate placeholders in Richtext-Content
- MIGX.Simple opening hours table
- Using resource-specific mediasource and multifile-uploader with MIGX
- MIGX.Varying layout-boxes
- Creating Selectable and Sortable lists for MIGX
- MIGX.sortable resourcelist
- Using resource-specific mediasource and multifile-uploader with MIGX
- MIGX.Using Grid Inline Editing
- MIGXdb
- MinifyX
- miniShop
- modActiveDirectory
- ModDef
- modExtra
- modMobile
- modSwiftMailer
- mxCalendar
- mxExtendedMenu
- mxFormBuilder
- mxHasTvs
- MoneyBird
- ObfuscateEmail-Revo
- PackMan
- PageBreaker
- Peoples
- PHP Tidy (plugin)
- phpThumbOf
- Polls
- POI Manager
- QuickCrumbs
- Quip
- Rampart
- Redirector
- renderResources
- ResourceWatcher
- RezImgCrop
- Rowboat
- sekFancyBox
- sekFormTools
- sekSiteTools
-
sekUserGalleries
- sekUserGalleries.album.items.helper
- sekUserGalleries.album.items.manage
- sekUserGalleries.album.manage
- sekUserGalleries.album.view
- sekUserGalleries.browse.galleries
- sekUserGalleries.directory
- sekUserGalleries.image.information
- sekUserGalleries.search
- sekUserGalleries.users.gallery.manage
- sekUserGalleries.users.gallery.view
- selfLink
- Shopkeeper
- siblingNav
- SimpleSearch
- SiteEditor
- sitemapFriend
- Slideshow Manager
- sLink
- SmartOptimizer
- SmartTag
- StatCache
- SocialLogin
- SocialSuite
- spieFeed
- StaticSaver
- StoreLocator
- SubscribeMe
- SyntaxChecker
- Tagger
- TaggingAtoZ
- tagLister
- TinyMCE
- Upload to Users CMP
- VersionX
- virtuNewsletter
- VisionCart
- Wayfinder
- xFPC
VisionCart.vcGetProductImages
This is a user-contributed Extra. If you find issues or would like more info or help, please contact the author.
What is vcGetProductImages?
vcGetProductImages is a snippet that gets the image(s) from a VisionCart product and displays them using a chunk or config-file (included in the theme)
Examples
These 2 examples you can use in the getProduct snippet config/chunk [[+id]] is the id of the product.
Start with the first image (&offset=`0`) and stop there (&limit=`1`) where image prefix is medium_
[[!vcGetProductImages?id=`[[+id]]`&offset=`0`&limit=`1`&prefix=`medium_`]]
Get all images for this product skipping the first image where prefix is thumb_
[[!vcGetProductImages?id=`[[+id]]`&offset=`1`&prefix=`thumb_`]]
You can also use the snippet as a standalone snippet setting the id by hand but then a shopId must also be set.
[[!vcGetProductImages?id=`10`&offset=`0`&limit=`1`&prefix=`thumb_`&shopId=`1`]]
Available Properties
Templating Properties
Name | Description
|
Default Value
|
---|---|---|
tpl
|
Name of a chunk serving as the image template. If not provided,default theme is used
|
Selection Properties
Name
|
Description
|
Default Value |
---|---|---|
rel
|
Value for placeholder "rel" used in tpl
|
|
limit
|
Limits the number of images returned | 0
|
offset
|
An offset of images returned by the criteria to skip | 0
|
prefix
|
Prefix of the images to show (filter by prefix)
|
false
|
shopId
|
Shop ID from the shop that holds this product
|
0 (current shop)
|
Placeholders
These placeholders can be used in the tpl:
Name
|
Description
|
---|---|
src
|
The source of the image to be displayed (path to the image relative to the siteroot)
|
rel
|
Properties set in snippet call
|
width
|
width of the image
|
height
|
height of the image
|
count
|
Number of the #nd image shown, starting with 0
|
?
Suggest an edit to this page on GitHub (Requires GitHub account. Opens a new window/tab).