Developer Flashcards
11 cards from real Shopify practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.
Read the first 11 Developer flashcards as text
Which option from the list below best describes how to change your theme offline?
Answer: As a workaround, use the Textmate bundle to edit your theme using TextMate (or E-editor on the PC).
Shopify themes are typically edited directly within the online admin interface. For offline development, a common workaround involves using a local development environment with specialized tools. Historically, using a Textmate bundle (or similar text editors with specific plugins/workflows) allowed developers to download theme files, edit them locally, and then re-upload them, providing a more traditional offline coding experience and facilitating version control.
How can I utilize Shopify's {% include ''" %} percentage for an app?
Answer: When your app is installed, if you want to add an asset to a shop, you must first get the merchant's approval before doing so. Installing your asset, in our example "foo.liquid," comes next. You may use include to have the theme refer to the object once it is in the store.
To use `{% include 'foo' %}` for an app's custom Liquid code, the app must first be installed on the merchant's store and have the necessary permissions to manage theme assets. Once approved, the app can programmatically upload its Liquid file (e.g., `foo.liquid`) as an asset to the store's theme. After the asset is present in the theme, the `include` tag can then be used within the theme's Liquid files to render the content of `foo.liquid`.
Which of the following factors cannot be used to determine shipping rates?
Answer: Carrier Calculated Rates
Shopify allows merchants to set up shipping rates based on various factors like weight, price, and destination (location-based). 'Carrier Calculated Rates' is not a factor itself, but rather a *type* of shipping rate that *uses* factors like weight, dimensions, and destination to get real-time rates directly from shipping carriers. The question asks for a factor that cannot be used to *determine* rates, and carrier calculated rates are a *method* of determination, not a base factor.
Who founded Shopify?
Answer: Tobias Lütke
Shopify was co-founded by Tobias Lütke, Daniel Weinand, and Scott Lake in 2006. Tobias Lütke is widely recognized as the CEO and driving force behind Shopify's development. His initial need to build an online store for snowboards led to the creation of the platform, making him a primary founder.
How do I update a Shopify website theme using these two programming languages?
Answer: Javascript & Liquid
Shopify themes are primarily built using Liquid, Shopify's templating language, which handles dynamic content and data display from the store. To add interactive elements, animations, or complex client-side logic, JavaScript is extensively used. These two languages work together to create functional and engaging Shopify storefronts.
What will be printed in the following Liquid code
Answer: Tracking number:
In Liquid, if a variable or object property is `null` or empty, outputting it with `{{ }}` will result in an empty string. The literal text 'Tracking number: ' will be printed as it is. Since `order.tracking_number` is assumed to be empty or non-existent in this context, nothing will be appended after the colon, resulting in 'Tracking number: ' being displayed.
The Liquid ______ filter eliminates any instances of array elements that are duplicated.
Answer: uniq
The `uniq` filter in Liquid is specifically designed to remove duplicate items from an array. When applied to a collection or list, it returns a new array containing only the unique elements. This filter is useful for cleaning up lists or ensuring only distinct values are displayed on a Shopify store.
Which statement is TRUE about Merchant Account?
Answer: A bank account that is directly held there and is used to take credit card payments.
A merchant account is a type of bank account that allows businesses to accept credit and debit card payments. It acts as an intermediary, holding funds from card transactions before they are settled into the business's regular bank account. This is a crucial component for any e-commerce business, including those on Shopify, to process customer payments securely.
If a customer's badge is absent from the Orders section of the iPhone app, what is the order?
Answer: Closed
In the Shopify mobile app, orders typically display badges indicating their status (e.g., 'Unfulfilled,' 'Paid'). If an order's badge is completely absent from the Orders section, it generally signifies that the order has been fully processed and closed. This means it has been fulfilled, paid, and no further action is required, leading to its removal from active status indicators.
Which of the following doesn't already exist as Theme Property?
Answer: description
Shopify theme objects have several built-in properties like `id`, `created_at`, and `name` that provide metadata about the theme. However, `description` is not a standard, automatically populated property of a theme object in Liquid that can be directly accessed as `theme.description` for display. While themes might have descriptions in their manifest files, it's not a direct Liquid property.
Which of the fields on the next page are available for use?
Answer: handle
The `handle` property is a crucial identifier in Shopify for various objects like products, collections, pages, and blogs. It's a URL-friendly, unique string derived from the object's title, used for permalinks and accessing objects programmatically. It is a widely available and essential field for navigating and referencing content within a Shopify store.