Yatra WordPress Plugin

Installation of Yatra

The installation of Yatra WordPress Travel plugin is quite easy. You can follow the following steps to install the yatra plugin.

  • Go to plugin area of your admin panel
  • Click on add new button
  • Type Yatra search box
  • Click on install button and wait for a couple of seconds and click on activate button

Yeyy, Yatra plugin successfully installed on your website.

Here is the installation video tutorial:

Yatra Settings

After installation of the Yatra WordPress Travel Agency plugin, here are major settings for it.

You can navigate Tour -> Settings to check it’s setting.

Design Setting

General:
  • Currency & symbol: Currency & symbol setting let you change the default currency for your tour packages. By default Dollar ( $ ) is default currency and symbol.
  • Book Now Button Text: This option lets you change the book now button text for the tour package booking button for frontend.
  • Book Now loading text: This option lets you change the book now loading text. It’ll appear when you click on the book now button on the frontend. This text label will only appear after book button press.
  • Update cart button text: This option lets you change the update cart button text on the yatra cart page.
  • Proceed to checkout text: This option lets you change the proceed to checkout button text on the yatra cart page.
  • Order booking text: This option lets you change the order booking button text on the yatra checkout page.
Page:
  • Cart Page: You can select a cart page for your tour booking system. By default, Yatra will automatically create a cart page and insert its shortcode ( [yatra_cart] ) on installation. But you can create your own page with cart shortcode and select that page from here.
  • Checkout Page: You can select the checkout page for your tour booking system. By default, Yatra will automatically create a checkout page and insert its shortcode ( [yatra_checkout]) on installation. But you can create your own page with a checkout shortcode and select that page from here.
  • My Account Page: My account page will work as a profile of yatra customers You can select my account page for your website. By default, Yatra will automatically create an account page and insert its shortcode ( [yatra_my_account] ). on installation. But you can create your own page with account shortcode and select that page from here.
  • Thank you page: This page will work as booking successful notification page.
  • Transaction failed page: If there is any payment method selected and when someone tries to book a tour package but failed, this page will appear as a transaction failed message. You can create a new one or can use an existing one from here.
  • Terms and conditions page: This option allows you to add your terms and condition page.
CSS Classes:
  • Page Container Class: This option allows you to add a class for all Yatra frontend pages, so that yatra pages will compatible with your theme container.

Emails

General( CSS Classes):
  • Disable all emails: If you want to disable all emails from yatra plugin, you can check this option.
  • “From” name: This option allows you to edit email from name for all yatra emails.
  • “From” email address: This option allows you to edit from email address for all yatra emails.
Booking Notification:
  • Enable booking notification email for customer: This option allows you to enable/disable booking email notification for yatra customers.
  • Email Subject for customer: This option allows you to update the email subject for all yatra emails for customers.
  • Email Content for customer: This option allows you to edit booking email content for customers. You can change email content as per your requirements. Here you can use smart tags for a more advanced email template. Here is the list of smart tags and their usages.

{{home_url}} : Get home page URL
{{blog_info}} : Get blog info of a website
{{booking_code}} : Get booking code of specific booking
{{booking_status}} : Get current booking status of a specific booking
{{tour_lists}} : Get booked tour lists of a specific booking
{{customer_name}} : Get customer name of specific booking
{{customer_email}} : Get customer email of specific booking

Checkout

Checkout Settings:
  • Enable Guest Checkout: This option allows you to checkout without login. Users will not be created if you tick this option.

Payment Gateways

General( Payment Gateways General Settings):
  • Test Mode: While in test mode no live transactions are processed. To fully use test mode, you must have a sandbox (test) account for the payment gateway you are testing.
  • Payment Gateways: You can choose any of the payment gateways from the list. Just check any of the gateways from the right side.
PayPal Standard:
  • PayPal Email Address: To use PayPal payment gateway you need to check PayPal from payment gateway general settings and update your PayPal email address here so that you will get all booking payments into your PayPal account.

Activity & Destination

Yatra WordPress Travel plugin has different type of tour category. eg: activity, destination, etc. You can create those categories to separate different types of tour packages.

Activity:

You can create an activity from Tour->Activity menu.

Destination:

You can create an activity from Tour->Destination menu.

Custom Attributes

The custom attribute is the most advanced & powerful feature of a yatra WordPress plugin. This feature allows you to add different types of custom attributes for your tour packages. For example, if you are creating trip packages for Himalaya Trip, you might need height, temperature, etc on your tour options. You can add those attributes from this section and assign their value while creating tour packages. You can choose whether the field is text or textarea or even shortcode too.

Create a new tour

Creating a new tour/trip package is quite easy in the Yatra plugin. First, just navigate the Tour menu and go to add new and follow following steps:

Title: You can give your trip/tour title here.

Description: You can give a trip/tour description here. The tour introduction part goes here.

Tour Additional Parts:

Tour Options:

Price Per: This option lets you choose a group or person tour so that you can manage your pricing. If you choose a person from there pricing will be applied for whole tour but if you choose a group from there pricing will be applied as like this: total number of the person(Group Size) * tour price (discounted price if the discount applied).

Group Size: This option lets you input total number of people for each tour. Booking will work if someone input larger than this group size. But this field will help to calculate the total price for each booking.

Total Price( Regular ): Regular price is a normal price for a single tour, but it applied as a regular price if there is zero ( 0 ) or null on discounted price.

Tour Price ( Sales): This is a discounted price ( if available ) for a trip. If you put any amount here, the yatra will treat as a discounted price for that tour package and calculated with this price for all transactions.

