GithubHelp home page GithubHelp logo

commerce_product_set's Introduction

Commerce Product Set

This module extends Drupal Commerce by allowing the store owner to define product sets consisting of already existing product variations. A product set is a purchasable entity on its own and has got its own SKU as well as its own price. The referenced variations are stored rather for informational purposes.

Adding a product set to the cart results in one single order item referencing the product set. The order item stores information about the single parts (variations) in an own custom field, persisting the data at the time of placing the order.

Comparison to Commerce Product Bundle

Yes indeed, this module offers a very similar functionality as Commerce Product Bundle already does. Unfortunately, commerce_product_bundle is still not in a mature state, especially there is an ongoing discussion about the data model, especially regarding if and how to persist the information about the involved products and variations at the time of placing the order.

Being under time pressure for enabling product sets (or bundles - however you would like to call them) in a customer project forced me towards the inevitable decision to rather create a custom module for that, rather than being able to help improving commerce_product_bundle instead.

That's also the reason, why I'm reluctant whether to publish this module on drupal.org, or if I should rather offer the maintainer of CPB to have a look at this module in order to adopt the one or another thing from this module.

Besides the differences in the stored order data, I took a simpler approach to the product set/bundle data model itself. I have went without having a dedicated entity type for the single parts a product set consists of. A product set is a purchasable entity on its own and directly references existing product variations (using the extended reference field from entity_reference_quantity module).

In the meantime, the module will be hosted on Github exclusively: Githup repo

Update

After having a chat with bojanz on Slack, we decided to not publish it on d.o, as the module is too close to CPB. The project will stay on Github though and is available via Packagist under agoradesign/commerce_product_set.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.