...
The separate functionality is a PWA guide that helps users to understand the benefits connected with adding a shop app to Homescreen. The guide is displayed on checkout success page, after placing and order.
...
PWA guide script file can be found here: magesuite-pwa/view/frontend/web/js/pwa-a2hs-guide.js
Separate wordings are used for desktop, Android mobile devices and iOS mobile devices
...
Code Block |
---|
$iOSBlockHtml = $cmsBlock->setBlockId('pwa_guide_ios')->toHtml();
$androidBlockHtml = $cmsBlock->setBlockId('pwa_guide_android')->toHtml();
$desktopBlockHtml = $cmsBlock->setBlockId('pwa_guide_desktop')->toHtml(); |
Styling
As the module is optional styling for PWA guide must be enabled in entries/checkout.ts
Code Block |
---|
import 'MageSuite_Pwa'; |
Scss file can be found in theme-creativeshop/src/MageSuite_Pwa/web/css/pwa-a2hs-guide.scss
There is possibility to adjust basic styling by adjusting scss variables.
Backend
Note |
---|
TODO - BE documentation and review of documentation is needed |