使用应用扩展您的模板



您可以安装应用,以向您的模板中添加功能和集成。您可在 Shopify 应用商店上查找应用。

应用可以通过以下方式与您的模板集成:

  • 作为应用块:通过应用块,您可以准确地在模块中要使用应用功能的位置添加应用功能。您可以通过模板编辑器来添加、删除、预览、自定义应用块和调整其位置。

  • 作为应用嵌入:应用嵌入是应用提供的元素,可在您的模板中浮动或以叠加层的形式显示,也可在客户看不到的情况下将代码添加到您的在线商店。您可以通过模板编辑器来激活、停用、预览和自定义应用嵌入。

  • 通过添加自定义代码:一些应用直接将代码注入您的模板代码中,以便为您的模板添加功能。您可以使用应用设置或使用模板编辑器自定义应用。

应用块

应用可以提供一些块,这些块可添加为分区中的块和模板中的分区。这使您可以准确地在页面上所需的位置添加应用功能。您可以通过模板编辑器添加、删除、自定义应用块和调整其位置。应用块可能仅与某些页面类型兼容。例如,尺码表应可能只与产品页面兼容。



备注

搜索栏可在已安装的应用中进行搜索,而不是搜索整个应用库

分区中的应用块支持

您的某些分区可能不支持应用块。若要确定哪些模板分区支持应用块,请参阅您的模板文档或与您的模板开发人员联系

如果分区支持应用块并且您安装了兼容的应用,块选择器中将显示应用分区。

将应用块添加到分区

PC:

  1. 在 Shopify 后台中,转到在线商店 > 模板

  2. 找到您要编辑的模板,然后点击自定义

  1. 导航到要添加应用块的页面和分区。

  2. 点击添加块

  3. 从下拉菜单中的应用分区,选择您要添加到分区的应用块,或点击搜索栏并输入搜索词,以在已安装的应用中进行搜索。

  4. 可选:将应用块移动到分区中所需的位置,并使用任何可用设置自定义该块。

  5. 点击保存

苹果系统:

  1. 在 Shopify 应用中,轻触商店

  2. 销售渠道部分,轻触在线商店

  3. 轻触管理模板

  4. 找到您要编辑的模板,然后轻触自定义

  5. 轻触编辑

  1. 导航到要添加应用块的页面和分区。

  2. 点击添加块

  3. 从下拉菜单中的应用分区,选择您要添加到分区的应用块,或点击搜索栏并输入搜索词,以在已安装的应用中进行搜索。

  4. 可选:将应用块移动到分区中所需的位置,并使用任何可用设置自定义该块。

  5. 点击保存

安卓系统:

  1. 在 Shopify 应用中,轻触商店

  2. 销售渠道部分,轻触在线商店

  3. 轻触管理模板

  4. 找到您要编辑的模板,然后轻触自定义

  5. 轻触编辑

  1. 导航到要添加应用块的页面和分区。

  2. 点击添加块

  3. 从下拉菜单中的应用分区,选择您要添加到分区的应用块,或点击搜索栏并输入搜索词,以在已安装的应用中进行搜索。

  4. 可选:将应用块移动到分区中所需的位置,并使用任何可用设置自定义该块。

  5. 点击保存

将应用块添加到模板

PC:

  1. 在 Shopify 后台中,转到在线商店 > 模板

  2. 找到您要编辑的模板,然后点击自定义

  1. 导航到要添加应用分区的页面。

  2. 点击添加分区

  3. 应用分区的下拉菜单中,选择要添加到页面中的应用,或点击搜索栏并输入文本,以在已安装的应用中进行搜索。

  4. 可选:将“应用”部分移动到页面上所需的位置,并使用任何可用设置自定义块。

  5. 点击保存

应用作为一个块添加到应用分区。您可以向该分区添加其他应用块。您还可以向一个页面添加多个应用分区。

苹果系统:

  1. 在 Shopify 应用中,轻触商店

  2. 销售渠道部分,轻触在线商店

  3. 轻触管理模板

  4. 找到您要编辑的模板,然后轻触自定义

  5. 轻触编辑

  1. 导航到要添加应用分区的页面。

  2. 点击添加分区

  3. 应用分区的下拉菜单中,选择要添加到页面中的应用,或点击搜索栏并输入文本,以在已安装的应用中进行搜索。

  4. 可选:将“应用”部分移动到页面上所需的位置,并使用任何可用设置自定义块。

  5. 点击保存

应用作为一个块添加到应用分区。您可以向该分区添加其他应用块。您还可以向一个页面添加多个应用分区。

安卓系统:

  1. 在 Shopify 应用中,轻触商店

  2. 销售渠道部分,轻触在线商店

  3. 轻触管理模板

  4. 找到您要编辑的模板,然后轻触自定义

  5. 轻触编辑

  1. 导航到要添加应用分区的页面。

  2. 点击添加分区

  3. 应用分区的下拉菜单中,选择要添加到页面中的应用,或点击搜索栏并输入文本,以在已安装的应用中进行搜索。

  4. 可选:将“应用”部分移动到页面上所需的位置,并使用任何可用设置自定义块。

  5. 点击保存

