Download the PHP package mageworx/module-optiongraphql without Composer

On this page you can find all versions of the php package mageworx/module-optiongraphql. 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 module-optiongraphql

This GraphQL module is the add-on for the Advanced Product Options Suite module for Magento 2. It adds support for the GraphQL API to use the features provided by APO extension on PWA store fronts.

Our module extends original Magento products GraphQL request to add our attributes. You can remove the unnecessay attributes manually if they are not applicable for your configuration.

Products request
Products response

Please also see additional GraphQL requests below:

Dependency State:

Calculate the dependency and the default state. It returns the values that should be hidden and/or selected as the default, when the customers select certain options.

Dependency state request
Dependency state response
Dependency state errors response

Note: The 'Dependency state' request should be used if you use the dependent options. You should send the 'Dependency state' request each time the customer selects an option's value on the front-end to get the list of values that should be hidden or pre-selected. You should keep all selected values in this request. I.e. you should add the new selected value, keeping the previous values in this request so the extension will be able to calculate the dependency correctly.

The 'DependencyState' response contains the objects, which include the following keys:

The "preselected_values" duplicates the values, sent in the request, and adds the values, which should be shown and might be pre-selected.

If you do not want to use this approach to calculate the dependencies and the default state for some reasons, we added the 'dependency_rules' fields to the Products request and response (see the Products request and response above for more details).

Otherwise, we recommend to remove the 'dependency_rules' fields from the Products request to improve the performance.

The 'dependency_rules' is the JSON row with the array of the rules. Every rule is the array with the following structure:

Note: The values exist for "selectable" options only. For the option types like "field", the "values" will be empty.

The "hidden_dependents" row has the same structure as the "DependencyState" (described above).

Advanced Product Options Settings:

This query contains all Advanced Product Options configuration setting which you can see in the admin stores -> configuration -> Mageworx -> Advanced Product Options tab

Advanced Product Options Settings request
Advanced Product Options Settings response

The 'AdvancedProductOptionsSettings' response contains the params, which include the following keys:

Product Extend Config:

This query contains different arguments which can help you to work with the advanced product options on the frontend.

Product Extend Config request
Product Extend Config response

The 'ProductExtendConfig' response contains the params, which include the following keys:

The 'option_json_config' has all value prices with included and excluded taxes, also has tier and special value data in ready to display format.

The 'product_json_config' contains advanced product option attributes, product tier price data, product type, regular and final prouct prices with inc. and excl. taxes and product price display mode.

The 'locale_price_format' has params to display product price format.

Product Final Price:

The query has base and final product prices which contain a total price with selected options and option values

Product Final Price request
Product Final Price response

The 'ProductFinalPrice' request contains the next arguments:

The 'ProductFinalPrice' response contains the actual base and final prices which will be calculated with selected options using this query, which include the following keys:

Swatch Media Data

Contains all data about advanced product option swatch feature. It's like images paths, roles, mode and others.

Swatch Media Data request
Swatch Media Data response

The 'SwatchMediaData' response contains the params, which include the following keys:


All versions of module-optiongraphql with dependencies

PHP Build Version
Package Version
Requires magento/framework Version >=102.0.0 <104
magento/module-catalog-graph-ql Version >=100.3.0
mageworx/module-optionbase Version >=2.17.23
mageworx/module-optionfeatures Version >=2.31.19
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 mageworx/module-optiongraphql contains the following files

Loading the files please wait ....