Change price with checkbox

Hi,
how can I add a value to the base price with the new checkbox?
On the older version it worked like: data-item-custom3-options="true[+35.00]|false"

Cheers

Hey @KDJFS,

In our old version, if you would add data-item-custom3-options="true|false" it would automatically set it as a checkbox, and if you wanted the price to change then data-item-custom3-options="true[+35.00]|false" would turn the checkbox into the dropdown and would no longer be a checkbox. Similarly, in v3 you won’t be able to use a checkbox to change the price when checked, it has to be a dropdown. So you would need to do something like below which would create a dropdown for true and false and change the price when true is selected.

<button
class=“snipcart-add-item”
data-item-id=“starry-night”
data-item-price=“20.00”
data-item-description=“High-quality replica of The Starry Night by the Dutch post-impressionist painter Vincent van Gogh.”
data-item-image="/assets/images/starry-night.jpg"
data-item-name=“The Starry Night”

data-item-custom3-name="Gift"
data-item-custom3-options="true[+35.00]|false">

testing true false

</button>

Hey @ppanth,
thank you very much for your answer.
Thats not so nice to hear that I can’t use further a pricechange with a checkbox.
I think a dropdown is there a wrong element in the usability view.
Btw. thanks!

Cheers