Documentation / Theme editor / Foreach collections

All those collections can be used in foreach loops.

Product collections

These collections are available on the "product.html", "category.html", "collection.html" or "brand.html".

current.product.images

Contains all the images related to the current product.

Object type

image

Vary by

Variables created by foreach

Use examples

current.product.variants

Contains all the variants of the current product.

Object type

variant

Vary by

Variables created by foreach

Use examples

current.product.tags

Contains all the tags of the current product.

Object type

tag

Vary by

Variables created by foreach

Use examples

Contains products related to the current product (same category, random).

Object type

product

Vary by

Variables created by foreach

Use examples

current.product.quantities

Contains list of available to buy product quantity ("minbuy" to "maxbuy"). Attention to this one, if you have maxbuy very high, the dropdown list will be very heavy.

Object type

quantity

Vary by

Variables created by foreach

Use examples

store.products

Contains products of the category, collection or brand/vendor.

Object type

product

Vary by

Variables created by foreach

Use examples

Order collections

All those collections are available on the "order.html" or "orders.html" theme page.

customer.orders

Contains confirmed orders of the currently logged in customer.

Object type

order

Vary by

Variables created by foreach

Use examples

current.order.items

Contains order items of the selected order (in the customer account page).

Object type

order item

Vary by

Variables created by foreach

Use examples

Cart collections

All those collections are available on the "cart.html" theme page.

cart.items

Contains order items of the current cart.

Object type

cart item

Vary by

Variables created by foreach

Use examples

cart.order.items

Contains order items of the current cart.

Object type

order item

Vary by

Variables created by foreach

Use examples

cart.paymentmethods

Contains available payment methods.

Object type

payment method

Vary by

Variables created by foreach

Use examples

cart.shippingrates

Contains available shipping methods with rates.

Object type

shipping rate

Vary by

Variables created by foreach

Use examples

Blog posts collections

These collections are available on the "blog.html" or "blog-post.html" theme pages.

blog.posts

Contains blog posts.

Object type

post

Vary by

Variables created by foreach

Use examples

current.blog.post.tags

Contains all the tags of the current blog post.

Object type

tag

Vary by

Variables created by foreach

Use examples

Search results collections

These collections are available on the "search.html" theme page.

search.results

Contains all the search results for the query.

Object type

search result

Vary by

Variables created by foreach

Use examples