Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

removed unnessecary templates, use defaults as examples

  • Loading branch information...
commit 9213df65a9aa16ab31704802f439edb9f24f247e 1 parent 44a121b
Zenobius Jiricek authored
View
2  cmsplugin_configurableproduct/cms_plugins.py
@@ -22,6 +22,7 @@ class ProductCategories(CMSPluginBase):
name = _("List of Product Types")
render_template = os.path.join(TEMPLATE_BASE_PATH, "base.html")
default_template = os.path.join(PRODUCT_TYPE_TEMPLATE_PATH, "default.html")
+ admin_preview = False
def render(self, context, instance, placeholder):
objects = Product.objects.filter(active=True)
@@ -44,6 +45,7 @@ class CategoryProducts(CMSPluginBase):
name = _("List of Products")
render_template = os.path.join(TEMPLATE_BASE_PATH, "base.html")
default_template = os.path.join(PRODUCT_TYPE_TEMPLATE_PATH, "default.html")
+ admin_preview = False
def render(self, context, instance, placeholder):
products = Product.objects.filter(type__pk__in = instance.categories.all())
View
7 cmsplugin_configurableproduct/templates/cmsplugin_configurable_product/product-list/default.html
@@ -1,6 +1,7 @@
{% for Product in Products %}
<div id="product-{{ Product.id }}"
- data-product-type="{{ Product.type|slugify }}">
- {{ Product }}
-</div>
+ data-product-type="{{ Product.type|slugify }}"
+ class="product span6">
+ {% include 'cmsplugin_configurable_product/snippets/product-display-only.html' %}
+ </div>
{% endfor %}
View
5 cmsplugin_configurableproduct/templates/cmsplugin_configurable_product/product-list/two-column-grid.html
@@ -1,5 +0,0 @@
-{% for Product in Products %}
- <div class="product span8">
- {% include 'shop/plugins/configurable_product/snippet/display-only-small.html' %}
- </div>
-{% endfor %}
View
14 cmsplugin_configurableproduct/templates/cmsplugin_configurable_product/product-types/default.html
@@ -1,6 +1,12 @@
{% for Type in Types %}
-<div id="product-{{ Type.id }}"
- data-product-type="{{ Type.name|slugify }}">
- {{ Product }}
-</div>
+ <div class="product span8"
+ id="product-{{ Type.id }}"
+ data-product-type="{{ Type.name|slugify }}">
+
+ <div class="header">
+ <a href="{% url configurable_products_types Type.name|slugify %}">{{ Type }}</a>
+ </div>
+ <div class="description"></div>
+
+ </div>
{% endfor %}
View
8 cmsplugin_configurableproduct/templates/cmsplugin_configurable_product/product-types/two-column-grid.html
@@ -1,8 +0,0 @@
-{% for Type in Types %}
- <div class="product span8">
- <div class="header">
- <a href="{% url configurable_products_types Type.name|slugify %}">{{ Type }}</a>
- </div>
- <div class="description"></div>
- </div>
-{% endfor %}
Please sign in to comment.
Something went wrong with that request. Please try again.