Cookies setting

Cookies help us enhance your experience on our site by storing information about your preferences and interactions. You can customize your cookie settings by choosing which cookies to allow. Please note that disabling certain cookies might impact the functionality and features of our services, such as personalized content and suggestions. Cookie Policy

Cookie Policy
Essential cookies

These cookies are strictly necessary for the site to work and may not be disabled.

Information
Always enabled
Advertising cookies

Advertising cookies deliver ads relevant to your interests, limit ad frequency, and measure ad effectiveness.

Information
Analytics cookies

Analytics cookies collect information and report website usage statistics without personally identifying individual visitors to Google.

Information
mageplaza.com

Rule Syntax

Vinh Jacker | 12-01-2017

Rule Syntax Rule Syntax

The Most Popular Extension Builder for Magento 2

With a big catalog of 224+ extensions for your online store

Automatically generate Metadata using rule-based for products, categories, and CMS pages. This will help your site get higher ranking in search engines.

In this topic, we will introduce how to use this very useful feature. Now we list all attribute, variables that use in meta data template.

Syntax:

{{name}} {{color}}  [for||for only] {{price}}

Selection condition:

Syntax: [option1|option2|option3|...]

Explaination: It will select randomly option 1-3

Product attributes

General variables

  • {{name}}
  • {{price}}
  • {{status}}
  • {{sku}}
  • {{material}}
  • {{color}}
  • {{weight}}
  • {{new}}
  • {{sale}}
  • {{meta_title}}
  • {{meta_keyword}}
  • {{meta_description}}
  • {{tier_price}}
  • {{minimal_price}}
  • {{msrp}}
  • {{country_of_manufacture}}

Date variables

  • {{special_price}}
  • {{special_from_date}}
  • {{special_to_date}}
  • {{news_from_date}}
  • {{news_to_date}}
  • {{created_at}}
  • {{updated_at}}

Special variables

  • {{category_name}}
  • {{categories}}
  • {{manufacturer}}
  • {{brand}}

It supports all product attributes, even custom attributes. Just add ``.

Category variables

  • {{name}}
  • {{meta_title}}
  • {{meta_keywords}}
  • {{meta_description}}
  • {{increment_id}}
  • {{created_at}}
  • {{updated_at}}

Page variables

  • {{title}}
  • {{meta_title}}
  • {{meta_keywords}}
  • {{meta_description}}
  • {{content_heading}}
  • {{created_at}}
  • {{updated_at}}
Table of content
    Jacker

    With over a decade of experience crafting innovative tech solutions for ecommerce businesses built on Magento, Jacker is the mastermind behind our secure and well-functioned extensions. With his expertise in building user-friendly interfaces and robust back-end systems, Mageplaza was able to deliver exceptional Magento solutions and services for over 122K+ customers around the world.



    Related Post

    Website Support
    & Maintenance Services

    Make sure your store is not only in good shape but also thriving with a professional team yet at an affordable price.

    Get Started
    mageplaza services