drumm3r/shopware-pwa 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

drumm3r/shopware-pwa

Composer 安装命令:

composer require drumm3r/shopware-pwa

包简介

Drumm3r's fork of Shopware PWA extension

README 文档

README

Please pay attention! This is not the shopware-pwa Plugin created by Shopware AG. This is a fork of the plugin to fix some critical bugs.

This extension provides a collection of helper functions to integrate with the shopware-pwa client library.

In order to use this extension with Shopware 6, make sure you install the latest available version compatible with your Shopware version.

There is a video on how to set up the extension correctly (please be aware that this applies to the old 6.1 version).

Table of content

Versions

Shopware Version SwagShopwarePwa Version PWA Version
6.3.* 0.2.* 0.8.*
6.4.* 0.3.* 0.9.*

Setup

Install extension

There are two ways you can require the extension.

Composer

Run

$ composer require shopware-pwa/shopware-pwa

within your Shopware installation directory. This will install a composer managed package of the extension. To use the latest version run

$ composer require shopware-pwa/shopware-pwa:dev-master

instead.

We recommend using this way of installing the extension, because it reduces the risk of having an outdated/incompatible dependency.

Manual

Clone the repository into the local plugins directory of your Shopware installation.

$ git clone https://github.com/shopware/SwagShopwarePwa.git custom/plugins/SwagShopwarePwa

This will allow you to make changes and pull requests to this very repository, since you're using a local copy of the extension.

Install extension

Run the following commands in your Shopware root directory.

Refresh extension list

$ bin/console plugin:refresh

Install and activate the extension

$ bin/console plugin:install --activate SwagShopwarePwa

Clear the cache (sometimes invalidation is needed for the new routes to activate)

$ bin/console cache:clear

Generate routes

Make sure you've created a sales channel and assigned SEO URL templates (either using the database or the administration panel).

Currently there are the following requirements: As headless sales channels don't support SEO URLs, you have to select a "storefront" sales channel as a base.

Refresh the index tables (containing the SEO URLs) manually

$ bin/console dal:refresh:index

Documentation

Endpoints

This extension adds multiple endpoints to both, the store and the admin API. All endpoints below accept POST requests.

/store-api/pwa/page

Resolves a given path to cms or product page and accepts include parameters to specifiy the fields contained in your response.

/api/_action/pwa/dump-bundles

This endpoint is required to connect Shopware extensions with your PWA during the application build. It dumps your extensions metadata and configuration and PWA specific source files and delivers via a safe channel.

Tests

Tests are located in src/Test and configured in phpunit.xml.

In order to run the tests you have to set up the test database so that Shopware runs them with our extension enabled.

After the extension is installed in your shop, make sure you execute the follwing command (in the Shopware root directory) to dump the current configuration of your shop to the test-database (when using Docker, run it inside the container):

$ ./psh.phar init-test-databases

Then execute the following commands in the extension's root directory to run the test.

$ composer install
$ ../../../vendor/bin/phpunit

drumm3r/shopware-pwa 适用场景与选型建议

drumm3r/shopware-pwa 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 27 次下载、GitHub Stars 达 0, 最近一次更新时间为 2021 年 08 月 03 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 drumm3r/shopware-pwa 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 drumm3r/shopware-pwa 我们能提供哪些服务?
定制开发 / 二次开发

基于 drumm3r/shopware-pwa 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 27
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 14
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-08-03