Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Contact Us
  • Home
  • Customization Guides
  • Advanced Customization

Shopify/Liquid Variables and Objects Reference

Written by Jose Souza

Updated at August 17th, 2020

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Customization
    Customization Guides
  • Article Editor
  • Getting Started
    Managing Users Analytics Content Management Permissions & Accessibility Video Tutorials
  • Integrations
  • API & Webhooks
    API V2 API V3
  • Languages & Translations
  • Authentication
  • Swifty AI
  • Settings
    User Settings User Behavior Knowledge Base Settings Custom Domain
+ More

Helpjuice uses a programming language Object Oriented to fetch database results, heres a list of all the objects and variables:


  • on_show_question_page: Variable that returns a true value if the current page is a question;
  • on_index_page: Variable that returns a true value if the current page is the index page;
  • on_contact_us_page: Variable that returns a true value if the current page is the contact-us page;
  • account: Object that returns a list of properties related to the KB account;
  • internal_kb_user: Object that contains the info on the logged in user;
  • current_user:Same as internal_kb_user ;
  • javascript_includes: This Object is specific for the template it returns a string containing the main JS;
  • responsivemenu_js: This Object is specific for the template it returns a string containing the javascript files responsible for the mobile menu;
  • typewatch_js: This Object is specific for the template it returns a string containing the javascript files responsible for the monitoring of the search block;
  • questions_js: This Object is specific for the template it returns a string containing the javascript files responsible for the fetching and displaying of questions after performing a search;
  • content_for_layout: This Object fetches the contents on the current page as a text and paste it over the template code
  • categories: Be careful this object fetches all the categories under your KB, non-exclusively, which means that you would also get all the child categories;
  • roots_categories: A more focused object returns only the immediate categories under your KB;
  • top_questions: Returns a list with the 20 most frequently visited questions;
  • most_popular_questions: Returns the exact same list;
  • latest_questions: Returns the 20 recently updated questions.

Some of those objects and variables have attributes:

Question

  • .name : Retrieve a String with the full name of the question;
  • .answers : Retrieve a Long String with the text;
  • .category : Fetch the parent category to the specific question and returns as a object ;
  • .id : Identification number of said question;
  • .url : URL Slug text starting imidiately after the domain;
  • .votes : Sum quantity of feedback votes;
  • .feedback_url: used in the feedback form, more details here;
  • .positive_votes : positive votes quantity only;
  • .negative_votes : negative votes quantity only;
  • .answer_sample : A tiny piece of the question text, 90 first chars;
  • .long_answer_sample : A small piece of the question text, 350 first chars;
  • .related_questions : Returns a list of question objects with similar location;
  • .published_date : The complete date of publication (hour included);
  • .last_updated : The complete date of the most recent update (hour included);
  • .is_internal : Boolean value returns true if the  question is indeed internal;
  • .author_first_name : The autors first name;
  • .author_last_name : The autors last name;
  • .tags_name : A list with the tags for the question;

Category

  • .name : Retrieve a String with the full name of the question;
  • .show_all_questions_link : URL Slug text starting imidiately after the domain;
  • .category_link : A anchor tag with name and href to the category;
  • .url : URL Slug text starting imidiately after the domain;
  • .all_self_and_descendants: List of category objects with children and the current category it self;
  • .descendants : List of category objects containing all the children and beyond categories;
  • .children : List of category objects containing all the children and beyond categories;
  • .root : Return a single object parent to the current category;
  • .id: Identification number of said category;
  • .parent: Return a single object parent to the current category;
  • .published_questions_by_id : returns the questions object ordered by ID;
  • .is_internal? :Boolean value returns true if the  question is indeed internal;
  • .number_of_questions : quantity of questions inside this category, subcategories not included, can be replaced by {{category.questions.size}};
  • .published_questions : List of published questions in this category, subcategories not included;
  • .questions  : List of all questions in this category, subcategories not included;
  • .has_children? : Boolean value, assumes true if the current category have subcategories.


Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • Adding Custom CSS
  • How Can I Contextualize The Template?
  • How to Integrate Helpjuice with Olark
One Knowledge Base To Replace Them All
24/5 support
Constant Product Updates & Improvements
100% money back guarantee
99.9% Uptime
Features
  • AI Knowledge Base AI-Enabled
  • Helpjuice Extension AI-Enabled
  • Powered Editor AI-Enabled
  • Advanced Analytics AI-Enabled
  • Customizable Themes AI-Enabled
  • Swifty · Helpbar & Chatbot AI-Enabled
  • Multi-Language Support
  • Step-by-Step Tutorial Creator
  • Seamless Integrations
  • User Access Control
  • See All Features >>
Product
  • Product Roadmap
  • Pricing
  • Book a Demo
  • Policies & Security
  • Our Customers
  • About Helpjuice
  • Contact Our Team
Resources
  • Our Knowledge Base
  • Webinars
  • Success Stories
  • API Documentation
  • Data Import Guide
  • Helpjuice Blog
Copyright © 2025, Helpjuice Inc.
Helpjuice, Inc. is a registered US Corporation.
EIN 46-2257741 | Download W9
Made in America High Performer Ease of Use Get Support
Get Started For Free
4.8 average review on
Life’s too short to use mediocre software.
+1 (833) 387 3877
Powered by Helpjuice Helpjuice Swifty AI External Link
Expand