โ† All Shopify Flashcard Decks

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
  1. What is the wrong statement about Shopify themes?

    Answer: Themes from other platforms can be used inside Shopify without having to install them through the Theme Store.

    Shopify themes are built using Liquid, Shopify's templating language, and are designed specifically for the Shopify platform. Themes from other e-commerce platforms or content management systems are generally not directly compatible with Shopify and cannot be used without significant re-development. Therefore, the statement that themes from other platforms can be used without installing them through the Theme Store is incorrect.

  2. How can I change the HTML or Liquid on the Shopify checkout page?

    Answer: Shopify provides thorough instructions on how to modify the CSS displayed in the checkout on their website so that it conforms to your theme. Javascript and HTML are inviolable. The Thank You page, which comes after checkout, can be changed. If you are a Shopify Plus subscriber, you have full access to the checkout.Liquid

    For most Shopify plans, direct modification of the HTML or Liquid of the checkout page is restricted for security and PCI compliance reasons; only CSS styling can be adjusted. However, Shopify Plus subscribers gain full access to the `checkout.liquid` file, which allows for extensive customization of the checkout page's HTML and Liquid. The 'Thank You' page, which follows checkout, is also customizable on all plans.

  3. Liquid loads dynamic content using a combination of ______, ______ and______. They are utilized within Liquid template files, a collection of files that comprise a theme.

    Answer: streams, objects, headers

    Liquid templates use 'objects' to access dynamic content, which represents data from the Shopify store. In the broader context of web development and content delivery, this dynamic content is often processed and transmitted via data 'streams,' and HTTP 'headers' play a crucial role in the communication protocol that delivers this content to the user's browser. Thus, these elements collectively contribute to how dynamic content is loaded and rendered within a Shopify theme.

  4. The output of the following code is:

    Answer: apples, oranges, peaches, tomatoes, broccoli, carrots, lettuce, tomatoes

    The provided output lists a series of fruits and vegetables, separated by commas. In Liquid, this output would typically result from either directly printing a string variable containing these comma-separated values or iterating through an array of these items and joining them with a comma and space. Without the specific Liquid code, it's inferred that the code was designed to display this exact sequence of items.

  5. Which of the following codes for creating variables is correct?

    Answer: {% assign foo = "bar" %}

    In Liquid, variables are created and assigned values using the `assign` tag. The correct syntax is `{% assign variable_name = "value" %}`. Option B follows this syntax, correctly assigning the string 'bar' to the variable `foo`, while the other options use syntax from different programming languages.

  6. Can you specify the cost of shipping based on a country?

    Answer: No

    Shopify's shipping rate system is primarily built around 'shipping zones,' which group multiple countries or regions, and then applies rates based on weight or price within those zones. While a zone can be created for a single country, the system does not allow for a cost to be specified *solely* based on a country without also defining weight or price tiers. Therefore, if the question implies a direct, country-only cost specification without other parameters, the answer is 'No'.

  7. ______ is a theme designed specifically for the contemporary clothing business is . A responsive design optimized for mobile devices, distinctive typography, an edge-to-edge homepage slideshow, a dynamic product grid, and product pages with availability information for each size at a glance are among the features.

    Answer: Brooklyn

    The description provided, including features like a responsive design, distinctive typography, edge-to-edge homepage slideshow, dynamic product grid, and size availability on product pages, accurately describes the Brooklyn theme. Brooklyn is a popular free Shopify theme often recommended for apparel and fashion stores, aligning with the 'contemporary clothing business' context.

  8. How should the following variable be output correctly? {% capture my_variable %}I am being captured.{% endcapture %}

    Answer: {{ my_variable }}

    In Liquid, the `capture` tag stores a block of content as a string in a variable. To display the content of that variable, you must use the double curly brace syntax `{{ variable_name }}`. Option C correctly demonstrates how to output the value stored in `my_variable`.

  9. You'll utilize your secure Shopify checkout to accept orders and collect payments anywhere you sell online. From the Checkout settings page in your Shopify admin, you can examine and modify the checkout settings for your store. Which of the following does not work with Shopify checkout?

    Answer: Select a payment gateway

    The Shopify checkout settings page allows you to configure aspects like customer contact methods, form options, and order processing. However, selecting and managing payment gateways (like Shopify Payments, PayPal, etc.) is done in a separate section of the Shopify admin, typically under 'Payments' or 'Payment providers,' not directly within the 'Checkout settings' page. Therefore, 'Select a payment gateway' is not a function performed on the checkout settings page itself.

  10. Which of the following describes how un-rendered code should be left inside a Liquid template?

    Answer: {% comment %} ... {% endcomment %}

    In Liquid, the `comment` tag is used to enclose sections of code or text that should not be rendered or displayed on the storefront. Anything placed between `{% comment %}` and `{% endcomment %}` will be ignored by the Liquid parser. Option C shows the correct syntax for creating multi-line comments in Liquid.

  11. The ____ tag in Liquid iterates over a collection of strings and outputs them in the order in which they were supplied as parameters. The following string that was supplied as a parameter is output each time an iteration is called.

    Answer: cycle

    The `cycle` tag in Liquid is specifically designed to iterate through a series of strings or values and output them in sequence, repeating the sequence if the iteration continues beyond the number of items. This is useful for alternating classes, colors, or other attributes within a loop, matching the description provided.