Design:Variabile
From Katapulta
(Difference between revisions)
m (→product) |
m (→product) |
||
Line 39: | Line 39: | ||
==Variabile specifice template-urilor== | ==Variabile specifice template-urilor== | ||
===product=== | ===product=== | ||
- | * product.id | + | * <pre>product.id</pre> |
- | * product.title | + | * <pre>product.title</pre> |
- | * product.description | + | * <pre>product.description</pre> |
- | * product.is_physical | + | * <pre>product.is_physical</pre> |
- | * product.has_variants | + | * <pre>product.has_variants</pre> |
- | * product.property1 | + | * <pre>product.property1</pre> |
- | * product.property2 | + | * <pre>product.property2</pre> |
- | * product.property3 | + | * <pre>product.property3</pre> |
- | * product.tags | + | * <pre>product.tags</pre> |
- | * product.creation_time | + | * <pre>product.creation_time</pre> |
- | * product.url | + | * <pre>product.url</pre> |
- | * product.variants | + | * <pre>product.variants</pre> |
- | * product.images | + | * <pre>product.images</pre> |
- | * product.collections | + | * <pre>product.collections</pre> |
- | * product.price_varies | + | * <pre>product.price_varies</pre> |
- | * product.price | + | * <pre>product.price</pre> |
- | * product.price_min | + | * <pre>product.price_min</pre> |
- | * product.compare_price | + | * <pre>product.compare_price</pre> |
- | * product.compare_price_min | + | * <pre>product.compare_price_min</pre> |
- | * product.compare_price_max | + | * <pre>product.compare_price_max</pre> |
- | * product.compare_price_varies | + | * <pre>product.compare_price_varies</pre> |
- | * product.requires_shipping | + | * <pre>product.requires_shipping</pre> |
- | * product.type | + | * <pre>product.type</pre> |
- | * product.vendor | + | * <pre>product.vendor</pre> |
- | * product.featured_photo | + | * <pre>product.featured_photo</pre> |
===collection=== | ===collection=== |
Revision as of 12:49, 29 April 2011
Contents |
Variabile globale
Variabilele globale sunt variabilele disponibile în toate template-urile sau widget-urile Katapulta. Cu alte cuvinte aceste variabile pot fi apelate în oricare dintre template-uri, indiferent de context. Acestea sunt următoarele:
collections
Conține lista de colecții de produse.
blog
Conține lista de articole din blog-ul magazinului tău.
Atribute:
-
blog.all_posts
- lista de articole -
blog.categories
- lista categorii de articole
cart
Această variabilă reprezintă coșul de cumpărături activ.
link_lists
Conține listele de linkuri (meniurile definite în secțiunea Navigare)
vendors
Lista de producători
product_types
Lista de tipuri de produse
pages
Lista de pagini statice
active_url
URL-ul activ
shop
Conține informații despre magazinul tău așa cum au fost definite în secțiunea setări magazin.
Atribute:
-
shop.name
- numele magazinului -
shop.url
- adresa web a magazinului -
shop.email
- email-ul magazinului
Variabile specifice template-urilor
product
-
product.id
-
product.title
-
product.description
-
product.is_physical
-
product.has_variants
-
product.property1
-
product.property2
-
product.property3
-
product.tags
-
product.creation_time
-
product.url
-
product.variants
-
product.images
-
product.collections
-
product.price_varies
-
product.price
-
product.price_min
-
product.compare_price
-
product.compare_price_min
-
product.compare_price_max
-
product.compare_price_varies
-
product.requires_shipping
-
product.type
-
product.vendor
-
product.featured_photo