shx-3d-render

main
Jan Umbach 2024-06-13 15:31:12 +02:00
parent 39f86d0131
commit dd987ab423
1 changed files with 6 additions and 5 deletions

View File

@ -1,12 +1,13 @@
<div id="shx-3d-render-input-container">
<style>.custom.form__label{margin-bottom: 0.6rem}.field.custom{margin-top:0}.custom .field__input{padding-top:0.8rem}</style>
<label class="form__label custom" for="your-label">Your label</label>
<div class="field custom">
<input class="field__input" form="{{ 'product-form-' | append: section.id }}" type="text" id="your-label" name="properties[Your label]">
</div>
</div>
{% if product.images.size > 0 %}
{% assign main_image = product.images.first %}
<img src="{{ main_image.src }}" alt="{{ main_image.alt }}">
<!-- Display the alt text -->
<p>Main Image Alt Text: {{ main_image.alt }}</p>
{% else %}