Site icon MageComp Blog

How to Create Theme App Extension in Shopify-Laravel App

How to Create Theme App Extension in Shopify-Laravel App

Hello Shopify Friends,

This is the step-by-step tutorial on Creating Theme App Extension in the Shopify Laravel app.

Theme app extensions allow users to easily add dynamic elements to the themes. Using Theme App Extensions, Shopify merchants no longer need to modify theme files directly.

Benefits of Theme App Extension:

Let’s see How you can Create Theme App Extension in Shopify App

Steps to Create Theme App Extension in Shopify-Laravel App

Prerequisites

Step 1: Partner Account Login

To login to your partner account, run the below command in the terminal

shopify login

Step 2: Create Scaffold and Register Theme App Extension

Using Shopify CLI commands, you can create a scaffold and register a theme app extension.

cd my-app-directory
shopify extension create
shopify extension create --type=THEME_APP_EXTENSION --getting-started
cd theme-app-extension
shopify extension register

After running the above commands, it will ask you to confirm the registration as it can’t be reverted

You can only create one Theme App Extension per app, which can’t be undone.
┃   ? Would you like to register this extension? (y/n)   (You chose: yes)

Step 3: Push the extension to a draft version in the Partner Dashboard

Before final publishing, you can push your app extension to a draft version for testing. Use below command

shopify extension push

Step 4: Publish the theme app extension

Once the theme app extension is ready, you can push the extension for publishing.

Final Words:

This way you can create Theme App Extension in Shopify-Laravel App. If you have any doubts, our Shopify Experts can help you in resolving the errors.

Share this article with your Shopify friends and stay in touch for more Shopify tutorials.

Exit mobile version