Download the PHP package infrangible/m2-catalog-product-option-product without Composer

On this page you can find all versions of the php package infrangible/m2-catalog-product-option-product. 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 m2-catalog-product-option-product

Infrangible Catalog Product Option Product

Adds the custom option type Product: instead of a title and a price, the option links another catalog product, for example an accessory, a service or a warranty. On the product page the option is a checkbox with the name and price of the linked product; a configurable product is shown with its swatches, and the selected variant is added.

Options with a product

The custom options of the product form in the admin have the type Product with these fields:

Field Use
Product ID of the linked product (simple, virtual or configurable)
Product Code code of a product attribute, for example sku, whose value is stored with the order
Unattached adds the price once per cart item instead of once per piece
Attribute Option Mapping srcAttrId:srcAttrOptionId:targetAttrId:targetAttrOptionId, separated by commas
Attribute Option Preselect attributeId:attributeOptionId (or only attributeId for the first option), separated by commas

Events

Event Data
catalog_product_option_product_price data: product, option, price (changeable)
catalog_product_option_product_qty data: product, option, qty (changeable, unattached options)
catalog_product_option_product_init_attribute_mappings data: product, option, result (apply the mappings on load)
catalog_product_option_product_init_attribute_preselects data: product, option, result (apply the preselects on load)

Infrangible Catalog Product Option Qty uses them to add a quantity to options with a product.

Other modules

When these modules are installed, options with a product work with them as well:

Requirements

Installation

In production mode, also run bin/magento setup:di:compile.

License

Infrangible Catalog Product Option Product is licensed under the MIT License - see the LICENSE file for details.


All versions of m2-catalog-product-option-product with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1
magento/framework Version ~102.0.0|~103.0.0
infrangible/m2-core Version ~3.14.1||~4.0.1
infrangible/m2-catalog-product-option-wrapper Version ~1.2.0
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 infrangible/m2-catalog-product-option-product contains the following files

Loading the files please wait ...