Skip to content

Commit eec4a0f

Browse files
committed
Disallow editing product title and description
Closes #77
1 parent dd3f726 commit eec4a0f

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

layouts/auto_generated_product.tpl

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@
6565
<div class="mar_0-32 flex_col t-sticky">
6666
<div class="flex_row flex_a-center flex_j-space-between mar_b-64">
6767
<div class="content-body content-formatted" data-search-indexing-allowed="true">
68-
{% contentblock bind=product name="product_title" publish_default_content="true" %}
69-
<h3>{{product.title}}</h3>
70-
{% endcontentblock %}
68+
<h3>
69+
{{- product.title -}}
70+
</h3>
7171

7272
{%- if product.out_of_stock? -%}
7373
<div class="product_item-box--label mar_t-32">{{ "out_of_stock" | lc | escape_once }}</div>
@@ -76,9 +76,12 @@
7676
</div>
7777
</div>
7878
<section class="content-body content-formatted js-buy-btn-content mar_32-0" data-search-indexing-allowed="true">
79-
{% contentblock bind=product publish_default_content="true" %}
80-
{{ product.description }}
81-
{% endcontentblock %}
79+
{%- if product.description != blank -%}
80+
<div class="content-product-description">
81+
{{- product.description -}}
82+
</div>
83+
{%- endif -%}
84+
{% content bind=product %}
8285
{% include "buy-button" %}
8386
</section>
8487
</div>

0 commit comments

Comments
 (0)