Tour Duration Days: This is the total tour package duration days for one trip. And this is just a number of days. Eg: 10 or 11 or 15 etc.

Tour Duration Night: This is the total tour package duration night for one trip. And this is just a number of the night. Eg. 10 or 11 or 15 etc.

Country: This field is for the country for your tour package. If you plan to make multiple country tours then you can select more than one country from here.

Feature this tour: If you want to feature your tour on frontend feature widget or via shortcode then you need to check this option.

Attributes:

Attributes are the most powerful features of the Yatra WordPress plugin. You can add extra custom attributes for your single trip. Example: if you are making a trip package for mountain traveling then you might need to show height, temperature etc information to your website visitor. And this is really easy via custom attributes. Just make height and temperature custom attributes from attributes tab of the main menu under Tour menu and create new tour then go to attribute tab then add new attribute as follows:

Yatra tour attribute
Selected attributes and their values

Shortcodes of Yatra plugin

Yatra plugin has the following shortcodes and their attributes. If you copy the following shortcode, please paste as plain text into your editor.

Shortcode for Checkout Page:

[yatra_checkout]
Yatra Checkout Page

Shortcode for Cart Page:

[yatra_cart]
Yatra Cart Page

Shortcode for My Account Page:

[yatra_my_account]
Yatra My Account Page

Shortcode for Activity Listing:

[yatra_activity order="desc"]

Shortcode for Destination Listing:

[yatra_destination order="desc"]

Shortcode for Discount & Deals Listing:

[yatra_discount_and_deals order="asc"]

Shortcode for Tour Listing:

[yatra_tour order="asc" featured="1"]

Arguments for shortcodes:
order: asc or desc
featured: 0 or 1 or remove the feature argument

Widgets on Yatra plugin

There are 4 widgets right now on Yatra plugins, Here are they:

YT – Activity:
You can use this widget to show an activity list of the Yatra plugin.

YT – Activity Widget

YT – Destination:
You can use this widget to show the destination list of the Yatra plugin.

YT – Destination Widget

YT – Discount & Deals:
You can use this widget to show the discount & deals list ( if you put discounted price on your trip package ) of the Yatra plugin

YT – Discount & Deals Widget

YT – Tour List:
You can use this widget to show the tour/trip list with an advanced filter.

YT – Tour List Widget



List of all Yatra widgets from appearance->widgets section:

List of All Yatra Widgets

List Tour, Destination & Activity

You can list a tour or destination or activity in a different way. Here is the explanation of those ways:

Tour List:

You can list the tour/trip in 3 ways:

Shortcode Method
:
You can use shortcode to list the tour/trip package. Here is the shortcode: [yatra_tour order=”asc”], click here for more information about yatra shortcodes.
Here is the frontend view of the shortcode method.

Widget Method: You just need to pick YT – Tour List widget from appearance->widgets area and drag it to your sidebar ( sidebar might be different as per your theme). We recommend using fullwidth sidebar ( if any) so that your list design will more awesome. The design of the shortcode and widgets style will be the same.

URL Method: You can add /tour on your homepage URL so that you will get all the tours from there. But if you change permalinks for a tour from settings->permalinks then you need to put your updated permalinks after home URL of your website.

You can change the permalinks from here: Settings->Permalinks:

Yatra Permalink Settings

For example if you have domain name example.com then you need to put example.com/tour to list all tours. The design of this method will be different from the shortcode and widget method.

Destination List:

You can list the destination in 2 ways:

Shortcode Method:
You can use a shortcode to list the tour/trip package. Here is the shortcode:[yatra_destination order=”desc”], click here for more information about yatra shortcodes.
Here is the frontend view of the shortcode method.

Yatra Tour Destination ( Shortcode Method )

Widget Method: You just need to pick YT – Destination widget from appearance->widgets area and drag it to your sidebar ( sidebar might be different as per your theme). We recommend using fullwidth sidebar ( if any) so that your list design will more awesome. The design of the shortcode and widgets style will be the same.

Activity List:

You can list the activity in 2 ways:

Shortcode Method:
You can use a shortcode to list the tour activity. Here is the shortcode: [yatra_activity order=”desc”], click here for more information about yatra shortcodes.
Here is the frontend view of the shortcode method.

Widget Method: You just need to pick YT – Activity widget from appearance->widgets area and drag it to your sidebar ( sidebar might be different as per your theme). We recommend using fullwidth sidebar ( if any) so that your list design will more awesome. The design of the shortcode and widgets style will be the same.

Yatra Cart & Checkout page

To make a booking you need to set up the cart & checkout page for the yatra plugin. It’s quite easy to set up those pages. By default you do not need to make pages, the plugin will automatically make Yatra Cart & Yatra Checkout page and put their shortcodes. But if you delete those pages then you need to make pages manually. Here are the setup steps for cart and checkout pages.

Cart Page:

1. Create a new page and put this shortcode there: [yatra_cart]
2. Go to Yatra plugin settings from Tour -> Settings and then General Settings then Pages and select newly created page to Cart Page option and save it. Yey, it’s done 🙂

Here are the screenshot steps for cart page setup:

1. Creating a cart page with it’s a shortcode
2. add cart page to it’s setting and save it

Here is the frontend view of the cart page.

Front view of cart page

Checkout Page:

1. Create a new page and put this shortcode there: [yatra_checkout]
2. Go to Yatra plugin settings from Tour -> Settings and then General Settings then Pages and select newly created page to Checkout Page option and save it. Yey, it’s done 🙂

Here are the screenshot steps for checkout page setup:

1. Create a new checkout page with the checkout shortcode
2. Setup checkout page from setting

Here is the frontend view of the checkout page.

Front view of checkout page