Personalized checkout and custom promotions with Shopify Scripts
Hi Guys,
I'm trying to add a custom field on product page with custom price rules on Dawn Theme.
The fields are already done, but I want to increase a custom price rules.
For example: If I choose option 02, it increases 10$ to the price. If I choose option 1, it keeps the same price as before.
Here is the code of the custom fields:
<div class="product-form__input product-form__input--dropdown"> <label class="form__label" for="childsName">Deseja personalizar? </label> <div class="select"> <select class="select__select" onchange="yesnoCheck(this);" required> <option value="no">Não</option> <option value="yes">Sim (+ R$29,90)</option> </select> {% render 'icon-caret' %} </div> </div> <div id="ifYes" style="display: none;"> <label class="form__label" for="personalizacao-nome">Nome:</label> <input class="field__input-2" id="personalizacao-nome" type="text" maxlength="25" name="properties[Nome]" form="product-form-{{ section.id }}"> <label class="form__label" for="personalizacao-numero">Número:</label> <input class="field__input-2"id="personalizacao-numero" type="number" min="0" max="99" name="properties[Numero]" form="product-form-{{ section.id }}"> </div>
Live version: https://godzillasports.myshopify.com/
Pass: 12345
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024