Skip to content

Commit

Permalink
Merge pull request #78 from Voog/77_disable_editing_auto_product_page
Browse files Browse the repository at this point in the history
Disallow editing product title and description (#78)
  • Loading branch information
tanelj authored Dec 20, 2021
2 parents dd3f726 + eec4a0f commit d386aef
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions layouts/auto_generated_product.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@
<div class="mar_0-32 flex_col t-sticky">
<div class="flex_row flex_a-center flex_j-space-between mar_b-64">
<div class="content-body content-formatted" data-search-indexing-allowed="true">
{% contentblock bind=product name="product_title" publish_default_content="true" %}
<h3>{{product.title}}</h3>
{% endcontentblock %}
<h3>
{{- product.title -}}
</h3>

{%- if product.out_of_stock? -%}
<div class="product_item-box--label mar_t-32">{{ "out_of_stock" | lc | escape_once }}</div>
Expand All @@ -76,9 +76,12 @@
</div>
</div>
<section class="content-body content-formatted js-buy-btn-content mar_32-0" data-search-indexing-allowed="true">
{% contentblock bind=product publish_default_content="true" %}
{{ product.description }}
{% endcontentblock %}
{%- if product.description != blank -%}
<div class="content-product-description">
{{- product.description -}}
</div>
{%- endif -%}
{% content bind=product %}
{% include "buy-button" %}
</section>
</div>
Expand Down

0 comments on commit d386aef

Please sign in to comment.