bda.plone.discount


Namebda.plone.discount JSON
Version 2.0b1 PyPI version JSON
download
home_pageNone
SummaryDiscounting Information for Content Items
upload_time2024-04-17 13:49:29
maintainerNone
docs_urlNone
authorBlueDynamics Alliance
requires_pythonNone
licenseGNU General Public Licence
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            bda.plone.discount
==================

This package contains forms for defining discounting rules for buyable items,
both on per item basis and for overall cart, and the corresponding calculation
adapters.


Installation
------------

This package is part of the ``bda.plone.shop`` stack. Please refer to
``https://github.com/bluedynamics/bda.plone.shop`` for installation
instructions.


Usage
-----

XXX: Write me


Restrictions with souper.plone
------------------------------

- Make sure you do not move discount rules soup away from portal root. This
  will end up in unexpected behavior and errors.


TODO
----

- Currently discount is calculated from net prices. Make it possible to control
  whether discount should be calculated from gross prices.

- Implement Vouchers / Coupons.

- Implement "block neighbor" flag and consider neighbor rules as well as
  parental rules.

- Implement portal type filter in cart discount rules. Usecase is to discount
  by overall items of same type in cart.


Contributors
------------

- Robert Niederreiter (Author)
- Peter Holzer
- Jens Klein
- Johannes Raggam
- Ezra Holder

Changelog
=========

2.0b1 (2024-04-17)
------------------

- No longer support for z3c.autoinclude.
  [jensens]

- Adopt import to latest cart changes.
  [jensens]

- Code style black. isort imports.
  [jensens]

- Python 2/3 compatibility
  [agitator]

- Update version and classifiers - 2.x targets Plone 5.1/5.2 without Archetypes
  [agitator]

- Update resource loading for discount view
  [agitator]

1.0a1 (unreleased)
------------------

- Replace unittest2 with untittest
  [agitator]

- Item discount threshold can be defined either by price or item count.
  [rnix]

- Add portal type filter support for cart item discount rules.
  [rnix]

- Ignore all non ``IDiscountSettingsEnabled`` and non ``ISite`` providing
  contexts in ``RuleAcquierer.rules``.
  [rnix]

- Bind all views to ``IDiscountExtensionLayer``.
  [rnix]

- Make ``discount_form`` global in ``discount.js`` in order to make discount
  form switch work again.
  [rnix]

- Add actions to enable and disable item discount
  (``IDiscountSettingsEnabled``) on context.
  [rnix]

- Plone 5 update.
  [agitator]


0.3
---

- JSHint JavaScript.
  [thet]


0.2
---

- Translate ``changes_saved`` ajax message directly in view class.
  [rnix]

- Add ``user`` and ``group`` keyword arguments to
  ``bda.plone.discount.settings.PersistendDiscountSettings.rules`` function.
  Restrict the use of these keywords by defined ``for_attribute`` scope.
  [rnix]

- Avoid division / 0 in ``bda.plone.discount.calculator.CartDiscount.vat``
  [rnix]

- Only hide border for global dicsount_views.
  [rnix]


0.1
---

- initial work
  [rnix]

License
=======

Copyright (c) 2014-2019, BlueDynamics Alliance, Austria
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this 
  list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this 
  list of conditions and the following disclaimer in the documentation and/or 
  other materials provided with the distribution.
* Neither the name of the BlueDynamics Alliance nor the names of its 
  contributors may be used to endorse or promote products derived from this 
  software without specific prior written permission.
      
