{% include ‘product-preview-image’ with media: variant_media, featured_media: featured, gallery_type: ‘media’, data_image: ‘data-variant-media-image’ %}
{%- endif -%}
{% endfor %}
{%- endunless -%}
{% unless featured_media and variant_media_ids contains featured_media.id %}
{% include ‘product-preview-image’ with media: featured_media, featured_media: true, gallery_type: ‘media’, data_image: ‘data-variant-media-image’ %}
{%- endunless -%}
{% include ‘shopify-xr-button’ %}
{% comment %}
Product Form & Description
{% endcomment %}
{% if section.settings.show_vendor %} {{ product.vendor }}
{% endif %}
{{ product.title }}
{{ ‘products.product.sale_price’ | t }} {{ ‘products.product.price’ | t }} {{ current_variant.price | money }}
{{ ‘products.product.regular_price’ | t }} {{ current_variant.compare_at_price | money }}
{% include ‘product-unit-price’, variant: current_variant %}
{%- if shop.taxes_included or shop.shipping_policy.body != blank -%}
{%- if shop.taxes_included -%}
{{ 'products.product.include_taxes' | t }}
{%- endif -%}
{%- if shop.shipping_policy.body != blank -%}
{{ 'products.product.shipping_policy_html' | t: link: shop.shipping_policy.url }}
{%- endif -%}
{%- endif -%}
{{ product.description }}
Votre prénom
{% include ‘product-form’ %}
{% if section.settings.show_share_buttons %}
{% if settings.share_facebook or settings.share_twitter or settings.share_pinterest %}
{% endcomment %}
{%- if product.media.size > 1 -%}
{% comment %}
If we are hiding variant media which are displayed at the top of the
page, then find total number media not set as a variant media or as the
featured media.
We need the total number of media to be displayed so that we know what
arrangement the media need to be positioned in, i.e. rows of 3 or 2
media.
{% endcomment %}
{% comment %}
Insert images into rows of 3 and/or 2 depending on the total number of
images.
{% endcomment %}
{% assign total_modulus = total_media | modulo: 3 %}
When pasting code there is an “insert code” formatting button, please avoid pasting very big files, and files in their entirety that belong to a theme.
The keyword here is form if you have a similar issue be sure to look in all related included snippets|files inside the product template for the relevant form tags
I am having trouble with my customization product templates. It shows up for the first variant but disappears for the rest. This is required for my customers, how do I make it appear for all variants?
@Saeadamas looked at your site and the code location is unchanged, you may need to reread the directions and find the right location or use the form attribute method.
I have implemented this and its all working. Still need to tweak a little to make them mandatory etc.
The issue I am having is with the upload file function. It works, however, when a customer uploads an image and we get it in the order. Its a webp file and is majorly compressed beyond usability. Is there any way to stop the compression etc so we can get a usable image from the customer?
Do a test order and verify it’s not something the customer is doing unknowingly for the image size.
Normally when you click the thumb, in the orders page, for a file upload image it should then automatically download a normal sized version in WebP format.
If it seems corrupted you may have download the small thumb, outdated software, or just need to use a utility to convert it to png.
If you are clicking the small thumbnail and choosing ‘Save Image as’ what you want to do instead is right click and choose ‘Save link as’ that will let save it as a jpeg if that’s what was uploaded.
Some browsers will also let you change the image type in the save dialog.
Copy the link and append the url with ?format=jpeg
Alternatively use a browser that doesn’t support WebP , such as safari for macOS, and it will just download as a jpeg.
If none of the above work and WebP is compression images too badly then contact shopify support and let them know about this limitation.
Beyond that for the future you will want to make losslessly converting WebP into the desired format part of your image processing pipeline
Hi Paul, could you assist on how to have my 3 options to be on the same line? Also, I would like the dropdown box background colour to be #000000 with the words in #FAEBD7. Thank you in advance!
@GeraldLee that’s a design issue separate from the customization you’ll want to make a different post in the design forum for extended structural andlstyling help.
I tried to do this but I couldn’t find type=“submit” in my code. I have a paid app currently to give me this custom text box. Do I need to remove the app and try again?
For whatever reason I am unable to create a test order, but I am curious if I add this property field, fr example in my case I want to have email address associated with a product, once the order is placed where will I as an admin be able to see the email address that the buyer entered on the product page? will it be in the additional information area?
Are you offering a privet service to make this customization in the Shopify site?
Since there are changes in the Shopify temple and I’m not a programmer I wonder if it’s possible to get you or one of your team to create it on my site.
Please, let me know if you’re offering a privet service I’ll be glad to hear from you and I will explain exactly what I need.
If yes, can you please reach me at -boolly@gmail.com, and please let me know here your name so I’ll know to recognize you in my email’s traffic.
I’m with Minimal theme. I’ve added customisation on my product but it will not show up in cart even after adding in code that was recommended here.
Please help me
Thanks for the reply, but I am trying to put the information in on the seller’s end. We are using multivendor marketplace, and we have multiple sellers. I want to make sure they all include the correct information about their listed products, but I don’t know how to add more fields for sellers to fill out.
I made it work on my product page and I can see the “Engraving” Section on my product page however, after receiving the order, I cant see it in my order details so I dont know where does this section locate to when customers fill it in.
Can anyone help me with that as well ?
P.s. I have done everything with the Carts and updated the necessary codes.
Please i need help, i don’t know where else to serch to look up
Thank you for such an easy to use tutorial. I am a complete novice to this and found it very straight forward.
However I have an issue. All of the products I will be selling will have completely different personalisation requirements. If I follow your instructions they change the product-template.liquid and it puts the personalisation field exactly were I want it. But if I go to create new product templates I get a screen that looks like below:
{% comment %}
The contents of the product.liquid template can be found in /sections/product-template.liquid
{% endcomment %}
{% section ‘product-template’ %}
{% section ‘product-recommendations’ %}
Which is linked to product-template.liquid the only way I can workout to put in the new personalisation fields is putting it just under {% section ‘product-template’ %} this then puts the personalisation field under the item description and once added to cart it doesn’t show the required personalisation as it does by doing via product-template.liquid.
I hope this makes sense I suspect its me missing something.
Thank you for the tutorial. I am trying to add the customization to the email template. I have 4 line properties for my products. When I add the following code to the templates, all my line properties show us as one line (ie -Line 1: xxxx-Line 2: xxxx-Line 3: xxxx
{{ line.title }}{% for p in line.properties %}{% unless p.last == blank %} - {{ p.first }}: {{ p.last }}{% endunless %}{% endfor %}
How do I break the line properties in the email to show across multiple lines. For example: