Variable Reference. Magento Community Edition
Реклама
Реклама
CHAPTER 24: Using Variables Variable Reference
Variable Reference
Most email templates have a section of additional variables that are specific to the template.
The following are examples of some frequently used templates.
Email Template Variables
VARIABLE MARKUP TAG
Email Footer
Template
{{template config_path="design/email/footer_template"}}
Email Header
Template
{{template config_path="design/email/header_template"}}
Email Logo Image
Alt
{{var logo_alt}}
Email Logo Image
URL
{{var logo_url}}
Email Logo Image
Height
{{var logo_height}}
Email Logo Image
Width
{{var logo_width}}
Template CSS
{{var template_styles|raw}}
Store Contact Information Variables
VARIABLE MARKUP TAG
Base Unsecure
URL
{{config path="web/unsecure/base_url"}}
Base Secure
URL
{{config path="web/secure/base_url"}}
General Contact
Name
{{config path="trans_email/ident_general/name"}}
General Contact
{{config path="trans_email/ident_general/email"}}
Magento Community Edition 2.0 User Guide 405
Variable Reference CHAPTER 24: Using Variables
Store Contact Information Variables (cont.)
VARIABLE MARKUP TAG
Sales
Representative
Contact Name
{{config path="trans_email/ident_sales/name"}}
Sales
Representative
Contact Email
{{config path="trans_email/ident_sales/email"}}
{{config path="trans_email/ident_custom1/name"}} Custom1
Contact Name
Custom1
Contact Email
Custom2
Contact Name
Custom2
Contact Email
Store Name
{{config path="trans_email/ident_custom1/email"}}
{{config path="trans_email/ident_custom2/name"}}
{{config path="trans_email/ident_custom2/email"}}
{{config path="general/store_information/name"}}
Store Phone
Telephone
Store Hours
{{config path="general/store_information/phone"}}
{{config path="general/store_information/hours"}}
Country {{config path="general/store_information/country_id"}}
Region/State {{config path="general/store_information/region_id"}}
Zip/Postal Code
{{config path="general/store_information/postcode"}}
City
{{config path="general/store_information/city"}}
Street Address 1
{{config path="general/store_information/street_line1"}}
Street Address 2
{{config path="general/store_information/street_line2"}}
{{config path="general/store_information/address"}} Store Contact
Address
406 Magento Community Edition 2.0 User Guide
CHAPTER 24: Using Variables Variable Reference
New Account Template Variables
VARIABLE MARKUP TAG
Customer Account URL {{var this.getUrl($store, 'customer/account/')}}
Customer Email
{{var customer.email}}
Customer Name
{{var customer.name}}
New Order Template Variables
VARIABLE MARKUP TAG
Billing Address
{{var formattedBillingAddress|raw}}
Email Order Note
Order ID
Order Items Grid
{{var order.getEmailCustomerNote()}}
{{var order.increment_id}}
{{layout handle="sales_email_order_items" order=$order area="frontend"}}
Payment Details
Shipping Address
Shipping Description
{{var payment_html|raw}}
{{var formattedShippingAddress|raw}}
{{var order.getShippingDescription()}}
Magento Community Edition 2.0 User Guide 407
Notes
408 Magento Community Edition 2.0 User Guide
SEO & Search
In this section of the guide, we'll take a look at the search capabilities of your store, what you can learn from customer search terms, and how to make your products easy to find. Finally, you’ll learn best practices and techniques that you can use to bring more traffic to your store.
Magento Community Edition 2.0 User Guide 409
410
Contents
Breadcrumb Trail
Product Listings
Pagination Controls
Filterable Attributes
Price Navigation
Configuring Layered Navigation
Search Suggestions
Canonical Meta Tag
Sitemap Configuration
Search Engine Robots
Configuring URL Rewrites
Automatic Product Redirects
Creating URL Rewrites
Product
Category
CMS Page
Magento Community Edition 2.0 User Guide
CHAPTER 25:
Catalog Navigation
The term navigation
1 refers to the methods shoppers use to move from page to page throughout your store. The main menu, or top navigation of your store is actually a list of category links, and provides easy access to the products in your catalog. You will also find categories in the breadcrumb trail that runs across the top of most pages, and in the layered navigation that appears on the left side of some two- or three-column pages.
For a product to be visible in your store, it must be assigned to at least one category. Each category can have a dedicated landing page with an image, static block, a description, and a list of products in the category. You can also create special designs for category pages that are active only for a specific period of time such as for a holiday or promotion.
1The primary group of web page links that a customer uses to navigate around the website; the navigation links to the most important categories or pages on an online store.
Magento Community Edition 2.0 User Guide 411
Скачать
Реклама