# hyva-themes/magento2-luma-checkout

> Luma Fallback Checkout for Hyvä Themes

`composer require hyva-themes/magento2-luma-checkout`

Canonical URL: https://packagento.com/hyva-themes/magento2-luma-checkout

## At a glance

- **Vendor**: hyva-themes (https://packagento.com/hyva-themes.md)
- **Latest version**: 1.1.7 — released 2025-11-04
- **Pricing**: Free
- **Package type**: Magento 2 module
- **Status**: active, accepting new buyers

## Installation

Packagento is licence-gated, so even free packages need a licence on a project before Composer can resolve them.

1. **Sign in or create an account** at https://packagento.com/customer/account/.

2. **Add the package to your account.** Open https://packagento.com/hyva-themes/magento2-luma-checkout and complete the free checkout. A licence is minted automatically.

3. **Create or pick a project, then activate the licence on it.**
   - Projects represent the Magento installs you deploy to. Manage them at https://packagento.com/projects/.
   - Activate the new licence on the project you'll deploy this package to. Activation is what generates the Composer credentials scoped to that project.

4. **Add the project credentials to your Magento codebase.**

   Grab the project's public + private key from https://packagento.com/projects/ (open the project, then its Credentials tab), and add them to `auth.json`:

   ```json
   {
     "http-basic": {
       "packagento.com": {
         "username": "ppk_live_...",
         "password": "psk_live_..."
       }
     }
   }
   ```

   Add the Packagento Composer repository to `composer.json`:

   ```json
   {
     "repositories": [
       { "type": "composer", "url": "https://packagento.com" }
     ]
   }
   ```

5. **Install and apply.**

   ```bash
   composer require hyva-themes/magento2-luma-checkout:*
   bin/magento setup:upgrade
   bin/magento setup:di:compile
   bin/magento cache:flush
   ```

## What it does

Luma Fallback Checkout for Hyvä Themes

## README

Luma Fallback Checkout for Hyvä Themes

### What does it do?

It allows to use the standard luma checkout or define another theme path for checkout when using the Hyva Theme
 
### Installation
  
1. Install via composer
   Note: both repositories need to be configured until the package and its dependency are available through packagist.
   ```
   composer config repositories.hyva-themes/magento2-luma-checkout git git@gitlab.hyva.io:hyva-themes/magento2-luma-checkout.git
   composer config repositories.hyva-themes/magento2-theme-fallback git git@gitlab.hyva.io:hyva-themes/magento2-theme-fallback.git
   composer require hyva-themes/magento2-luma-checkout
   ```
2. Enable module
   ```
   bin/magento setup:upgrade
   ```
   
### Upgrading

After upgrading from release 1.0.3 or before be sure to run
```
bin/magento setup:upgrade
```
This will ensure configuration settings stored in the database are properly migrated to the `Hyva_ThemeFallback`.

Should the configuration settings be locked in `app/etc/config.php`, you have to migrate all paths in the
section `hyva_luma_checkout` manually to the path `hyva_theme_fallback`.  
The full paths that need to be migrated are:
```
'hyva_luma_checkout/general/enable'          => 'hyva_theme_fallback/general/enable'
'hyva_luma_checkout/general/theme_full_path' => 'hyva_theme_fallback/general/theme_full_path'
```


### Magento backend configuration

1. ```HYVA THEMES->Theme Fallback->General Settings->Enable```
    
    The configutation path is ```hyva_theme_fallback/general/enable```


2. ```HYVA THEMES->Theme Fallback->General Settings->Theme full path```

    The configutation path is ```hyva_theme_fallback/general/theme_full_path```
    
    default `frontend/Magento/luma`

3. ```HYVA THEMES->Theme Fallback->General Settings->The list of URL's parts```
   
   The configuration path is `hyva_theme_fallback/general/list_part_of_url`
   
   The default values are `checkout/index`, `paypal/express/review` and `paypal/express/saveShippingMethod`.
   If they are changed, checking "Use system values" will restore the default settings.


### How does it work?

This module depends on `hyva-themes/magento2-theme-fallback` and only supplies the configuration. 

### License

Copyright © 2020-present Hyvä Themes.

Each source file included in this distribution is licensed under OSL 3.0.

http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
Please see LICENSE.txt for the full text of the OSL 3.0 license.

## Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).

[Unreleased]: https://gitlab.hyva.io/hyva-themes/magento2-luma-checkout/-/compare/1.1.7...master
### [Unreleased]

### [1.1.7] - 2025-11-10
[1.1.7]: https://gitlab.hyva.io/hyva-themes/magento2-luma-checkout/-/compare/1.1.6...1.1.7

#### Added

- Nothing added

#### Changed

- Changed license to OSL 3.0

#### Removed


### [1.1.6] - 2024-05-03
[1.1.6]: https://gitlab.hyva.io/hyva-themes/magento2-luma-checkout/-/compare/1.1.5...1.1.6

#### Added

- Nothing added

#### Changed

- **Use resourceConnection->getTableName to determine core_config_data table name**

  Previously only the db type table name hashing was being applied, not configured table name prefixes.

  For more details, please refer to [issue #16](https://gitlab.hyva.io/hyva-themes/magento2-luma-checkout/-/issues/16).

#### Removed

- Nothing removed


### [1.1.5] - 2024-04-29
[1.1.5]: https://gitlab.hyva.io/hyva-themes/magento2-luma-checkout/-/compare/1.1.4...1.1.5

#### Added

- Nothing added

#### Changed

- **Use getTableName to determine core_config_data table name**

  Previously, the setup data patch would fail due to an unexistant table on instances with a table name prefix.

  For more details, please refer to [issue #16](https://gitlab.hyva.io/hyva-themes/magento2-luma-checkout/-/issues/16).

#### Removed

- Nothing removed

### [1.1.4] - 2024-04-18
[1.1.4]: https://gitlab.hyva.io/hyva-themes/magento2-luma-checkout/-/compare/1.1.3...1.1.4

#### Added

- **Automatically inject customer/ajax/login into existing luma fallback configurations**

   This release expands on the new default config introduced in 1.1.3 by adding a DataPatch class that
   automatically injects the customer/ajax/login path into existing Luma checkout configurations in the
   database. This means existing stores with customized configurations only need to update the luma-fallback-checkout
   module and run `bin/magento setup:upgrade` to apply the fix.

#### Changed

- Nothing changed

#### Removed

- Nothing removed

### [1.1.3] - 2024-04-12
[1.1.3]: https://gitlab.hyva.io/hyva-themes/magento2-luma-checkout/-/compare/1.1.2...1.1.3

#### Added
- **Add customer/ajax/login to default luma fallback configuration**

  Since Hyvä 1.3.6 form-key validation was added to the customer/ajax/login route that is used if guest login
  during checkout is enabled.  
  Since the form-key is missing in Luma, the check is skipped if the current theme is not Hyvä based.  
  For this to correctly work with the Luma checkout them fallback configuration, the fallback theme also needs
  to be configured for the ajax login route.  

  Release 1.1.3 add the route to the default configuration.

  For more information please refer to [merge request #14](https://gitlab.hyva.io/hyva-themes/magento2-luma-checkout/-/merge_requests/14).

#### Changed
- **Add leading / to checkout/index fallback route for hyva_checkout compatiblity**
  
  This change is required so the Luma Checkout fallback configuration does not match hyva_checkout routes.  
  With this change it is possible to use Hyvä Checkout and Luma Checkout side by side on separate store views or websites.  

  For more information please refer to [merge request #12](https://gitlab.hyva.io/hyva-themes/magento2-luma-checkout/-/merge_requests/12).

#### Removed
- Nothing

### [1.1.2] - 2022-03-09
#### Added
- Add paypal payflow callback urls to default fallback configuration.

  Big thanks to Lucas van Staden for the contribution!

  More information can be found in the [merge request #11](https://gitlab.hyva.io/hyva-themes/magento2-luma-checkout/-/merge_requests/11)

#### Changed
- Nothing

#### Removed
- Nothing

[1.1.2]: https://gitlab.hyva.io/hyva-themes/magento2-luma-checkout/-/compare/1.1.1...1.1.2


### [1.1.1] - 2021-06-17
#### Added
- Nothing

_(Changelog truncated for .md surface. Full history on https://packagento.com/hyva-themes/magento2-luma-checkout.)_

## Recent Versions

| Version | Released |
|---|---|
| 1.1.7 | 2025-11-04 |
| 1.1.6 | 2024-05-03 |
| 1.1.5 | 2024-04-29 |
| 1.1.4 | 2024-04-18 |
| 1.1.3 | 2024-04-12 |
| 1.1.2 | 2022-03-09 |
| 1.1.1 | 2021-06-18 |
| 1.1.0 | 2021-06-04 |
| 1.0.3 | 2021-04-10 |
| 1.0.2 | 2021-02-26 |

Showing 10 of 12 versions. Full release history on https://packagento.com/hyva-themes/magento2-luma-checkout.

## Dependencies

### Require

| Package | Constraint |
|---|---|
| hyva-themes/magento2-theme-fallback | * |
| magento/framework | * |
| magento/module-checkout | >=100.3.0 |

## Quality

Latest release (1.1.7) fails the Packagento QA pipeline. Verdicts below are per-cell (Magento line × PHP version) for the matrixed tools, and run-once for the static / security tiers.


### Compatibility

Each Magento line is installed on its supported PHP versions, then the module is built (DI compile + static-content deploy). Cells show passed / failed / untested; staircase gaps render as `–`.

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | 1 | 1 | – | – |
| 2.4.8 | – | 1 | not tested | – |
| 2.4.9 | – | – | 1 | 1 |


### Code Quality

Advisory checks against the module's source. Never affect the Compatibility verdict — a phpcs finding can't make a module incompatible.

#### Static Analysis

Coding standards (phpcs), mess detection (phpmd), copy-pasted code (cpd), PHP cross-version compatibility, composer.json validity. Each runs once for the whole module.

| Tool | Status | Findings | Summary |
|---|---|---|---|
| PHPCS | Warning | 2 | 2 warnings (ruleset: Magento2) |
| PHPMD | Warning | 2 | 2 rule violations (IfStatementAssignment:2) |
| Cpd | Pass | 0 |  |
| Composer validate | Info | 3 | valid; 3 advisory notes (composer validate --strict) |

#### PHPStan

Type-checks the module against a real Magento install. Re-runs per Magento + PHP version because resolvable symbols differ between releases.

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | Error | Error | – | – |
| 2.4.8 | – | Error | Error | – |
| 2.4.9 | – | – | Error | Error |


### Tests

Unit and integration suites run per Magento + PHP cell. Test failures speak to the module's behaviour, not its compatibility with a line, so they're reported here separately.

#### Unit Tests

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | – | – |
| 2.4.8 | – | N/A | N/A | – |
| 2.4.9 | – | – | N/A | N/A |

#### Integration Tests

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | – | – |
| 2.4.8 | – | N/A | N/A | – |
| 2.4.9 | – | – | N/A | N/A |


### Security

Dependency-advisory audit (composer audit) plus a source malware scan. A malware detection fails the version outright.

| Tool | Status | Findings | Summary |
|---|---|---|---|
| Composer audit | N/A | 0 | no resolvable dependency tree to audit — Your requirements could not be resolved to an installable set of packages. Problem 1 |
| Malware scan | Pass | 0 |  |

## Licence and pricing

Free. A licence is still minted on checkout and bound to your project for Composer access — no payment step.

Refundable within 14 days of first purchase via https://packagento.com/account/refunds/.

## Install via Claude Code or any MCP client

The Packagento MCP server can run the licence + project + Composer steps above in one tool call:

```
purchase_and_install_packages(
  composer_names=["hyva-themes/magento2-luma-checkout"],
  project_id="proj_xxx"
)
```

This handles cart, checkout, licence minting, project activation, and writes auth.json credentials. Connect a client with `claude mcp add packagento https://mcp.packagento.com`. Full setup at https://packagento.com/docs/mcp-setup.

## Vendor

hyva-themes is a Magento 2 vendor on Packagento. See https://packagento.com/hyva-themes.md for their full catalogue.

