qbo-tech / magento2-vue-cart-sync
同步Vue Storefront与Magento购物车
dev-master
2023-01-30 23:05 UTC
Requires
- magento/magento2-base: ~2.2|~2.3|~2.4
Suggests
- qbo-tech/magento2-checkoutonly: A module that enables you to limit access only the Magento checkout. Usefull for a PWA setup that uses the default Magento 2 checkout
This package is not auto-updated.
Last update: 2024-09-25 04:48:20 UTC
README
本模块仅适用于Magento 2。您可以在此处找到适用于Magento 1的外部结账模块。
此Magento扩展允许您将指定的购物车与当前用户会话合并。如果提供用户令牌,将执行自动登录。
本模块旨在与Vue Storefront External Checkout一起工作。
此扩展允许用户在Vue Storefront商店内开始会话,并在Magento2中完成订单。当您拥有非常扩展/定制的Magento结账流程,且难以移植到Vue Storefront时,这非常棒。
演示
请在meubelplaats.nl查看此模块的演示。一旦进入结账,您将被重定向到Magento 2,以在那里完成您的订单。
兼容性
- Magento 2.2或Magento 2.3
先决条件(Vue Storefront部分)
- 将您的Magento2实例与Vue Storefront集成:教程,视频教程
- 在您的Vue Storefront实例上安装Vue Storefront External Checkout
安装指南(Magento 2部分)
- 使用composer安装模块
composer require vuestorefront/magento2-vue-cart-sync
- 运行
php bin/magento setup:upgrade
- 请安装Vue Storefront的
vsf-external-checkout
模块。请参阅说明。 - 转到:商店 -> 配置 | VueStorefront -> 外部结账并设置URL
要测试您的扩展是否工作正常,您可以测试以下URL
例如,我们的测试地址如下所示
- http://demo-magento2.vuestorefront.io/vue/cart/sync/token/s7nirf24cxro7qx1hb9uujaq4jx97nvp/cart/3648
其中
s7nirf24cxro7qx1hb9uujaq4jx97nvp
是由POST /V1/integration/customer/token
提供的客户令牌,或可以留空!3648
是报价ID;对于访客购物车,它将不是整数,而是一个GUID字符串
致谢
Mateusz Bukowski (@gatzzu)