-
Notifications
You must be signed in to change notification settings - Fork 1
liquid_page_products
Myroslava Stavnycha edited this page Nov 27, 2017
·
4 revisions
Has the same methods as Default Collection. In addition to default collection search methods it can be sorted by:
- products.order_by_created_asc
- products.order_by_created_desc
- products.order_by_updated_asc
- products.order_by_updated_desc
- products.order_by_name_asc
- products.order_by_name_desc
- products.order_by_price_asc
- products.order_by_price_desc Or call smth like products['order_by_price_asc'].
- id
- name
- handle - product slug
- url - url to get product
- max_price - max price calculated by max price of the variant
- min_price - min price calculated by min price of the variant
- pice - is min price
- min_active_price - if discount is active, returns discounted price, otherwise usual price
- max_active_price
- available? - if product is available (checks stock and if we need to check it)
- description
- options - product_attributes
- category
- vendor
- type - gives product type model
- variants - collection of variants
- available_variants - collection of only available variants
- image - primary product image
- images - collection of product images
- attributes - collection af appributes
- variant_properties - collection of Variant Properties
- others_in_category - collection of products whicha are in the same category