{ "info": { "author": "Zenobius Jiricek", "author_email": "airtonix@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP" ], "description": "## djangoCMS/Shop Configurable Products Extension\r\n\r\nThis simple extension provides some plugins to display things about your\r\n[django-shop configurable products](https://bitbucket.org/zeus/django-shop-configurableproduct).\r\n\r\n\r\n## Requirements\r\n\r\n* django-shop\r\n* django-cms\r\n* django-shop-configurableproduct\r\n* And all the requirements the above three projects depend on.\r\n\r\n\r\n## Installation\r\n\r\n1. make sure you are using a python virtual environment\r\n\r\n virtualenv ~/Dev/virtualenv/projectname\r\n . ~/Dev/virtualenv/projectname/bin/activate\r\n cd ~/Dev/projects/projectname/\r\n\r\n2. install it from pypi\r\n\r\n pip install cmsplugin-configurableproduct\r\n\r\n3. or, install it from github\r\n\r\n pip install git+https://github.com/airtonix/cmsplugin-configurableproduct\r\n\r\n\r\n## Override Template\r\n\r\nChoosing a template in the administration interface means that you\r\npopulate the following two relative paths (to any of your app template dirs)\r\nwith templates you desire to be made available.\r\n\r\n* cmsplugin_configurableproduct/product-types\r\n* cmsplugin_configurableproduct/product-list\r\n\r\nAny .html file that doesn't contain the word 'base' will be presented in\r\nthe template selector combo dropdown in the admin interface.\r\n\r\nFor example, if your django project was at :\r\n\r\n ~/Dev/Django/MyProjectName/\r\n\r\nAnd you had a django application named `SomethingSomethingSomething` at :\r\n\r\n ~/Dev/Django/MyProjectName/SomethingSomethingSomething/\r\n\r\nThen templates for this plugin could be found at :\r\n\r\n ~/Dev/Django/MyProjectName/SomethingSomethingSomething/templates/cmsplugin_configurableproduct/product-types/*.html\r\n ~/Dev/Django/MyProjectName/SomethingSomethingSomething/templates/cmsplugin_configurableproduct/product-list/*.html\r\n\r\nIn fact, anywhere django looks for templates, you can place the following tree :\r\n\r\n /cmsplugin_configurableproduct\r\n /product-types\r\n /*.html\r\n /product-list\r\n /*.html\r\n\r\n\r\n### Customising Templates\r\n\r\nTemplates in all groups are provided the context :\r\n\r\na CMSPlugin has many useful attributes for you to use, the main one\r\nis `plugin.instance` a reference to the settings model.\r\n\r\n> plugin' :\r\n> An instance of CMSPlugin, which itself provides reference to either\r\n> of the settings models as outlined below.\r\n\r\n#### base.html\r\n\r\nbase.html in the `cmsplugin_configurableproduct` directory is used to load the\r\nselected template chosen in the administration interface.\r\n\r\n\r\n#### ./product-types/*.html\r\n\r\ntemplates here are provided the context :\r\n\r\n> plugin.instance\r\n> categories\r\n> Chosen categories for this instance,\r\n>\r\n> show_category_icon\r\n> For when configurable_product.ProductType stores an image.\r\n>\r\n> hide_empty_categories\r\n> Self explanitory, effected in the cms_plugin.\r\n>\r\n> template\r\n> Chosen template.\r\n>\r\n> Types\r\n> A list of configurable_product.ProductType(s)\r\n\r\n\r\n#### ./product-list/*.html\r\n\r\ntemplates here are provided the context :\r\n\r\n\r\n> plugin.instance\r\n> categories\r\n> Chosen categories for this instance,\r\n>\r\n> hide_empty_categories\r\n> Self explanitory, effected in the cms_plugin.\r\n>\r\n> template\r\n> Chosen template.\r\n>\r\n> filter_product_attributes\r\n> Comma separated list of CProductField names on which to\r\n> effect a filter action of either Filter, or Exclude.\r\n>\r\n> filter_action\r\n> The action to take on the filter attributes listed above.\r\n>\r\n> Products\r\n> A list of configurable_product.CProduct(s)\r\n\r\n\r\n\r\n## Contributions\r\n\r\nanyone is free to contribute, simply submit a merge request at\r\ngithub : http://github.com/airtonix/cmsplugin-configurableproduct\r\n\r\n\r\n## Todo\r\n\r\nprovide option to manipulate menu choices:\r\n\r\n* Refine the product filter.\r\n* Provide better default templates.\r\n* Allow selecting/use of snippets for menu templates?", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/airtonix/cmsplugin-configurableproduct", "keywords": "django-cms,plugin,django-shop,product", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "cmsplugin-configurableproduct", "package_url": "https://pypi.org/project/cmsplugin-configurableproduct/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/cmsplugin-configurableproduct/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/airtonix/cmsplugin-configurableproduct" }, "release_url": "https://pypi.org/project/cmsplugin-configurableproduct/0.0.11/", "requires_dist": null, "requires_python": null, "summary": "DjangoCMS plugin for django-shop-configurableproduct", "version": "0.0.11" }, "last_serial": 787544, "releases": { "0.0.10": [], "0.0.11": [ { "comment_text": "", "digests": { "md5": "768fdd4f18a4f6489d7b101da72208cd", "sha256": "28b2ef6e2cd2250aa4195b7895986f51eabd1516aa3312a3666d94900ac9428b" }, "downloads": -1, "filename": "cmsplugin-configurableproduct-0.0.11.tar.gz", "has_sig": false, "md5_digest": "768fdd4f18a4f6489d7b101da72208cd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9951, "upload_time": "2011-12-31T15:14:08", "url": "https://files.pythonhosted.org/packages/c0/69/4eccce3c3a6b69714ce055ac2a907ec5d16eb21d7486a96f893f8182b66a/cmsplugin-configurableproduct-0.0.11.tar.gz" } ], "0.0.4": [], "0.0.5": [], "0.0.6": [], "0.0.7": [], "0.0.8": [], "0.0.9": [] }, "urls": [ { "comment_text": "", "digests": { "md5": "768fdd4f18a4f6489d7b101da72208cd", "sha256": "28b2ef6e2cd2250aa4195b7895986f51eabd1516aa3312a3666d94900ac9428b" }, "downloads": -1, "filename": "cmsplugin-configurableproduct-0.0.11.tar.gz", "has_sig": false, "md5_digest": "768fdd4f18a4f6489d7b101da72208cd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9951, "upload_time": "2011-12-31T15:14:08", "url": "https://files.pythonhosted.org/packages/c0/69/4eccce3c3a6b69714ce055ac2a907ec5d16eb21d7486a96f893f8182b66a/cmsplugin-configurableproduct-0.0.11.tar.gz" } ] }