mediarox/module-compatibility-amasty-checkout-iways-paypalplus
Composer 安装命令:
composer require mediarox/module-compatibility-amasty-checkout-iways-paypalplus
包简介
Compatibility module for the modules iways/module-pay-pal-plus & amasty/module-single-step-checkout.
README 文档
README
Compatibility module for
- amasty/module-single-step-checkout
- iways/module-pay-pal-plus
Corrected behaviors
| Nr. | Topic | Problem | Fix |
|---|---|---|---|
| 1 | Positioning of the order button | As described in the documentation of Amasty, you can configure the position of the order button in the checkout. As also described there, third-party payment methods sometimes cause problems. This also applies to PayPal Plus payment methods. In case the position "below the order total" is selected, the order buttons of the PayPal Plus payment methods do not move as desired. | Extend "Magento_Checkout/js/action/select-payment-method" to inject (mixin) additional move behaviour. Third-party payment methods from the "payment/iways_paypalplus_payment/third_party_moduls" setting of PayPal Plus are also taken into account. |
| 2 | isPlaceOrderActionAllowed check | An order is normally triggered via the "placeOrder" method (Module_Checkout::js/view/payment/default.js). Among other things, this checks the property "isPlaceOrderActionAllowed" (ko.observable), which is set to "true" if a billing address is available. For registered customers with existing billing addresses, this check does not work correctly in interaction with Amasty Checkout & PayPal Plus, so the order button remains disabled in these cases. | We extend the "initPayPalPlusFrame" method (Iways_PayPalPlus::js/view/payment/method-renderer/payment.js) respectively the callback method "enableContinue" contained therein by a check of the Amasty "isPlaceOrderActionAllowed" conditions (Amasty_Checkout::js/view/place-button.js:isPlaceOrderActionAllowed) and set the native property "isPlaceOrderActionAllowed" depending on this. |
| 3 | Onepage checkout support | The implementation of the PayPal Plus Javascript application "PAYPAL.apps.PPP({})" was implemented rather statically by iways in terms of the standard checkout. Static in this context means that the associated Magento Javascript component reads all configurations (country, language, third-party payment methods) once, starts the application and then only reacts to the change of the country. (billingAddress.subscribe) As soon as you use a onepage checkout and want to implement extended conditions for payment methods, you reach your limits here. In our case, this was the payment method "cash on delivery", which was configured as a third-party payment method and must disappear for certain shipping methods. | We extended the PayPal Plus Javascript component to listen for the Amasty event "onAfterShippingSave", which then loads and updates the third-party payment methods via a web api call. |
Installation
composer require mediarox/module-compatibility-amasty-checkout-iways-paypalplus bin/magento setup:upgrade
Notice
Further suggestions, corrections or features (pull requests or issues) are welcome.
mediarox/module-compatibility-amasty-checkout-iways-paypalplus 适用场景与选型建议
mediarox/module-compatibility-amasty-checkout-iways-paypalplus 是一款 基于 JavaScript 开发的 Composer 扩展包,目前已累计 84 次下载、GitHub Stars 达 0, 最近一次更新时间为 2021 年 12 月 20 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 mediarox/module-compatibility-amasty-checkout-iways-paypalplus 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 mediarox/module-compatibility-amasty-checkout-iways-paypalplus 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 84
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-12-20