PHPackages                             viraxpress/login-to-purchase - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. viraxpress/login-to-purchase

ActiveMagento2-module[Authentication &amp; Authorization](/categories/authentication)

viraxpress/login-to-purchase
============================

ViraXpress Login to Purchase Module for Magento 2

1.0.0(3mo ago)01Apache-2.0HTMLPHP ~8.1.0||~8.2.0||~8.3.0||~8.4.0

Since Apr 13Pushed 1mo agoCompare

[ Source](https://github.com/viraxpress/LoginToPurchase)[ Packagist](https://packagist.org/packages/viraxpress/login-to-purchase)[ RSS](/packages/viraxpress-login-to-purchase/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Login To Purchase
=================

[](#login-to-purchase)

Description
-----------

[](#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
--------

[](#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
-------------

[](#compatibility)

- Magento 2.4.x

Installation
------------

[](#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
-------------

[](#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
-------

[](#support)

For support, please contact ViraXpress at  or refer to the license agreement.

License
-------

[](#license)

This extension is licensed under the ViraXpress license agreement. See  for details.

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance86

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

104d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/dfa4cf8adc10a78f5b538cdf399be5d1059c4cfecf5ca5e38e44351bcaf84367?d=identicon)[viraxpress](/maintainers/viraxpress)

---

Top Contributors

[![viraxpress](https://avatars.githubusercontent.com/u/179798477?v=4)](https://github.com/viraxpress "viraxpress (2 commits)")[![mohan10121998](https://avatars.githubusercontent.com/u/179821904?v=4)](https://github.com/mohan10121998 "mohan10121998 (1 commits)")

### Embed Badge

![Health badge](/badges/viraxpress-login-to-purchase/health.svg)

```
[![Health](https://phpackages.com/badges/viraxpress-login-to-purchase/health.svg)](https://phpackages.com/packages/viraxpress-login-to-purchase)
```

###  Alternatives

[vitalybaev/laravel5-dkim

Laravel 5/6 package for signing outgoing messages with DKIM.

3163.1k](/packages/vitalybaev-laravel5-dkim)[firemultimedia/mautic-multi-captcha-bundle

This plugin brings Google's reCAPTCHA, hCaptcha, and Cloudflare Turnstile integration to mautic.

141.3k](/packages/firemultimedia-mautic-multi-captcha-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