THIS SOFTWARE IS PROVIDED BY BlueDynamics Alliance ``AS IS`` AND ANY
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL BlueDynamics Alliance BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "bda.plone.discount",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": null,
    "author": "BlueDynamics Alliance",
    "author_email": "dev@bluedynamics.com",
    "download_url": "https://files.pythonhosted.org/packages/6f/e7/04c218394abffe4fbf3b2d7f02256aa59fbcb52c9de2d2bfa91a93f71bad/bda.plone.discount-2.0b1.tar.gz",
    "platform": null,
    "description": "bda.plone.discount\n==================\n\nThis package contains forms for defining discounting rules for buyable items,\nboth on per item basis and for overall cart, and the corresponding calculation\nadapters.\n\n\nInstallation\n------------\n\nThis package is part of the ``bda.plone.shop`` stack. Please refer to\n``https://github.com/bluedynamics/bda.plone.shop`` for installation\ninstructions.\n\n\nUsage\n-----\n\nXXX: Write me\n\n\nRestrictions with souper.plone\n------------------------------\n\n- Make sure you do not move discount rules soup away from portal root. This\n  will end up in unexpected behavior and errors.\n\n\nTODO\n----\n\n- Currently discount is calculated from net prices. Make it possible to control\n  whether discount should be calculated from gross prices.\n\n- Implement Vouchers / Coupons.\n\n- Implement \"block neighbor\" flag and consider neighbor rules as well as\n  parental rules.\n\n- Implement portal type filter in cart discount rules. Usecase is to discount\n  by overall items of same type in cart.\n\n\nContributors\n------------\n\n- Robert Niederreiter (Author)\n- Peter Holzer\n- Jens Klein\n- Johannes Raggam\n- Ezra Holder\n\nChangelog\n=========\n\n2.0b1 (2024-04-17)\n------------------\n\n- No longer support for z3c.autoinclude.\n  [jensens]\n\n- Adopt import to latest cart changes.\n  [jensens]\n\n- Code style black. isort imports.\n  [jensens]\n\n- Python 2/3 compatibility\n  [agitator]\n\n- Update version and classifiers - 2.x targets Plone 5.1/5.2 without Archetypes\n  [agitator]\n\n- Update resource loading for discount view\n  [agitator]\n\n1.0a1 (unreleased)\n------------------\n\n- Replace unittest2 with untittest\n  [agitator]\n\n- Item discount threshold can be defined either by price or item count.\n  [rnix]\n\n- Add portal type filter support for cart item discount rules.\n  [rnix]\n\n- Ignore all non ``IDiscountSettingsEnabled`` and non ``ISite`` providing\n  contexts in ``RuleAcquierer.rules``.\n  [rnix]\n\n- Bind all views to ``IDiscountExtensionLayer``.\n  [rnix]\n\n- Make ``discount_form`` global in ``discount.js`` in order to make discount\n  form switch work again.\n  [rnix]\n\n- Add actions to enable and disable item discount\n  (``IDiscountSettingsEnabled``) on context.\n  [rnix]\n\n- Plone 5 update.\n  [agitator]\n\n\n0.3\n---\n\n- JSHint JavaScript.\n  [thet]\n\n\n0.2\n---\n\n- Translate ``changes_saved`` ajax message directly in view class.\n  [rnix]\n\n- Add ``user`` and ``group`` keyword arguments to\n  ``bda.plone.discount.settings.PersistendDiscountSettings.rules`` function.\n  Restrict the use of these keywords by defined ``for_attribute`` scope.\n  [rnix]\n\n- Avoid division / 0 in ``bda.plone.discount.calculator.CartDiscount.vat``\n  [rnix]\n\n- Only hide border for global dicsount_views.\n  [rnix]\n\n\n0.1\n---\n\n- initial work\n  [rnix]\n\nLicense\n=======\n\nCopyright (c) 2014-2019, BlueDynamics Alliance, Austria\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this \n  list of conditions and the following disclaimer.\n* Redistributions in binary form must reproduce the above copyright notice, this \n  list of conditions and the following disclaimer in the documentation and/or \n  other materials provided with the distribution.\n* Neither the name of the BlueDynamics Alliance nor the names of its \n  contributors may be used to endorse or promote products derived from this \n  software without specific prior written permission.\n      \nTHIS SOFTWARE IS PROVIDED BY BlueDynamics Alliance ``AS IS`` AND ANY\nEXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL BlueDynamics Alliance BE LIABLE FOR ANY\nDIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\nLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\nON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n",
    "bugtrack_url": null,
    "license": "GNU General Public Licence",
    "summary": "Discounting Information for Content Items",
    "version": "2.0b1",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "51f8fe939f3bb57bd5715ca87f171db4c62891836abcc075138bb90ebc35be58",
                "md5": "a15b73e01f61e4b82e0a31c463cd1d70",
                "sha256": "fda9cff6736512e0525bea0ce82f15923daf3be0fa6d5f576fb2ac373cd49f69"
            },
            "downloads": -1,
            "filename": "bda.plone.discount-2.0b1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a15b73e01f61e4b82e0a31c463cd1d70",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 51228,
            "upload_time": "2024-04-17T13:49:27",
            "upload_time_iso_8601": "2024-04-17T13:49:27.514735Z",
            "url": "https://files.pythonhosted.org/packages/51/f8/fe939f3bb57bd5715ca87f171db4c62891836abcc075138bb90ebc35be58/bda.plone.discount-2.0b1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6fe704c218394abffe4fbf3b2d7f02256aa59fbcb52c9de2d2bfa91a93f71bad",
                "md5": "915a2fd138748117f1c1d8cdc5f34027",
                "sha256": "90138de9802641a02784e5e9f52bf1a35d365cd4db83f836e4097ade700a97de"
            },
            "downloads": -1,
            "filename": "bda.plone.discount-2.0b1.tar.gz",
            "has_sig": false,
            "md5_digest": "915a2fd138748117f1c1d8cdc5f34027",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 35640,
            "upload_time": "2024-04-17T13:49:29",
            "upload_time_iso_8601": "2024-04-17T13:49:29.575986Z",
            "url": "https://files.pythonhosted.org/packages/6f/e7/04c218394abffe4fbf3b2d7f02256aa59fbcb52c9de2d2bfa91a93f71bad/bda.plone.discount-2.0b1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-17 13:49:29",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "bda.plone.discount"
}
        
Elapsed time: 1.18516s