Download the PHP package siteation/magento2-module-enhanced-qty without Composer

On this page you can find all versions of the php package siteation/magento2-module-enhanced-qty. 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 magento2-module-enhanced-qty

Siteation - Magento 2 Module Enhanced Qty

Packagist Version

Warning We stopped supporting Luma, this module will no long recive any updates

This Magento 2 module adds qty buttons next to each qty input field. Making it easier for your store customers to increase or decrease the quantity, of a product.

View more previews of the Enhanced Qty

TOC - [Installation](#installation) - [How to use](#how-to-use) - [SCSS support](#scss-support) - [Config](#config) - [Render Javascript config](#render-javascript-config) - [Enhanced Qty Javascript config](#enhanced-qty-javascript-config) - [Styling config](#styling-config) - [Tips](#tips) - [Also show on the product grid](#also-show-on-the-product-grid)

Installation

Install the package via;

This Module require Magento 2.3 or higher! For more requirements see the composer.json.

How to use

No instructions needed. This module works out of the box for themes based on Luma theme.

The module is a progressive enhancement. And does not change the default behavior of the Magento 2 qty field. Also it does not overrides any templates except for the minicart KO template.

The render-qty-btn.js will add the qty buttons based on the input fields. And the enhanced-qty.js will handle the increment and decrement.

SCSS support

This module also supports SCSS styles. That can be used with tools like Frontools.

Add Siteation_EnhancedQty to the themes.json;

And import it in your styles.scss via;

Config

Render Javascript config

There are some option for the render function. You can pass the option;

Enhanced Qty Javascript config

The enhanced qty has no config. But will check for specific html attributes.

So changing these values will also impact the enhanced qty buttons behavior. Giving the same behavior as the html input field.

Styling config

The enhanced qty comes out of the box with 2 styles. Each rendered based on what pointer is available.

You can disable or change this behavior via the variables.

If you like to use pointer fine styles also for mobile.

Simple set the vars to;

This will disable the pointer styles. And set the default layout to the layout used by the fine layout.

Since the enhanced qty uses css grid templates areas. You can easily change the layout via just 1 or 2 simple variables.

Tips

Also show on the product grid

The enhanced qty will also work if the qty box is added to the product grid.

To show it on the product list.phtml add the follwing code before the cart button.


All versions of magento2-module-enhanced-qty with dependencies

PHP Build Version
Package Version
Requires magento/module-checkout Version ^100.3|^100.4
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 siteation/magento2-module-enhanced-qty contains the following files

Loading the files please wait ....