定制 viraxpress/login-to-purchase 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

viraxpress/login-to-purchase

最新稳定版本:1.0.0

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

  1. Install the extension via Composer:

    composer require viraxpress/login-to-purchase
  2. 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 Status to Yes
  • Enter Login Button Text
  • Enter Redirect Page for guest login
  • Select Redirect After Login
  • Enter Custom Url when 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.

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: HTML

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2026-06-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固