Theme Setup & Login

Shopletzy Theme Development, Testing Environment Setup and Login

Setting Up the Testing Environment

To prepare your theme development environment for testing, navigate to your theme directory and execute the following commands in your terminal:

export SLZ_API_ENV=testing

This sets the environment variable SLZ_API_ENV to testing, which is necessary for the testing phase.

Authentication Setup

Once the environment is set to testing, initiate the login process with the command:

shopletzy configure auth

The system will prompt you to enter your userId, email, and token.

Obtaining Your Credentials

To obtain your userId, email, and token, follow these steps:

  • Visit Shopletzy App and navigate to the login page.
  • Open the browser’s developer tools (F12 or Ctrl+Shift+I on most browsers) and switch to the Network tab.
  • Proceed to log in to your account.
  • In the network requests list, find the oauth API call.
  • Inspect the oauth API call to retrieve your login details.

Running the Theme Locally

After a successful login, you can start your theme locally with the command:

shopletzy theme dev -s

Make sure to replace with the actual store URL, which you can obtain from your Shopletzy account at Shopletzy App.

Ensure that you have the latest version of the Shopletzy CLI installed and that your account permissions are correctly configured to perform these actions.