No content to show
User Activity
The page where this code is being deployed is product.liquid.Like said it works but not inside the HTML element <option ..>
Hi Xythia, Would believe that you totally missed the problem.My problem is that this is not working{% if variant_id == my_variant %} selected{% endif %}I've done a test like this inside the for loop:{% if valueyouwant == bestselling %}got selected{% ...
Hi Xythia, Thanks for your input about the "deny" that is how it was before and it is working so is good for us. For the second one yes it is important to have variants without stock because we have another implementation that customer can get an ema...
05-04-2022
Hi,Trying to get the variant dropdown pre-selected with a product metafield.This is the code {% assign my_variant = product.metafields.global.best_selling_variant %}
{% if my_variant.inventory_quantity < 1 or my_variant.value = 'initial_setup' %}
...
Hi,Very likely the variable is a string so the best way to check if it got a value is this:{% if product.metafields.my_fields.case_size.value != null and product.metafields.my_fields.case_size.value != "" %} Hope it helps. Cheers,Gonkas
Hi, Would like to know if it is possible to change a metafield value from a checkbox status.For example:<p>Subscribe email? <input type="checkbox" id="email" name="mail"checked>{% assign product.metafields.my_namespace["my_key"].value = email.checke...
11-10-2021
Thanks both, it was extra {{ }}.Shopify should work that out but it doesn't so needs this "hack". Have a great day!
Hi,We are trying to return the true canonical value instead of an url with a search parameter.So instead of having something like this:[domain]/collections/jackets-coats?page=srnqqdjnmldWe would like to show something like this:[domain]/collections/j...
Hi,Does anyone knows which liquid page this code comes from (the code was obtained by "view Page Source" from Chrome browser)?<script>window.ShopifyPay = window.ShopifyPay || {};
window.ShopifyPay.apiHost = "shop.app\/pay";</script>
<script>(function...