Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hello,
We need to change the default quantity shown in selector, instead "1", to a product.metafield (related to Master case units).
<input aria-label="{{ 'products.product.quantity' | t }}" id="quantity" type="number" name="quantity" value="1" />
Any liquid variable we put in "quantity" doesn´t work. For example:
<input aria-label="{{ 'products.product.quantity' | t }}" id="quantity" type="number" name="quantity" value="{{ 'product.metafields.my_fields.master_case_pack' }}" />
my_fields.master_case_pack is an Integer metafiled
Anyone knows how we could do it?
Thank you in advanced,
Solved! Go to the solution
This is an accepted solution.
Here is the error
replace
value="{{ 'product.metafields.my_fields.master_case_pack' }}"
with
value="{{ product.metafields.my_fields.master_case_pack }}"
This is an accepted solution.
Here is the error
replace
value="{{ 'product.metafields.my_fields.master_case_pack' }}"
with
value="{{ product.metafields.my_fields.master_case_pack }}"
That is. Thank you very much for your help.
Now, we need to "recommend" when the quantity selected is menor than Quantity box. Which is the variable "quantity" to compare with product.metafields.my_fields.master_case_pack ? I can´t find it in the code.
Thank you again
We recently spoke with Zopi developers @Zopi about how dropshipping businesses can enha...
By JasonH Oct 23, 2024A big shout out to all of the merchants who participated in our AMA with 2H Media: Holi...
By Jacqui Oct 21, 2024We want to take a moment to celebrate the incredible ways you all engage with the Shopi...
By JasonH Oct 15, 2024