This is a wordpress plugin to allow booking with the Taxicode API, using Stripe for payments.
You will need public and private API keys for Taxicode, and an appropriate public API key for Stripe. Please contact support@taxicode.com to get these - without the correct keys, supplied by Taxicode, this plugin will not work.
This plugin will only work under HTTPS.
It is expected that any given install of this plugin will want to make modifications to fit with theme etc etc.
Out of the box, it ships with markup suitable for Bootstrap 4, and an npm-based build system.
- Pre-configured webpack config
- Babel loader, Vue loader, CSS and LESS loader
- Separate
vendor.jswith all vendor scripts - Uglify JS for production
- Separate
frontend.jsandadmin.js - Extracted CSS/LESS to separate
frontend.css(named vendor.css) andadmin.cssfiles. - Auto reloading with Browser with Browsersync (config)
- Vue and Vue Router
- Frontend (shortcode) and Backend starter app
- Modern PHP codebase with namespace support
- Clone this repository in your plugins folder
- Activate the plugin
- Add the appropriate keys in the plugin
- Add the shortcode [taxicode-app] to the page you want to run this plugin inside.
This is relatively simple, even for people without Vue.JS experience. The search form, and results template can be found at src/frontend/pages/templates/Home.html The payment form can be found at src/frontend/pages/templates/Checkout.html The confirmation page can be found src/frontend/pages/templates/Complete.html
As long as field ID names and all the vue specific references are preserved, operation should continue quite easily - essentially, add you can add any class names your theme requires.
Alternatively, you can simply add "style" blocks below the "script" blocks in each Vue component, to apply custom styles there, as per the vue.js docs.
After making any modifications, while in the plugin base folder (ie. wp-content/plugins/taxicode) simply:
- Run
npm install - On a dev system, run
npm run dev🤘 - On a production system, run
npm run build👍
This plugin currently makes use of vue-bootstrap (https://bootstrap-vue.org/) for datepicker, timepicker, and icon elements, and https://github.com/francoislevesque/vue-braintree to manage the paypal integrations.