{{ }}
learnshopify.dev
/
Workspace
/
Module 2 · 32. Lock it in: Module 2 recap
Hide guide
← Prev
Next →
Task 1 of 1
quiz
Six questions · ~6 minutes
1. You need the total number of products in a collection for a menu badge. What do you use?
A
`collection.products | size`
B
`collection.products_count`
C
A `{% for %}` loop with a counter
D
`collection.all_products`
2. On a product card for an item with variants from $18.99 to $64.99, which price do you show?
A
`product.price` (the first variant's price)
B
`from {{ product.price_min | money }}`
C
`product.price_max` only
D
Hardcode the range you see today
3. How do you show the tax amount in the cart?
A
`{{ cart.taxes | money }}`
B
`{{ cart.tax_price | money }}`
C
You don't, tax is calculated at checkout; use `cart.taxes_included` for the wording
D
Multiply the total by your tax rate in Liquid
4. How do you gate VIP-only content to your best customers?
A
`{% if customer.email == ... %}` against a list
B
`{% if customer.tags contains "vip" %}`
C
`{% if customer.orders_count > 10 %}`
D
Check the customer ID against hardcoded IDs
5. You're rendering a variant picker. Which gives you each option's name AND its values?
A
`product.options` (an array of name strings)
B
`product.options_with_values`
C
`product.variants`
D
`product.tags`
6. You render `{{ variant.featured_image | image_url }}` for every variant. What happens?
A
It's fine, every variant has an image
B
Broken images on most variants, since `featured_image` is usually nil
C
A Liquid error stops the page
D
It falls back to the product image automatically
0 / 1 task solved
Submit answer