应用作为一个块添加到应用分区。您可以向该分区添加其他应用块。您还可以向一个页面添加多个应用分区。

Shopify商户官网原文详情:

Extend your theme with apps



You can install apps to add features and integrations to your theme. You can find apps on the Shopify App Store.

Apps can integrate with your theme in the following ways:

  • As an app block: App blocks let you add app functionality exactly where you want to use it in your theme. You can add, remove, preview, reposition, and customize app blocks through the theme editor.

  • As an app embed: App embeds are app-provided elements that float or appear as an overlay in your theme, or add code to your online store without being visible to your customers. You can activate, deactivate, preview, and customize app embeds through the theme editor.

  • By adding custom code: Some apps inject code directly into your theme's code to add functionality to your theme. You might customize the app using the app settings, or using the theme editor.

App blocks

Apps can provide blocks that can be added as blocks in a section, and as sections in a template. This lets you add app functionality exactly where you want to use it on a page. App blocks can be added, removed, repositioned, and customized through the theme editor. App blocks might only be compatible with certain page types. For example, a size chart app might only be compatible with product pages.



Note

The Search bar searches through your installed apps, and not the entire app library.

App block support in sections

Some of your theme sections might not support app blocks. To identify which of your theme sections support app blocks, refer to your theme's documentation or contact your theme developer.

If a section supports app blocks and you have a compatible app installed, then an Apps section appears in the block picker.

Add an app block to a section

PC:

  1. From your Shopify admin, go to Online Store > Themes.

  2. Find the theme that you want to edit, and then click Customize.

  1. Navigate to the page and section where you want to add the app block.

  2. Click Add block.

  3. From the drop-down menu, in the Apps section, select the app block that you want to add to the section or click the Search bar and enter a search term to search through your installed apps.

  4. Optional: move the app block to the place you want it in the section, and customize the block using any available settings.

  5. Click Save.

iPhone:

  1. From the Shopify app, tap Store.

  2. In the Sales channels section, tap Online Store.

  3. Tap Manage themes.

  4. Find the theme that you want to edit, and then tap Customize.

  5. Tap Edit.

  1. Navigate to the page and section where you want to add the app block.

  2. Click Add block.

  3. From the drop-down menu, in the Apps section, select the app block that you want to add to the section or click the Search bar and enter a search term to search through your installed apps.

  4. Optional: move the app block to the place you want it in the section, and customize the block using any available settings.

  5. Click Save.

Android:

  1. From the Shopify app, tap Store.

  2. In the Sales channels section, tap Online Store.

  3. Tap Manage themes.

  4. Find the theme that you want to edit, and then tap Customize.

  5. Tap Edit.

  1. Navigate to the page and section where you want to add the app block.

  2. Click Add block.

  3. From the drop-down menu, in the Apps section, select the app block that you want to add to the section or click the Search bar and enter a search term to search through your installed apps.

  4. Optional: move the app block to the place you want it in the section, and customize the block using any available settings.

  5. Click Save.

Add an app block to a template

PC:

  1. From your Shopify admin, go to Online Store > Themes.

  2. Find the theme that you want to edit, and then click Customize.

  1. Navigate to the page where you want to add the app section.

  2. Click Add section.

  3. From the drop-down menu, in the Apps section, select the app that you want to add to the page or click the Search bar and enter some text to search through your installed apps.

  4. Optional: move the app section to the place you want it on the page, and customize the block using any available settings.

  5. Click Save.

The app is added as a block in an Apps section. You can add additional app blocks to the section. You can also add multiple Apps sections to a page.

iPhone:

  1. From the Shopify app, tap Store.

  2. In the Sales channels section, tap Online Store.

  3. Tap Manage themes.

  4. Find the theme that you want to edit, and then tap Customize.

  5. Tap Edit.

  1. Navigate to the page where you want to add the app section.

  2. Click Add section.

  3. From the drop-down menu, in the Apps section, select the app that you want to add to the page or click the Search bar and enter some text to search through your installed apps.

  4. Optional: move the app section to the place you want it on the page, and customize the block using any available settings.

  5. Click Save.

The app is added as a block in an Apps section. You can add additional app blocks to the section. You can also add multiple Apps sections to a page.

Android:

  1. From the Shopify app, tap Store.

  2. In the Sales channels section, tap Online Store.

  3. Tap Manage themes.

  4. Find the theme that you want to edit, and then tap Customize.

  5. Tap Edit.

  1. Navigate to the page where you want to add the app section.

  2. Click Add section.

  3. From the drop-down menu, in the Apps section, select the app that you want to add to the page or click the Search bar and enter some text to search through your installed apps.

  4. Optional: move the app section to the place you want it on the page, and customize the block using any available settings.

  5. Click Save.

The app is added as a block in an Apps section. You can add additional app blocks to the section. You can also add multiple Apps sections to a page.

文章内容来源:Shopify商户官方网站


(本文内容根据网络资料整理,出于传递更多信息之目的,不代表连连国际赞同其观点和立场)