Bartic themed usage
Example 1 of usage

Synopsis

This module aims to expose all the product variation in a VIEW table and adding them to cart.

This kinda is a usefull tool for a wholesaling usage of the commerce where a person who's buying has to add many variations with different quantities at once.

Features

  • This module can operate as a simple quantity fields with a big submit button below,
  • or with Enhanced version of the quantity widget, with Plus / Minus buttons around that operates in ajax mode, and can be delayed via debounce (with configuration). So basically you can click many times to increase the quantity before the update event is fired

Requirements

Drupal Commerce (โ‰ฅ 8.x-2.15 for drupal8) (โ‰ฅ 8.x-2.28 for drupal9)



Known problems

This module depends on this patch for commerce: [#3017662]! But, if you don't have any custom logics or different order types / roles to manage - fear not installing this patch anyway - it won't change any commerce logic for you. The Chain Resolving process of the Order Item Type is transparent for you. Yet, you still need the patch for this module to work.

PAY ATTENTION:

if you want your Drupal project to accept the patches from dependencies (like in this module: we need to patch commerce module to work properly) we need the cweagans/composer-patches and specify an extra option too:
{
...
"require": {
"cweagans/composer-patches": "^1.5.0"
},
"extra": {
"enable-patching": true
}
}

If you're using the drupal-composer/drupal-project starter template you've already got cweagans/composer-patches, but still you'll need to specify the "enable-patching": true, before installing the commerce_pvt.

You'll need to control the terminal output during installation of commerce_pvt, it has to explicitly output the info about commerce module being patched. Otherwise PVT won't work!
Image removed.

Installation

So basically (for now) you MUST install this module through composer:

  1. $ composer require cweagans/composer-patches
  2. $ composer config extra.enable-patching true
  3. $ composer require drupal/commerce_pvt

Roadmap

0. Manage the patch above mentioned PATCH is pulled into Commerce project

- Make the patch real.

1. Finish developing the code and polish the rails

- Make the view as Pseudo field instead of preprocessing it as simple array to render.
- Create a configuration for enhanced widget with +/- wrapper elements
- Make the Enhanced widget delay-able via debounce

2. Write a documentation (any)

- User guide

3. Write some Tests to look cool and approved

- Any possible tests

Short name
commerce_pvt