abeta-io/magento2-hyva

Hyvä Themes Compatibility module for Abeta extension

Installs: 6

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Language:HTML

Type:magento2-module

dev-main 2024-10-02 11:41 UTC

This package is auto-updated.

Last update: 2024-10-02 11:41:26 UTC


README

This repository contains the module that enables Abeta support for Hyvä. This module has a dependency on the Abeta Magento 2 module.

Installation

  1. Install the module using composer:
composer composer require abeta-io/magento2-hyva
  1. Enable the module:
bin/magento module:enable Abeta_HyvaPunchOut 
  1. Upgrade the database:
bin/magento setup:upgrade
  1. Let Hyvä know about the new module:
php bin/magento hyva:config:generate
  1. 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

Missing styles?

Make sure that PostCSS uses the postcssImportHyvaModules plugin in your theme:

  1. Go to your theme folder: app/design/frontend/<Vendor>/<Theme>/web/tailwind
  2. Install the module:
npm install --save-dev @hyva-themes/hyva-modules
  1. Open your postcss.config.js and add this as the first line:
const { postcssImportHyvaModules } = require("@hyva-themes/hyva-modules");
  1. Make sure the plugin is includes in the plugins list:
module.exports = {
    plugins: [
        postcssImportHyvaModules,
        // ...
    ],
};