Hi!
I have a two part question:
PART 1
I’m adding shipping to a client’s webshop. But one some items aren’t allowed to be shipped. I’ve added data-item-shippable true or false to the products but the shipping is still available even though there is one or more products that may not be shipped.
Non shippable: Charcuterieschotel - Studio Smaak
Shippable: Salty crackers met paprika en rucola - Studio Smaak
How can I fix this? If the cart contains one or more non shippable items, this should be disabled as a whole.
PART 2
To complicate things even more(!) This extra functionality should be hidden if the user chooses to ship his order…
<payment section="top">
<fieldset class="snipcart-form__set">
<h3 class="options-title">Afhalen in de winkel (Markt 16, Oedelem)</h3>
<div class="snipcart-form__row" id="datepicker-wrapper">
<div class="snipcart-form__field snipcart-form__cell--tidy">
<a href="javascript:AddDatePicker()" id="kiesdatum" class="button-datepicker">Kies datum</a>
</div>
<div class="snipcart-form__field snipcart-form__cell--large" id="afhaal-datum">
<snipcart-label class="snipcart__font--tiny" for="ophaal-moment">Jouw afhaaldatum</snipcart-label>
<snipcart-input name="ophaal-moment" id="ophaalmoment"></snipcart-input>
<div style="display:none">
<snipcart-input name="ophaal-momentDEV" id="ophaalmomentDEV"></snipcart-input>
</div>
</div>
</div>
<br>
<h4 class="options-title">Wanneer kom je om jouw bestelling?</h4>
<p class="snipcart__font--tiny">Ophalen is enkel mogelijk tijdens de <a href="https://www.studiosmaak.be/contact" target="_blank" style="display: inline-block!important; text-decoration:underline" >openingsuren</a> en niet op maandag of zondagnamiddag</p>
<div class="snipcart-form__row" id="datepicker-wrapper">
<div class="snipcart-form__field">
<snipcart-radio name="ophaal-moment-dagdeel" value="voormiddag">
Voormiddag
</snipcart-radio>
<snipcart-radio name="ophaal-moment-dagdeel" value="namiddag">
Namiddag
</snipcart-radio>
</div>
</div>
</fieldset>
</payment>