PX Stay is a Joomla 6 hotel template that takes room and spa bookings with the PX Booking extension. This guide starts with the quickstart, the first settings and installing on an existing site, then covers styles, colours, fonts, module positions and the page blocks with the search bar of the home page. It explains the rooms, prices, seasons, extras, deposits and cancellation policies in PX Booking, the room finder of PX Filter and its SEO settings, and spa treatments by time slot. The last part is about checkout and My bookings, payments, e-mails and scheduled tasks, the journal with PX Editor, the newsletter and upgrades.
Overview
PX Stay is a Joomla 6 template for a boutique hotel, a guesthouse or a small resort that takes its own bookings. The quickstart installs the demo hotel PX Stay Riverside in Porto: a home page with an availability search, nine room types (26 rooms), a room finder, three spa treatments booked by time slot, the hotel, dining and about pages, a journal with 32 stories, a contact page, booking terms and a guest area. Replace the demo hotel with your own, or keep the structure and change the texts and photos.
- PX Booking: rooms by the night and treatments by time slot, live availability, rate plans, price rules, extras, coupons, deposits, cancellation policies, checkout, guest self-service and booking e-mails. See the PX Booking documentation.
- PX Filter: the Find a room page with filters for room type, guests, price, bed, view and size. See the PX Filter documentation.
- PX Editor: the article editor, with video, gallery, column, callout and button blocks for the journal. See the PX Editor documentation.
- PX Content: the page sections (hero, search bar, features, offers, reviews, team, timeline, FAQ…), edited on the page. See the PX Content documentation.
- T4 Framework 2.6.5: logo, fonts, colours, menus and layouts on one settings screen with a live preview.
- AcyMailing (Starter, free): the newsletter sign-up in the footer and in the journal.
Installation
System requirements
- Joomla 6 (the quickstart ships Joomla 6.2.2; PX Booking does not install on Joomla 5)
- PHP 8.3 or later (needed by PX Booking)
- MySQL 8.0.13+ or MariaDB 10.6+, InnoDB and utf8mb4
- Apache 2.4+ or Nginx 1.21+
memory_limitof 256M or more andmax_execution_timeof 120 seconds or more for the install- Joomla Scheduled Tasks running, best from a server cron job: holds and unpaid bookings expire through them, and reminders are sent by them
Install the quickstart
- Download the PX Stay Quickstart from your account on thepixel.dev.
- Create an empty database and a database user on your hosting.
- Upload the zip to the folder where the site will live, and extract it.
- Open your domain in the browser. The Joomla installer starts.
- Fill in the site name, your admin account and the database details, then click Install Joomla.
- When the installer finishes, click Remove "installation" folder.
The quickstart contains Joomla, the template, T4 Framework, PX Content, PX Booking, PX Filter, PX Editor, AcyMailing and the demo hotel. To get short URLs without index.php, rename htaccess.txt to .htaccess and turn on Use URL Rewriting in the Global Configuration.
First steps after the install
- System » Global Configuration » Server: set your time zone, and your sender address under Mail. Booking confirmations go out by e-mail.
- Components » PX Booking » Options: currency, seller name, address, e-mail and phone (they appear on invoices and in e-mails).
- Components » PX Booking » Catalog » Locations: open PX Stay Riverside and enter your hotel's name, address, phone, check-in and check-out times and time zone. All dates and times of the bookings use the time zone of the location, and it cannot be changed once the location has bookings, so set it first.
- Set up a cron job for the Scheduled Tasks (see E-mails and scheduled tasks).
The demo content
The journal stories are written by four demo writers (Inês Ferreira, Tiago Moreira, Clara Matos, Rui Almeida). Their accounts are blocked, have @example.com addresses and ids above 2000, so they never clash with the accounts of your site and nobody can log in with them. Your own admin account is the one you made in the installer. The guest reviews, numbers and offers on the pages are demo texts: replace them with your own before you open the site.
Install on an existing site
Install the packages in this order through System » Install » Extensions » Upload Package File:
- T4 Framework plugin 2.6.5 (the template needs it to run).
- PX Stay template.
- PX Content module (the page blocks of the template).
- PX Booking package.
- PX Filter package (optional, for the room finder).
- PX Editor package (optional, for the journal blocks).
A manual install gives you the template, its blocks and the booking pages, but not the demo hotel, menus and modules. Set px_stay - Default as the default style, create your location, rooms and prices in PX Booking (its setup wizard and sample data help), add a PX Booking » List of bookables menu item for the rooms, and place PX Content modules with the stay-* blocks in the positions listed below.
Template styles and settings
| Style | T4 layout | Used for |
|---|---|---|
| px_stay - Landing | home | The home page: hero, search bar and the home sections |
| px_stay - Default | default | Every other page: rooms, room pages, spa, the hotel, journal, contact, checkout, My bookings |
Choose the style of a page in its menu item (Template Style on the Details tab). Open a style to reach the T4 settings: Site Settings, Navigation, Theme, Layouts and Global Settings, with a live preview. Colours and fonts live in one shared T4 Theme profile, so a change shows in both styles.
Logo, fonts and colours
- Site Settings » Logo: your logo. The demo files are in
templates/px_stay/images/logo/:px-stay-logo.svg,px-stay-logo-light-bg.svgand the markpx-stay-mark.svg. - Typography: the demo uses Catamaran for text and Funnel Display for headings (Google Fonts).
- Theme: sage
#BEC794as the primary colour (buttons, the search band, tags) and ink#111B27as the secondary colour (dark bands and the footer), on white with light grey sections.
Header, home and footer positions
| Position | What the demo shows there |
|---|---|
header-r | The reception phone button and Book a stay (a Custom module, Header · Reception + booking: change the phone number and the link there) |
mega-1, mega-2 | The mega menu panels of Rooms & suites (block stay-mega) and Journal (latest stories) |
slideshow, section-1 … section-10 | The home page: hero, search bar, about, rooms, marquee, amenities, spa, offer, reviews, numbers, journal |
sidebar-l | The room filter (PX Filter module) on the room list and Find a room |
page-bottom-1 … page-bottom-3 | The sections under the main content of the inner pages: included in every stay, long-stay offer, guest reviews, other rooms, the dining and about sections, the contact FAQ |
off-canvas | The menu on phones |
footer-cta, footer-logo, footnav-1 … footnav-4, footer-mark, footer | Reception phone, about the hotel, the Visit, The hotel and Guests menus, the newsletter, the large wordmark and the copyright line |
Your own CSS
Use Tools » Edit Custom CSS in the T4 settings for small design changes. Your CSS is kept when you update the template.
Home page and page blocks
The sections of the pages are PX Content modules. Each module uses one block of the template; the blocks are named stay-* and live in templates/px_stay/blocks/. Log in on the site and double-click a text to change it on the page, or open the module in Content » Site Modules: the block's fields are on the Module tab, the heading above it on Section head.
| Block | What it shows | Used on |
|---|---|---|
stay-hero | Full-screen hero with a background film (YouTube or MP4/WebM) over a poster image, chips, title and text | Home |
stay-search | The availability bar: arrival, departure, guests, rooms and a row of promises | Home |
stay-content | Story section with photos, buttons and a counter, or a film still beside a list | Home, spa, dining |
stay-features | Heading, text and photo beside a grid of icon cells | Home, rooms, spa, dining |
stay-cta | Offer card with a tag, button and coupon code beside a photo | Home, rooms, spa, dining, about, contact |
stay-testimonials | Average score with stars beside review cards | Home, room and spa pages, about |
stay-stats | Large numbers with labels on a dark band | Home, the hotel, about |
stay-marquee | A looping row of large words split by icons | Home, dining |
stay-gallery | Photo grid that opens in a lightbox | Dining |
stay-timeline, stay-team | History in years, and the team with portraits | About |
stay-faq | Questions and answers beside a help card | Contact |
stay-mega | Photo tiles for a mega menu column | Rooms & suites menu |
stay-rooms | Room cards with size, highlight, price and rating, filled by hand | Not used in the demo (the home page lists the rooms with the PX Booking - Bookables module, so prices stay up to date) |
The rooms on the home page and the You might also like row on the room pages are PX Booking - Bookables modules; the journal row on the home page is an Articles module.
The search bar on the home page
stay-search block: 1 the availability bar.The bar is a plain form: Check availability opens the room list with arrival, departure, adults and rooms in the URL, and the list shows which rooms are free for those dates and what the stay costs. The date fields use the PX Booking date picker and start at today.
- 1 The module uses the Stay Search block.
- 2 Results page (menu item): the PX Booking list the search opens (Rooms & suites in the demo). Empty: the first published List of bookables menu item.
The Promises tab holds the short lines under the bar. The bar offers 1 to 6 adults per room and 1 to 5 rooms; the room list then shows which rooms can take that many guests on those dates.
Rooms and suites (PX Booking)
Rooms, suites and spa treatments are bookable items of PX Booking. The demo has one location (PX Stay Riverside), nine room types in the categories Rooms and Suites booked per night, and three treatments in Spa & Wellness booked by time slot. Each room page is a menu item under Rooms & suites, so it gets its own URL and appears in the menu.
- 1 The tabs of a room: General (location, per night, confirmation, the description shown on the room page), Pricing (price per night, deposit), Booking rules (minimum and maximum stay, guests, cancellation policy), Resources / Units (the rooms of this type: Room 101, Room 102…), Images (the room gallery) and Fields.
- 2 Applies to this item: the rate plans and price rules that change the price of this room, each one link away.
- Size, bed and view on the room cards and room pages are custom fields of the bookable items (Catalog » Bookable fields: Size, Bed, View). PX Filter uses the same fields for its filters.
- Units: one unit per real room. A room type with 3 units can be booked three times for the same night; the availability search counts free units.
- Deposit: 30% at booking for the rooms and suites, the first night for the Riverside Penthouse, nothing for the spa. The balance is due before arrival; PX Booking sends a reminder.
- Cancellation policies (Pricing » Cancellation policies): Flexible stay (free up to 7 days before arrival, 50% back until 48 hours), Suite stay (free up to 14 days, 50% back until 7 days) and Spa appointments (free up to 24 hours). Guests see the policy on the room page and at checkout.
Prices, seasons and offers
- 1 Pricing has the price calendar (Prices and availability), rate plans, price rules, coupons, taxes and cancellation policies.
- 2 The price rules of the demo, for every room of the location: Weekend nights (Friday and Saturday nights +15%), Festive season (20 December to 5 January +25%), Extra guest ($25 per extra guest per night), Stay 5, save 10% and Early bird (−8% when you book 60 days ahead).
Change the dates of Festive season every year, or add a season rule per period. Each room also has a default rate plan, Flexible rate (deposit now, the rest at the hotel). Other items of Pricing: the tax VAT & service (10%, added on top: the room prices are shown before tax), and the coupon WELCOME10 (10% off the first booking of a guest, extras excluded) that the offer blocks show. Extras are in Catalog » Extras: breakfast on the terrace ($18 per person per night), airport transfer, late check-out, romance set-up and, for the spa, an aromatherapy oil upgrade.
Every price is in the currency of PX Booking » Options (USD in the demo). The full price order, rate plans and the price diagnostics are in the PX Booking documentation.
The room page
- 1 Guests pick dates in the calendar (free, few left or fully booked per night), adults, rooms and the ages of children, then Check availability.
- 2 The price of the stay with every rule, the tax, the deposit now and the balance later.
- 3 Reserve holds the room for 15 minutes and opens the checkout.
The header of the room page shows the price from, size, bed, view and number of guests; below come the gallery, the description, the facilities list (from the description) and Good to know with check-in times, the cancellation policy and the address with a map link. The template draws these pages with its own overrides in templates/px_stay/html/com_pxbooking/.
Room finder (PX Filter)
The Find a room page and the sidebar of Rooms & suites are PX Filter. The filter Rooms & suites (Components » PX Filter » Filters) reads the PX Booking rooms (categories Rooms and Suites) and shows them with photo, title, room type, facts and price.
Six facets: Room type (category), Guests, Price per night (range), Bed, View and Size (the custom fields). Every choice has its own URL, such as /find-a-room/guests-3. Add a facet, or change a label or the order, in Facets. When you save a room, PX Filter indexes it right away; add the task PX Filter - Process queue (every 5 to 15 minutes) in System » Scheduled Tasks so larger changes are indexed too, and use PX Filter » Index » Rebuild index after an import.
1 SEO: only Room type may give indexable pages in the demo. Search engines would otherwise crawl every combination of filters, so keep it that way:
- In PX Filter » Options, keep Index filtered pages with at most N values low (the default 1): a page with one value can be indexed, every combination of two or more values gets
noindexand stays out of the sitemap. - Keep Filter links rel=nofollow on. If bots still crawl deep combinations, set Reject URLs with more than N values to answer them with 404 or 410.
- Mark a facet as SEO facet only when its pages are worth finding on their own (Suites in Porto is, 2 guests and a king bed and a garden view is not).
More in the PX Filter SEO documentation.
Spa treatments by time slot
The Spa menu item is a second PX Booking list that shows only the items booked by time slot. The three treatments (60, 90 and 45 minutes) have a price per session, start every 30 minutes and are given by the therapists Ana Sousa, Marta Lopes and Joana Reis in two treatment rooms. These are resources of PX Booking (Catalog » Resources): staff with their own working hours and rooms that can only hold one treatment at a time.
- 1 Guests pick a day and a therapist, or Anyone available.
- 2 The free times of that day, in the time zone of the location. A click reserves the time and opens the checkout.
The opening hours of the location (9:00 to 21:00 in the demo) and the working hours of each therapist decide which times are offered. Use the same set-up for cooking classes, tours or any service with set times.
Checkout and My bookings
The checkout has three steps: dates and room, your details and payment, confirmation. Guests enter name, e-mail and phone, add extras, apply a coupon, accept that their data is used for the booking and click Place booking. No account is needed. The confirmation page shows the booking number, how to pay, the price, buttons to add the stay to a calendar and, while the policy allows it, a cancel button.
My bookings (menu Guests and the footer) lists the stays and spa appointments of a logged-in guest. Guests who booked without an account open the link in their confirmation e-mail, or have it sent again from this page. Checkout, booking and invoice pages are shown under this menu item: PX Booking » Options » Menu item for booking pages points to it.
The Booking terms page explains deposits, payment, cancellation, check-in times and the child policy; write your own before you open bookings.
Payments
Payment methods are plugins of the group pxbookingpayment (System » Plugins, search PX Booking):
| Plugin | In the quickstart | Settings |
|---|---|---|
| Bank transfer / pay on site | On | Payment time (hours): unpaid bookings are cancelled after this time (48 in the demo). Instructions: your bank details or how to pay at the hotel, per language. Record the money in the booking with Record payment. |
| Stripe | Off | Test and live secret keys and webhook secrets |
| PayPal | Off | Sandbox and live client id, secret and webhook id |
Keys are entered by you, the site owner, in your own administrator. Test with the test or sandbox keys first, then switch the plugin to live. The webhook URLs and steps are in the PX Booking documentation.
E-mails and scheduled tasks
PX Booking sends 22 e-mails: booking received and confirmed, payment received, payment link, balance due, reminder, rescheduled, cancelled, refunded, the link to a booking and the notices for your staff. Edit their texts in System » Mail Templates (filter PX Booking). Set the sender in System » Global Configuration » Server » Mail and test that your site can send e-mail before you take bookings.
The quickstart has the PX Booking tasks in System » Scheduled Tasks: expire holds and unpaid bookings (every minute), booking reminders, balance reminders, approval reminders, retries of failed e-mails, payment reconciliation, iCal sync, webhooks and the daily availability horizon. Joomla runs them while people visit the site; for exact timing add a server cron job that calls the Joomla scheduler, as described in the Joomla documentation.
Journal (PX Editor)
The journal is a Joomla category blog (Journal) with the sub-categories Food & drink, Old town, Travel guides, The house, Video stories and Photo galleries; the buttons above the list switch between them. Articles are written with PX Editor, the default editor of the quickstart.
1 A video block: paste a YouTube or Vimeo link and PX Editor shows the poster; the player loads only when a visitor presses play. Photo stories use the gallery block (a grid of photos that opens in a lightbox). Columns, callouts, buttons and the share bar are blocks too; the article PX Editor showcase (footer menu) shows them all.
The Related stories row under a story and the journal row on the home page are Articles modules.
Frequently asked questions
Can I use my own room photos and texts?
Yes. Room texts and photos are in the bookable items (General and Images tabs), the page sections in the PX Content modules, the hotel details in the location. The demo photos are only for the demo; replace them with photos of your house.
Can I run more than one hotel?
Yes. Add a location per house in Catalog » Locations, each with its own address, time zone and opening hours, and assign the rooms to it. Price rules, taxes and coupons can be limited to a location.
Can I sync with Booking.com or Airbnb?
PX Booking imports and exports iCal calendars (Connections), so a room booked on another channel is blocked on your site and the other way round.
Can I use the template without PX Booking?
The rooms, the spa, the search bar, checkout and My bookings come from PX Booking. The hotel, dining, journal and contact pages work without it.
Upgrade
When a new version is out, Joomla shows it under System » Update » Extensions. Download the new Template, PX Booking or PX Filter package from your account on thepixel.dev and install it over the current one through System » Install » Extensions. Your rooms, prices, bookings, modules, template settings and Custom CSS stay. Make a backup first, and update the T4 Framework plugin or the PX Content module only when the release notes ask for it.