Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
cmsplugin-configurableproduct
Advanced tools
This simple extension provides some plugins to display things about your django-shop configurable products.
make sure you are using a python virtual environment
virtualenv ~/Dev/virtualenv/projectname . ~/Dev/virtualenv/projectname/bin/activate cd ~/Dev/projects/projectname/
install it from pypi
pip install cmsplugin-configurableproduct
or, install it from github
pip install git+https://github.com/airtonix/cmsplugin-configurableproduct
Choosing a template in the administration interface means that you populate the following two relative paths (to any of your app template dirs) with templates you desire to be made available.
Any .html file that doesn't contain the word 'base' will be presented in the template selector combo dropdown in the admin interface.
For example, if your django project was at :
~/Dev/Django/MyProjectName/
And you had a django application named SomethingSomethingSomething
at :
~/Dev/Django/MyProjectName/SomethingSomethingSomething/
Then templates for this plugin could be found at :
~/Dev/Django/MyProjectName/SomethingSomethingSomething/templates/cmsplugin_configurableproduct/product-types/*.html
~/Dev/Django/MyProjectName/SomethingSomethingSomething/templates/cmsplugin_configurableproduct/product-list/*.html
In fact, anywhere django looks for templates, you can place the following tree :
/cmsplugin_configurableproduct
/product-types
/*.html
/product-list
/*.html
Templates in all groups are provided the context :
a CMSPlugin has many useful attributes for you to use, the main one
is plugin.instance
a reference to the settings model.
plugin' : An instance of CMSPlugin, which itself provides reference to either of the settings models as outlined below.
base.html in the cmsplugin_configurableproduct
directory is used to load the
selected template chosen in the administration interface.
templates here are provided the context :
plugin.instance categories Chosen categories for this instance, show_category_icon For when configurable_product.ProductType stores an image. hide_empty_categories Self explanitory, effected in the cms_plugin. template Chosen template. Types A list of configurable_product.ProductType(s)
templates here are provided the context :
plugin.instance categories Chosen categories for this instance, hide_empty_categories Self explanitory, effected in the cms_plugin. template Chosen template. filter_product_attributes Comma separated list of CProductField names on which to effect a filter action of either Filter, or Exclude. filter_action The action to take on the filter attributes listed above. Products A list of configurable_product.CProduct(s)
anyone is free to contribute, simply submit a merge request at github : http://github.com/airtonix/cmsplugin-configurableproduct
provide option to manipulate menu choices:
FAQs
DjangoCMS plugin for django-shop-configurableproduct
We found that cmsplugin-configurableproduct demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.