Download the PHP package ecomhouse/defaultvariant without Composer

On this page you can find all versions of the php package ecomhouse/defaultvariant. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package defaultvariant

EcomHouse DefaultVariant

ecomhouse/defaultvariant lets a merchant mark one child product of a configurable product as its default variant. It adds a default_variant product attribute plus an admin control in the configurable product's Configurations matrix — a Choose Default Variant action on each variant row — that stores the chosen child's ID on the parent. The attribute is exposed to the storefront (product listing and product view) so a theme or integration can read it and open the product on that variation.

Polish usage guide: docs/jak-uzywac.md.

Requirements

Requirement Version
Magento Open Source 2.4.x
PHP >= 8.2
Magento_ConfigurableProduct core
Magento_Catalog, Magento_Eav core

No ecomhouse/base dependency — this module ships no admin config section and hangs nothing off the ecomhouse menu.

Installation

Composer

Manual

Verify

Expected: Module is enabled. setup:upgrade also creates a Default Variant Id (default_variant) text attribute on the product entity, applied to configurable products (Stores > Attributes > Product).

Configuration

There is no Stores > Configuration section. The module works entirely from the product edit page: open a configurable product, and each row of the Configurations matrix gains a Choose Default Variant item in its Select action menu. Picking it marks that variant as the default (the chosen row is outlined in green) and saves its ID into the default_variant attribute on save.

Full walkthrough: docs/how-to-use.md. Polish version: docs/jak-uzywac.md.

Uninstalling

Uninstalling does not remove the default_variant EAV attribute — remove it manually at Stores > Attributes > Product first if you want a clean removal.

Support


All versions of defaultvariant with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ecomhouse/defaultvariant contains the following files

Loading the files please wait ...