Liqiud basics
Modules
API
Mailer
Product files
On this page
Overview
Below is a list of all the available drops on the <insert name here> object
| Name | Description |
| id | ProductFile WM3 identifier |
| product_id | Product WM3 identifier |
| variant_id | ariant WM3 identifier (if variant file) |
| variant_ids | Variant WM3 identifier (if used together with product.files_distinct or product.images_distinct) |
| options | Hash/Object with "{option_type_id => option_value_ids}" (if option value file) |
| option_type_ids | Array with option type ids (if option value file) |
| option_value_ids | Array with option value ids (if option value file) |
| presentation | File presentation in the current locale |
| pretty_name | Media File name |
| url | Media File url (original) |
| original | Media file url |
| small | Media file small image url |
| medium | Media file medium image url |
| tags | Array with tag drops |
| file_type | Returns the file type. Values: "image", "video" or "other" |
| image? | Is it an image? |
| video? | Is it a video? |
| other? | Is it something else other than an image or a video? |
Example of how to extract option_type_id => option_value_ids from options and use as data-attributes
<div
{% for option in image.options %}
data-option-type-id-{{option[0]}}="{{option[1] | join: ',' }}"
{% endfor %}>
</div>
<div data-option-type-id-231="2241" data-option-type-id-234="2243" data-option-type-id-235="5829" data-option-type-id-236="5832" data-option-type-id-254="5887"> </div>
Updated: 2020-10-30