Support
It's okay. We're here to help.
HTML Variables
This is a very early draft of the store variables. A better version is coming soon.
Collection
collection.id
The database id of the collection – ex. 392893
collection.name
The name of the collection – ex. Awesome T-shirts
collection.permalink
The url-friendly name of the collection – ex. “Awesome T-shirts” : 39-awesome-t-shirts
collection.url
The url of the collection – ex. “http://myawesomestore.storenvy.com/collections/39-awesome-t-shirts”
collection.products
All the Products in the Collection
collection.products_count
The total number of active Products in the Collection
Collections
collections.all
All of your store’s collections
collections.active
Only your store’s Collections which contain active products
collections.first
The first Collection in your store, as you’ve ordered them in your admin panel
“3522-your-collection”
Use collections.{collection permalink} to reference a specific Collection (ex. collections.3929-awesom-shirts)
Contact
contact.email
The user’s email
contact.name
The user’s name
contact.subject
The subject line of the Contact form
contact.message
The message body of the Contact form) – Also called :description
contact.phone
The user’s phone number
contact.order_number
The user’s submitted order number
contact.sent
Returns true if a support message was sent successfully
contact.captcha
More info needed
contact.captcha_id
More info needed
contact.captcha_answer
More info needed
FAQ
faq.question
faq.answer
FAQs
faqs.all
All of your store’s FAQs
Page (A specific page object)
page.id
page.name
The page’s name. Usually the current collection or product’s name – ex. Awesome Shirt
page.category
The type of page. “theme” Note: custom pages coming soon
page.permalink
The page’s url-friendly name ex. “contact” or “faq”
page.url
The page’s url – ex. “/contact”
page.full_url
The page’s url including your store’s address – ex. “http://myawesomestore.storenvy.com/contact”)
page.description
An html-safe description of the page intended for use in a meta tag to improve SEO ranking.
ex. <meta name="description" content="{{page.description}} – Online Store Powered by Storenvy"/>
page.keywords
An html-safe list of keywords based on either the current product’s tags or the store’s collection names intended for use in a meta tag to improve SEO ranking.
ex. – <meta name="keywords" content="{{page.keywords}}" />
Pages (The master Page class)
pages.all
Returns Page objects for all of the “special” pages for your store – ex. Contact, FAQ, and any any custom pages Note: Custom pages coming soon!"
“contact”
Returns a Page object by referencing the page’s permalink ex. {{ pages.contact }} or {{ pages.faq }}
Product
product.name
The product’s name
product.description
The product’s description
product.price
The product’s price – ex. “8.49”
product.url
The product’s url – ex. “http://myawesomestore.storenvy.com/products/302-foobar”
product.css_class
ex. “product”
product.status
ex. “active”
product.variants
Returns all of the Product’s Variants – also called :options
product.variant
Returns the default Variant for the Product if the Product has a default Variant – also called :option
product.variants_in_stock
Returns all of the Variants that currently have a quantity in stock above 0 – also called :options_in_stock
product.has_default_variant
Returns true or phase if the Product has a Variant called “DEFAULT” – also called :has_default_option
product.collections
Returns all the Collections that the Product is in – also called :categories
product.images
Returns all of the Product’s Photos – also called :photos
product.image
Returns the first Photo of a Product – also called :photo
product.image_count
The number of Photos uploaded for a Product
product.edit_url
Returns the url to the admin panel “http://myawesomestore.storenvy.com/admin/produdcts/30-awesome-t-shirt”
product.tax
The tax total of an item ex. 1.25 Note: Tax is only charged to customers in your same region/location
product.previous_product
Returns the previous Product in your store. Note: Products are currently ordered in the order you added them.
product.next_product
Returns the next Product in your store. Note: Products are currently ordered in the order you added them.
Photo
photo.url
The url of the Photo
photo.large_url
The url of a large version of the Photo
photo.small_url
The url of a small version of the Photo
photo.width
The width of the original Photo
photo.height
The heigh of the original Photo
Products
products.all
Returns all of the Store’s Products
products.current
Returns the Products for the current page
products.top_selling
Returns the 5 best-selling Products for your store
products.count
Returns the number of active products in your Store
products.newest
Returns the 5 newest products in your Store
products.url
The url for your Store’s Product page. ex. “http://myawesomestore.storenvy.com/products”
- “{{ products.32-awesome-t-shirt }}” – (returns a Product object by referencing the Product’s permalink)
Store
store.name
Your store’s name
store.url
Your store’s url
store.description
Your store’s description
store.location
Your store’s location – ex. “Santa Monica, CA”
store.place
Your store’s first Place – Also called :website
store.places
Returns all of your store’s Places – Also called :websites
store.avatar_url
The url of your Store’s profile pic
store.active
Returns true if the store is currently Active
store.banner_image
Returns a Photo object for the Store’s banner image
Place
place.name
ex. “My Website”
place.url
ex. “http://www.example.com”
Theme
theme.banner_image
Returns your Store’s Banner Image Photo object – also called :image
theme.background_image
Returns your Store’s Background Image Photo object
theme.css
Returns your store’s CSS – also called :styles
theme.show_inventory_bars
true
theme.updated_at
The timestamp of the last update to your Theme
Variant
variant.id
The database id for the Variant. Needed when adding items to the user’s Cart
variant.name
The Variant’s name. ex. “Medium”
variant.quantity
The quantity in-stock for the Variant
variant.full_quantity
The amount you have indicated that should reflect a “full” stock bar
variant.percent_available
The percent of your inventory left in stock. quantity ÷ full_quantity – Max. 100
variant.position
The position of the Variant according to the order you sorted them, ex. 3
variant.sold
The number of items that have been sold of this Variant
variant.sold_out
Returns true if the Variant’s quantity is 0
variant.default
Returns true if the Variant is named “DEFAULT”
Back to Store Customization