Forum
Swimming Holidays - Perch Shop
Hi there,
We have a client that sell swimming holidays - https://thebigblueswim.com/ Currently they get users to fill out a long form
https://thebigblueswim.com/bookings/book-now.php
I am pretty confident we can use Perch shop to sell these holiday places. But we have a few stumbling blocks that maybe you could help with:
- They would need swimmers to be able to pay 20% deposit and then the remaining balance at a later date
- Also if a user is booking for two people how could we incorporate this. In terms of getting their Swim fitness and Emergency contact details.
- Also we have to give the customer the option of choosing a single room or double room. But if they choose a single its an extra cost. How could I add this onto the final cost?
Also if a customer books 4 places I would like to give them a discount as they are essentially buying in bulk.
Thanks for the help :-)
You could possibly manage that with two products. Assign a tag when the deposit is purchased, and use that to then make the balance product available.
That's on the roadmap as a feature - there's not currently direct support for it.
Those would probably just be variants.
Would you be selling other products? If not this could just be a promotion.
It sounds like you might be skirting on the edges so it would be worth taking a couple of hours to prototype before committing.
Regarding this point
If a customer chooses a single room the total cost would increase by an extra £100 I notice when we generate the variants there is an option to edit the price. But the total doesn't get updated.
Is there a way to update the total based on an option they choose?
What do you mean by the total in this context?
For example a Swim costs £780 but if they want a single room its a extra cost of £120 so if a customer chooses "Single Room" I need the total cost to be £900
That's correct, yes.
Ok, but how do I get these options to appear in my cart?
I have added the following to the
product.html
templateThen when I generate my variants I have edited the price for the single option (See image below)
https://www.awesomescreenshot.com/image/1534873/b104e00b528698b07fc67f1d4e51b65a
So when I view the product and choose the Single Room option and click
add to cart
the product variant doesnt appear in the cart.I am now added the following and its now working
Ok, great.
last week this was working,
But now all of a sudden it doesn't, when I try to add anything to the cart it brings up the message
Your cart is empty.
.This only started to happen when I did a dummy checkout to test the result page.
I have added
perch_shop_empty_cart();
to try and totally empty the cart but that didn't work.If I remove the product variants it will work.
On my product.html template I have added the following:
If I change this to the select box option
it will work to a point where I can see the cart but the product variant isn't being displayed and the price hasn't updated.
This is my full product.html template
Any ideas? I think its product variant related.
Thanks
"All of a sudden" is always a red flag - something has changed. Either data, code or environment. What's different between when it was working and now?
The difference is, I actually completed a full checkout to test the success page.
But, I stripped everything back (basically started again) took the code from your demo site (Nest) instead of the code from the documentation and it works brilliantly, did the full checkout a few times.
This is my first shop build and literally copy and pasted the code from the docs. But from copying the code from the demo site works much better (IMO).