viraxpress/login-to-purchase
Composer 安装命令:
composer require viraxpress/login-to-purchase
包简介
ViraXpress Login to Purchase Module for Magento 2
README 文档
README
Description
Login To Purchase is a Magento 2 module by ViraXpress that requires customers to log in before accessing purchase actions. It hides prices for guest users and replaces add-to-cart / purchase interface elements with a login button. This module is designed for B2B stores that want to encourage account-based checkout and protect product pricing from anonymous visitors.
Features
- Hide product prices for guest users using Magento price rendering plugin interception
- Replace add-to-cart and purchase controls with a configurable login button for guest customers
- Support for catalog product list, product view, bundle customize, and product compare layouts
- Configurable login button label
- Configurable guest login redirect URL
- Redirect after login options: Default Magento behavior, Home Page, Previous Page, or Custom URL
- Preserves the previous page in a cookie and returns the customer after login (compare page redirects to home page)
- Admin settings available under
Stores > Configuration > ViraXpress > Login To Purchase
Compatibility
- Magento 2.4.x
Installation
-
Install the extension via Composer:
composer require viraxpress/login-to-purchase
-
Run the following commands from your Magento root directory:
php bin/magento module:enable ViraXpress_LoginToPurchase php bin/magento setup:upgrade php bin/magento setup:di:compile php bin/magento setup:static-content:deploy -f php bin/magento cache:flush
Configuration
- Go to
Stores > Configuration > ViraXpress > Login To Purchase - Set
StatustoYes - Enter
Login Button Text - Enter
Redirect Pagefor guest login - Select
Redirect After Login - Enter
Custom Urlwhen using the custom redirect option
Support
For support, please contact ViraXpress at https://www.viraxpress.com or refer to the license agreement.
License
This extension is licensed under the ViraXpress license agreement. See https://www.viraxpress.com/license for details.
viraxpress/login-to-purchase 适用场景与选型建议
viraxpress/login-to-purchase 是一款 基于 HTML 开发的 Composer 扩展包,目前已累计 1 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 06 月 10 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 viraxpress/login-to-purchase 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 viraxpress/login-to-purchase 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 16
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2026-06-10