Caution: this is an advanced tutorial and is not supported by BookThatApp. Knowledge of web design languages such as HTML, CSS, Javascript and Liquid is required. We suggest hiring a Shopify Expert if you are not comfortable proceeding with the following tutorial.
The ability to capture a security bond/deposit is a standard features for merchants using booking widgets and are on the premium plan or higher. This code is useful if you are using the embedded booking forms or other custom solutions and want to customize your theme to capture a security bond.
Here are some links to sample code capturing a deposit product:
- Adds n security bond/deposit products to the cart, where n = the number of booking products. Get the code.
- Calculate security bond/deposit amount based on booking product amount total, then add the deposit variant that matches the amount (rounded up) to the cart. Get the code.
- Calculate security bond/deposit amount based on the booking product tags, then add the deposit variant that matches the amount (rounded up) to the cart. Get the code.
Comments
2 comments
Hi Zetya Support,
I have a question about your product. Would this following scenario be possible with your out of the box features + any of the sample code you outlined above:
I rent party equipment. A customer navigates to the site and purchases $3000 worth of rentals. They must pay a x% deposit. That deposit should be deducted as a pre-payment of their total invoice (remaining amount due). That invoice must also be paid be X date (based on configurable terms for products (globally or individually).
Is something like this possible?
Thanks,
JP
Hi JP
No sorry that is not possible given the way Shopify captures price and payment. Anything that impacts price needs to be set up as a variant in Shopify. The closest you can get is to create a series of tags that represent deposit values and assign these as a tag to the product. The payment side is managed at the time of checkout and the payment charged is the full value (or authorisation) of whatever is in the cart. They don't store credit cards so there is no provision to charge after the fact.
Your best bet is to charge a fully refundable deposit.
Thanks
Zetya Support
Please sign in to leave a comment.