prestashop/welcome

此包已被废弃,不再维护。未建议替代包。

PrestaShop 的欢迎模块,帮助用户创建产品。

安装次数: 944,718

依赖项: 2

建议者: 0

安全: 0

星标: 6

关注者: 25

分支: 29

类型:prestashop-module

v6.0.9 2023-02-14 07:39 UTC

README

PHP tests JS tests Latest Stable Version Total Downloads GitHub license

关于

通过我们友好的入门流程,比预期更快地出售您的第一个产品。

如何自定义入门流程

每个步骤都存储在 config/steps.yml 文件中。

在此文件中,您将拥有包含步骤的组。只需遵循此微型文档来创建/修改步骤

groups:                            # Only needed once

 - title: { loc: group1.title }    # The title of the group, shown on the footer.
   steps:                          # The steps list of this group.

     # Basic configuration for each step:
     - type: popup                 # The type of the step, can be 'popup' or 'tooltip'.
       title: { loc:group1.title } # The title of the step, shown on the footer.
       text:  { loc:group1.title } # The content of the step, displayed on the popup or the tooltip
       page:  'product/new'        # The page where the step is placed
       # OR : An array of pages, when the Onboarding automaticaly move to the page, the first one
       # will be selected :
       page:  ['product/new', 'product/form'] 

       # Configuration only for type = 'tooltip':
       selector: '#description' # The jQuery selector where the toolip will be located
       position: top            # The position of the tooltip around the object, can be :
                                # 'left', 'right', 'top' or 'bottom'
                                
       # Optionnal parameters:
       action:                 # Instead of just move to the next step, an action can be performed:
         selector: '#myButton' # jQuery selector where the action will be performed
         action:   'click'     # Action to perform
       options: [savepoint]    # A list of options for this step, the options can be :
                               #  - 'savepoint': If the user resume after paused, the first save
                               #      will be the last savepoint
                               #  - 'hideFooter': Hide the footer for the current step

关于本地化的说明

本地化条目位于 config/localization 文件夹中。每个条目都有一个键。要使用这些条目之一,只需使用 { loc: key.subkey } 代替字符串(对于标题和内容)。

如果您想要复杂的内容,只需在 views/contents 上创建一个 TWIG 模板,并使用 { content: templateName } 代替字符串。

报告问题

您可以在 PrestaShop 主仓库中报告此模块的问题。 点击此处报告问题

贡献

PrestaShop 模块是 PrestaShop 电子商务平台的开源扩展。欢迎每个人,甚至鼓励大家为他们的改进做出贡献!

只需确保遵循我们的 贡献指南

许可

此模块根据 Academic Free License 3.0 发布。