Hi there!
is it possible to set a min. order value for the checkout step?
i need something like this:
if the cart order value is lower then 30€ then there is no checkout.
thank you very much
Hi there!
is it possible to set a min. order value for the checkout step?
i need something like this:
if the cart order value is lower then 30€ then there is no checkout.
thank you very much
Hi @AUTeddy, thanks for reaching out
We do not have this at the moment, but feel free to open a feature request!
Let me know if we can help with anything else.
Thanks.
I worked out a easy solution with a template override from the cart section.
<div v-if="cart.total >= 30 ">
<!-- BUTTON: checkout -->
<button-primary
label="actions.checkout"
icon="continue-arrow"
:state="checkoutDisabled ? 'disabled' : undefined"
@click="checkout"
></button-primary>
<button-link
v-if="isSideCart"
label="cart.view_detailed_cart"
@click="viewDetailedCart"
></button-link>
</div>
<div v-else>
<button
type="button"
class="
snipcart-button-danger snipcart-base-button
is-icon-right
"
style="margin-top: 16px"
>
<div class="snipcart-base-button__wrapper">
<div class="snipcart-base-button__label">
Mindestbestellwert von 30,00 € noch nicht erreicht
</div>
</div>
</button>
</div>
I had the same issue but used the steps detailed in the solution to the question posted here:
But changed the value from cart.items.count to cart.total. Like this:
<button-primary
label=“actions.checkout”
icon=“continue-arrow”
label-error=“Minimum order value of £300 not met”
:disabled=“checkoutDisabled || cart.total < 300 ? true : undefined”
:state=“cart.total < 300 ? ‘error’ : undefined”
@click=“checkout”