How to enable upload fields in 'featured product' sections
To support featured product sections, a slightly different embed code needs to be used, which encodes the product data to allow UploadKit to determine whether each field should show up.
This should be placed inside the product form in sections/featured-product.liquid.
If that template doesn't exist, it may have another name, and if you can't find the product form, check inside a liquid {% include ... %}
.
Steps to follow:
1. Go to your Shopify Admin
2. Navigate to Online Store
3. Select Themes
4. Navigate to Actions
5. Click on Edit code
6. Locate sections/featured-product.liquid and paste this code
<div class="uploadkit" data-uploadkit-product-json="{{ all_products[product.handle] | json | escape }}" data-uploadkit-collections-json="{{ product.collections | json | escape }}"></div> <script defer src="https://assets.getuploadkit.com/assets/uploadkit-app.js"></script>
7. Click Save to save the changes
Note:
<form></form> {% form %}{% endform %}