Fixed price for data-item-custom-options

Is it possible to set fixed pricing for data-item-custom-options? Without the (+) plus sign the data still adds. It’s really hard to recompute price difference from each. I hope if we put + and - sign, that’s the time we can set price difference.

data-item-custom1-name="Frame color"
data-item-custom1-options="Black[50]|Brown[100.00]|Gold[300.00]">
1 Like

Hi @cyrilnicko

You can set the base product price to 0, and only set the prices in the variations, something like:

  <button
        class="snipcart-add-item"
        data-item-id="variated"
        data-item-price="0"
        data-item-description="High-quality replica of The Starry Night by the Dutch post-impressionist painter Vincent van Gogh."
        data-item-image="https://source.unsplash.com/random"
        data-item-name="The Starry Night"
        data-item-custom1-name="Frame color"
        data-item-custom1-options="Black[+35]|Brown[+44]|Gold[+45]"
      >
        Variation full price
      </button>

Thanks.

Oh. I’m too dumb . Thank you

1 Like

Hello. I just found out that this method will not work on checkout because there is price validation. It seems we can’t set the price at zero. Let me know if there is workaround.