superpayments / superpayment-hyva
Hyvä Themes Compatibility module for Superpayment
Installs: 70
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 9
Forks: 2
Open Issues: 3
Language:HTML
Type:magento2-module
Requires
- hyva-themes/magento2-compat-module-fallback: *
- hyva-themes/magento2-hyva-checkout: ^1.1
- magento/framework: *
- superpayments/superpayment: *
This package is auto-updated.
Last update: 2025-05-01 13:09:50 UTC
README
This repository contains the module that enables SuperPayments support for Hyvä, https://www.hyva.io/.
Prerequisites
You must install the following before you install the Super Payments Hyvä plugin.
-
Install the SuperPayments Magento 2 Module, https://github.com/superpayments/magento-plugin
-
Install the Hyva Checkout, https://docs.hyva.io/checkout/hyva-checkout/getting-started/index.html
-
Hyva Theme, https://docs.hyva.io/hyva-themes/getting-started/index.html (there is a default theme)
-
Hyva Compatibility Module, https://docs.hyva.io/hyva-themes/compatibility-modules/index.html#compat-module-development-videos
Generate the Super Payments Hyvä Module
-
Update the Super Payments Hyvä Module version.
-
A new release can be created through using: https://github.com/superpayments/magento-plugin-hyva/releases/new.
Installation the module manually
-
Download and extract the ZIP file.
-
Connect to the Magento server.
-
Navigate to the "app/code" directory. Make sure the folder SuperPayments” exists, and create another folder called “SuperPaymentHyva” in that folder.
-
Go to the path "app/code/Superpayments/SuperPaymentHyva". Copy all the Super Payments Hyvä Module folders and files from the "src" folder in the downloaded module.
-
In the terminal, run the command:
php bin/magento hyva:config:generate
-
Check the file "app/etc/hyva-themes.json" to ensure that the path to the Hyva compatibility module files is correctly specified. This is necessary for generating styles.
-
Generate the CSS files:
npm --prefix vendor/hyva-themes/magento2-default-theme/web/tailwind/ run ci npm --prefix vendor/hyva-themes/magento2-default-theme/web/tailwind/ run build-prod
Or from your theme:
npm --prefix app/design/frontend/<Vendor>/<Theme>/web/tailwind run ci npm --prefix app/design/frontend/<Vendor>/<Theme>/web/tailwind run build-prod
- Run the command and then configure the module in the admin panel.
php bin/magento setup:upgrade
Missing styles?
Make sure that PostCSS uses the postcssImportHyvaModules
plugin in your theme:
- Go to your theme folder:
app/design/frontend/<Vendor>/<Theme>/web/tailwind
- Install the module:
npm install --save-dev @hyva-themes/hyva-modules
- Open your
postcss.config.js
and add this as the first line:
const { postcssImportHyvaModules } = require("@hyva-themes/hyva-modules");
- Make sure the plugin is includes in the plugins list:
module.exports = { plugins: [ postcssImportHyvaModules, // ... ], };