{ "info": { "author": "Christopher Glass", "author_email": "tribaal@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "================================\ndjango SHOP - Simple Variations\n================================\n\nThis app's purpose is to provide a way to quickly create product variations for\nmost simple cases.\n\nIt considers variations as a {label: value} entry in the cart modifiers, so it\nis perfect for things like differently priced colors, or build-your-own\ncomputers for example.\n\n\nInstallation\n============\n\nThis requires django SHOP to work (https://github.com/chrisglass/django-shop)\n\n* Add the app to your INSTALLED_APPS in your settings.py\n* Add `shop_simplevariations.cart_modifier.ProductOptionsModifier` to your\n `SHOP_CART_MODIFIERS` setting.\n* Add `(r'^shop/cart/', include(simplevariations_urls)),` to your `urls.py`\n just before `(r'^shop/', include(shop_urls)),`\n\nYour urls.py should look like this:\n\n::\n\n from django.conf.urls.defaults import *\n from django.contrib import admin\n\n from shop import urls as shop_urls\n from shop_simplevariations import urls as simplevariations_urls\n\n\n admin.autodiscover()\n\n\n urlpatterns = patterns('',\n (r'^admin/', include(admin.site.urls)),\n (r'^shop/cart/', include(simplevariations_urls)),\n (r'^shop/', include(shop_urls)),\n )\n\nUsage\n=====\n\n* Create an Option group in the admin view\n* Bind it to a product\n* Add options and the corresponding price to the group.\n* When a `CartItemOption` object is linked to a `CartItem`, the option's value\n will be added to the CartItem's price and a corresponding extra field willbe\n added to the Cart/Order.\n* Override django-shop's `product_detail.html` template and add selection\n elements so that your users can select variations.\n\n\nThe product_detail.html template\n================================\nThe simple `product_detail.html` that ships with the shop doesn't take\nvariations into consideration.\n\nTherefore you need to override the template. django-shop-simplevariations\nships with two templatetags that help creating drop down lists so that a\ncustomer can actually chose variation.\n\nFirst make sure to load the simplevariation templatetags:\n\n::\n\n {% load simplevariation_tags %}\n

Product detail:

\n ...\n\nNext create the drop down lists of OptionsGroups and Options:\n\n::\n\n
{% csrf_token %}\n {% with option_groups=object|get_option_groups %}\n {% if option_groups %}\n
\n

Variations:

\n {% for option_group in option_groups %}\n \n {% with option_group|get_options as options %}\n \n {% endwith %}\n {% endfor %}\n
\n {% endif %}\n {% endwith %}\n {% with text_options=object.text_options.all %}\n {% if text_options %}\n
\n

Text options:

\n {% for text_option in text_options %}\n \n \n {% endfor %}\n
\n {% endif %}\n {% endwith %}\n \n \n \n
\n\nContributing\n============\n\nFeel free to fork this project on github, send pull requests...\ndevelopment discussion happends on the django SHOP mailing list\n(django-shop@googlegroups.com)", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://www.django-shop.org/", "keywords": null, "license": "BSD License", "maintainer": null, "maintainer_email": null, "name": "django-shop-simplevariations", "package_url": "https://pypi.org/project/django-shop-simplevariations/", "platform": "OS Independent", "project_url": "https://pypi.org/project/django-shop-simplevariations/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://www.django-shop.org/" }, "release_url": "https://pypi.org/project/django-shop-simplevariations/0.0.4/", "requires_dist": null, "requires_python": null, "summary": "A simple to use product variations module for django SHOP", "version": "0.0.4" }, "last_serial": 728514, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "b1459f7664ae95c96831cb9b65168dfd", "sha256": "565052bce1ae62310df3e5ab00a4ac1fd7f284df63bd5705465767cfa0374f70" }, "downloads": -1, "filename": "django-shop-simplevariations-0.0.1.tar.gz", "has_sig": false, "md5_digest": "b1459f7664ae95c96831cb9b65168dfd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4838, "upload_time": "2011-05-05T10:38:29", "url": "https://files.pythonhosted.org/packages/54/da/fc1c5092a1b913a16b9d911c1f5932addf1e70274e4384008cc1729317e2/django-shop-simplevariations-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "4d3ea1c6e5f71d14c562557a150e9ff1", "sha256": "21e8de8c68308fe32ea106b3edf7e5953ab5bd9fde510cf5f5182b12738308e2" }, "downloads": -1, "filename": "django-shop-simplevariations-0.0.2.tar.gz", "has_sig": false, "md5_digest": "4d3ea1c6e5f71d14c562557a150e9ff1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12781, "upload_time": "2011-07-13T14:09:01", "url": "https://files.pythonhosted.org/packages/0b/ce/f3c5c8d72797e52daf78e71b5b834fea4af752ff1ba534256d88b0baf485/django-shop-simplevariations-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "7eb0105f956e949f9c2cb245c0587d9c", "sha256": "273677b5a3fe3c71518162ffdc298f1ee419d4fda605e92c70f18c23df0cdd1b" }, "downloads": -1, "filename": "django-shop-simplevariations-0.0.3.tar.gz", "has_sig": false, "md5_digest": "7eb0105f956e949f9c2cb245c0587d9c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12815, "upload_time": "2011-07-13T15:08:04", "url": "https://files.pythonhosted.org/packages/53/4c/c49c2b087f2b7bf927f82575d5ef81e7f4e2832816a33adeabf75886dd09/django-shop-simplevariations-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "b41adfe4fa69791f66d01bc94957050c", "sha256": "f252568f451e3818ad7ccd66b03c8d7b3295e4078e21ab0f6e08275f7c2c3c89" }, "downloads": -1, "filename": "django-shop-simplevariations-0.0.4.tar.gz", "has_sig": false, "md5_digest": "b41adfe4fa69791f66d01bc94957050c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13036, "upload_time": "2011-09-27T11:58:46", "url": "https://files.pythonhosted.org/packages/de/af/358122c3bdb006cc599845d43d6519a42f7ef15b7c17ccfd488090402196/django-shop-simplevariations-0.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b41adfe4fa69791f66d01bc94957050c", "sha256": "f252568f451e3818ad7ccd66b03c8d7b3295e4078e21ab0f6e08275f7c2c3c89" }, "downloads": -1, "filename": "django-shop-simplevariations-0.0.4.tar.gz", "has_sig": false, "md5_digest": "b41adfe4fa69791f66d01bc94957050c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13036, "upload_time": "2011-09-27T11:58:46", "url": "https://files.pythonhosted.org/packages/de/af/358122c3bdb006cc599845d43d6519a42f7ef15b7c17ccfd488090402196/django-shop-simplevariations-0.0.4.tar.gz" } ] }