A few questions – total_amount, booking name and custome database fields
-
Hi Jan
Please forgive me if I’m asking some dumb questions here. I’m new to WordPress and website development, but am enjoying the learning curve!
I’ve found your excellent plug in and would like to use it to manage bookings for a single holiday let that I own.
I’ve managed to get it all working except:
I cannot get the total_amount to calculate. I’ve read, and re-read your documentation, but just can’t get it to work. Could you clarify exactly what I need to enter in the Contact Form 7 booking form and email please?
Also, when Contact Form 7 sends an email confirmation, it correctly sends the booker’s name (your-name), but in the database the name always reverts to the single room name (booking).
The code for the Contact Form is:
[booking] <p>Your Name (required)<br /> [text* your-name] </p> <p>Address1 (required)<br /> [text* your-address1] </p> <p>Address2 (optional)<br /> [text your-address2] </p> <p>Postal Town / City (required)<br /> [text* your-postal_town] </p> <p>County(required)<br /> [select* your-county "Aberdeenshire"...."Worcestershire" ] </p> <p>Post Code / ZIP Code (required)<br /> [text* your-postcode] </p> <p>Your Email (required)<br /> [email* your-email] </p> <p>Your Telephone Number (optional)<br /> [tel your-phone] </p> <p>Your Country (required)<br /> [select* your-country "United Kingdom" ..."Zimbabwe"]] </p> <p>Your Preferred Language<br /> [select* your-language "ENG""FRA""ESP""DEU""ITA"] </p> <p>Check-in Date <br /> [text* start_date id:start_date] <p> <p>Check-out Date <br /> [text* end_date id:end_date] <p> <p>Number of Adults<br /> [select* number_of_persons id:number_of_persons "1" "2" "3" "4"]<p> <p>Amount Due<br /> [your-total_amount]<p> <p>Special Requests<br /> [textarea your-special_requirements] </p> <p>[recaptcha size:compact]<p> <p>[acceptance accept-this-1] By checking this box I confirm that I have read and accept the <a href="https://www.perrybarn.co.uk/about-us/termsconditions/" target="_blank">standard terms and conditions.</a><p> <p>[submit "Make Booking"]</p>
As you can see, I’ve also added some extra address and special requirements fields to the form and database, but again, although the email function correctly reports these, they do not appear in the database – the new columns are blank.
The database looks like this:
Column Type Null Default Comments id bigint(20) No name varchar(100) No your-address1 varchar(255) No address2 varchar(255) No postal_town varchar(255) No county varchar(255) No postcode varchar(10) No status int(11) No 0 start_date date No 0000-00-00 end_date date No 0000-00-00 email varchar(255) No phone varchar(20) No country varchar(50) No United Kingdom language varchar(10) No ENG uid varchar(500) No number_of_ persons int(11) No 0 special_ requirements varchar(255) No Indexes Keyname Type Unique Packed Column Cardinality Collation Null Comment PRIMARY BTREE Yes No id 2 A No
Sorry if that’s a lot of questions – but any help would be much appreciated.
Many thanks
Steve
- The topic ‘A few questions – total_amount, booking name and custome database fields’ is closed to new replies.