Transportation is the Johku product type for boat, bus and other scheduled services that have a timetable and stops. A transportation product is based on a route with its stops, departure times and pricing between stops: the customer chooses the origin, the destination and the day, and Johku shows the departure times and the price automatically.
Before you start: a transportation product is put together from four parts, which are made in this order: 1) the route with its stops and zones, 2) connecting the route to the product, 3) the departure times and 4) the price rows between stops. You can find a ready-made transportation template in the Johku Product Library: Create a product from a ready-made template.
Create the product and the resource
Select Products and categories in the Johku admin, and then Create new....
Choose Transportation as the product type, enter a name and select OK.
On the Availability tab, create a resource for the product and enter the number of seats of the vehicle as the capacity.
Create the route, the zones and the stops
A route always runs in one direction, for example Rovaniemi-Oulu. The same route is added to a transportation product in the outward and the return direction, for example Rovaniemi-Oulu and Oulu-Rovaniemi. A transportation product can't have several routes in the same direction: create separate products for them.
A zone is most often a town, and it is used in pricing.
On the transportation product's Availability tab, select Route management.
Select New route, give the route a descriptive name based on its origin and destination (for example Rovaniemi-Oulu) and select OK. The route opens in a window of its own.
Open the Zones tab and create all the zones of the route one at a time: select Add, give a name (for example Rovaniemi, Kemi, Oulu) and select OK.
Go back to the Route tab and create the stops: select Add, enter the name of the stop and choose its zone from the drop-down menu.
Under Route details, enter the travel time in minutes from the start of the route to this stop. For the first stop, the origin, the time is 0 minutes. Example: Rovaniemi 0 min, Kemi 90 min, Oulu 160 min. The latitude and longitude fields are not used.
Select OK and repeat for the other stops. A route must have at least two stops. Save.
Connect the route to the product
On the transportation product's Availability tab, select Add route.
Choose the route from the drop-down menu and set the direction to Outward route.
Create a route of its own for the return direction (for example Oulu-Rovaniemi with its stops in reverse order) and connect it with the direction Return route. Then the customer can choose a one-way trip or a round trip.
Select OK and save. Only one outward route and one return route can be connected to a product.
Set the departure times
A departure time is the time when the transportation leaves the first stop of the route. The arrival time at each stop is calculated automatically from the stop's travel time.
On the Availability tab, select Add under Reservation start and end times.
Select Hourly reservations and enter the departure time.
If you like, limit the departure to certain weekdays or to a date range.
Choose the route this departure time applies to (outward).
Select OK and create all the departure times the same way. Also set the return route's own departure times, with the route selection Return route. Save.
Example: the departure times are 8 AM and 6 PM on weekdays and 1 PM on weekends, and the travel time of the Kemi stop is 90 minutes. When a customer books a trip from Rovaniemi to Kemi for a weekday, they choose the 8 AM or 6 PM departure, and the arrival time is automatically shown as 1.5 hours after the departure.
Create the prices between stops
A transportation product is priced with price rows for each pair of stops. If there is no price row for a pair of stops, the customer can't buy a trip between them.
On the Prices tab, select Add price row and give the row a name, for example Rovaniemi-Kemi.
Enter the Base price (inc. vat) for one direction and the Roundtrip price (inc. vat).
If you use price tiers (for example Adults, Children), set the base price and the roundtrip price to 0 and enter the prices in the tier-specific fields.
Add the conditions to the price row: the Route, and the origin zone and the destination zone that this price applies to.
Select OK and create price rows the same way for all the pairs of stops you sell. Save.
Test and publish
Enter the description texts and add at least a main image.
Preview the product on the storefront: choose different pairs of stops and check that the departure times and prices show correctly.
Select Published to all and the language version, and make sure the product is in a published category.
Now the customer chooses the origin, the destination, the type of trip (one-way or round trip) and the date on the product page. The departure and arrival times and the price show automatically based on your settings.
If something goes wrong
The customer can't buy a trip between certain stops. The pair of stops has no price row, or the zone conditions of the price row do not match the zones of the stops. Check both.
The product shows no departure times. The departure time is missing its route selection, or the route is not connected to the product on the Availability tab.
The arrival time looks wrong. The stop's travel time was entered incorrectly. The travel time is the time in minutes from the start of the route to this stop, not from the previous stop.
A round trip can't be chosen. The product is missing the route for the return direction, or the return route is missing its own departure times.