> For the complete documentation index, see [llms.txt](https://ova-themes.gitbook.io/tripgo/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ova-themes.gitbook.io/tripgo/tripgo-menu/products/tour-template.md).

# Tour Template

## 1: Setup Product Template (Tour Template)

A tour will use a template based on the following priority order: [**Product**](#id-1.1-product-setup) **>>** [**Category**](#id-1.2-category-setup) **>>** [**Global Setting**](#id-1.3-global-settings) (WooCommerce settings).

First, the system checks the **Product Template** in the [**Product setup**](#id-1.1-product-setup)**.**

If the product template is set to **"Category setting"**, the system will check the product template in the [**Category setup**](#id-1.2-category-setup)**.**

If the category's product template is set to **"Global Settings"**, the system will use the product template defined in the [**Global settings**](#id-1.3-global-settings) **(WooCommerce settings)** for this tour.

### 1.1: Product Setup

Go to Products >> Add New Product >> Go to "Advanced options" tab >> choose "Product template" setting

* **Category Settings**: Use the product template that is set up in [the category](#id-1.2-category-setup).
* **Tour detail 2, Tour detail:** These two templates are built with Elementor. plugin You can create and assign templates to any product. [Learn more here](#id-2.2-template-build-with-elementor-plugin)

<figure><img src="/files/RkG1UXsn3voUTEUpLBuF" alt=""><figcaption></figcaption></figure>

### 1.2: Category Setup

Go to Products >> Categories >> choose a category

* **Global Settings**: Use the product template that is set up in [global settings](#id-1.3-global-settings)(woocommerce settings).
* **Tour detail 2, Tour detail:** These two templates are built with Elementor. plugin You can create and assign templates to any product.  [Learn more here](#id-2.2-template-build-with-elementor-plugin)

<figure><img src="/files/qiTP1A7qEqZmb4OCSrlg" alt=""><figcaption></figcaption></figure>

### 1.3: Global Settings

Go to WooCommerce >> Settings >> Booking Tours >> Product details

* **Default:** This is the default template that is built using a PHP file. [Learn more here](#id-2.1-default-template)
* **Tour detail 2, Tour detail:** These two templates are built with Elementor. plugin You can create and assign templates to any product.  [Learn more here](#id-2.2-template-build-with-elementor-plugin)

<figure><img src="/files/HUUlkxN5FDZyuja0X8Sl" alt=""><figcaption></figcaption></figure>

## 2: Customize Template

### 2.1) Default Template

#### a) Show/hide fields

Go to Appearance >> Customize >> Tour >> Single

<figure><img src="/files/hIJzXhOdNdDuO8M5ODdu" alt=""><figcaption></figcaption></figure>

#### b) Customize template

If you want to change layout of product template, you have to customize template file in child theme.

Note:&#x20;

* You have to active the tripgo-child theme.
* You can use File Manager plugin to create folder "woocommerce", "rental" in child theme.

```
copy file
themes/tripgo/woocommerce/rental/content-single-product.php
to
themes/tripgo-child/woocommerce/rental/content-single-product.php
```

**Customize per section in product template:**

```
Copy files
themes/tripgo/woocommerce/rental/loop/*.php
to
themes/tripgo-child/woocommerce/rental/loop/*.php
```

* Example

```
// Customize Title
Copy files
themes/tripgo/woocommerce/rental/loop/title.php
to
themes/tripgo-child/woocommerce/rental/loop/title.php

// Customize Enquiry Form
Copy files
themes/tripgo/woocommerce/rental/loop/request-form.php
to
themes/tripgo-child/woocommerce/rental/loop/request-form.php
```

### 2.2) Proudct Template build with Elementor plugin

#### a) Show/hide fields

You will see show/hide fields in setting of element.

#### b) Build product tempate with elementor plugin

Go to Template >> Saved Templates >> Add New template or choose "Tour detail 2", "Tour Detail" (if you imported demo data).

<div><figure><img src="/files/JV768g8STkRtcWugupEJ" alt=""><figcaption></figcaption></figure> <figure><img src="/files/A4f4NVu5uuFadTelm6Sm" alt=""><figcaption></figcaption></figure></div>

<figure><img src="/files/zh0eP9uFmvs67vZqnpeL" alt=""><figcaption></figcaption></figure>

**Some elements**

* **Product Image**

<div><figure><img src="/files/0mii2R8vAbDc4smLT8Ba" alt=""><figcaption></figcaption></figure> <figure><img src="/files/XWB4JLS4S9WDs8gYonfB" alt=""><figcaption></figcaption></figure> <figure><img src="/files/DkORRFqrV1Ex8rb1w6Lq" alt=""><figcaption></figcaption></figure></div>

* **Product Title**

<div><figure><img src="/files/tXIa5VT4wkgSkrVSxl0D" alt=""><figcaption></figcaption></figure> <figure><img src="/files/f879dSheirGCTDbHDmM0" alt=""><figcaption></figcaption></figure></div>

* **Short Description**

<div><figure><img src="/files/3kv5XykvB8lBGSXCKNpW" alt=""><figcaption></figcaption></figure> <figure><img src="/files/zi6nSEBXhi0S5lw3y65H" alt=""><figcaption></figcaption></figure></div>

* **Product Features**

<div><figure><img src="/files/3w5hbkwEOWHlXF0eRMlY" alt=""><figcaption></figcaption></figure> <figure><img src="/files/CTwuw282dcoENVKQ3SAh" alt=""><figcaption></figcaption></figure></div>

* **Product Price Table**

<div><figure><img src="/files/0t4b2nEPi5vgcoEVtP8J" alt=""><figcaption></figcaption></figure> <figure><img src="/files/nqFPMNahyeaf0TTVCLFH" alt=""><figcaption></figcaption></figure> <figure><img src="/files/BNh14QROkQuCKrV4YrxS" alt=""><figcaption></figcaption></figure> <figure><img src="/files/4m12YFwAWO9BmmqOyXLT" alt=""><figcaption></figcaption></figure></div>

* **Product Forms**

<div><figure><img src="/files/zqrsIlVXQm5wWzQEv1zg" alt=""><figcaption></figcaption></figure> <figure><img src="/files/gnCveyxh1gafaKebli82" alt=""><figcaption></figcaption></figure></div>

* **Product Tabs**

<div><figure><img src="/files/Gf1WiIUExuO79Nlueha7" alt=""><figcaption></figcaption></figure> <figure><img src="/files/uDXLbJInSfIxLkLGmR7x" alt=""><figcaption></figcaption></figure> <figure><img src="/files/IykLvooi62q4kWPDXiXi" alt=""><figcaption></figcaption></figure> <figure><img src="/files/8RFH1OeF1ocErORR5unP" alt=""><figcaption></figcaption></figure> <figure><img src="/files/NYuCpSArVl3DBFTVszZD" alt=""><figcaption></figcaption></figure> <figure><img src="/files/UtuIMUcqkf0FdIPeVORf" alt=""><figcaption></figcaption></figure></div>

* **Product Related**

<div><figure><img src="/files/kipzeVTQbdpWorB4u2kT" alt=""><figcaption></figcaption></figure> <figure><img src="/files/rJ6oDfzbhlM9e9XNcA8v" alt=""><figcaption></figcaption></figure> <figure><img src="/files/L2ArhGEQJi7Tf2DkLDmM" alt=""><figcaption></figcaption></figure> <figure><img src="/files/gFKJo5MVLtVAPhUcfDL8" alt=""><figcaption></figcaption></figure></div>

<div><figure><img src="/files/41UsRIFgHPlUdWtiMViD" alt=""><figcaption></figcaption></figure> <figure><img src="/files/uGperpI0zzxXFTW3WfdZ" alt=""><figcaption></figcaption></figure> <figure><img src="/files/pkQq3XFowWoxzDnGv5r1" alt=""><figcaption></figcaption></figure> <figure><img src="/files/vWtJFlD6dRZXrjqItctH" alt=""><figcaption></figcaption></figure> <figure><img src="/files/27NC2i1Vcqr9BcKvzRK3" alt=""><figcaption></figcaption></figure> <figure><img src="/files/757YspLBTc0arfcyBhoM" alt=""><figcaption></figcaption></figure> <figure><img src="/files/d1Ic5Kd8pnDRHZr0zdmI" alt=""><figcaption></figcaption></figure></div>

* **Location & Rating**

<div><figure><img src="/files/2grTMraPmTq1RuuX6FpJ" alt=""><figcaption></figcaption></figure> <figure><img src="/files/OEXmcuRtgYwGU3AM40Lm" alt=""><figcaption></figcaption></figure></div>

* **Unavailable Time**

<div><figure><img src="/files/EDLAvkY95CASfEu653iH" alt=""><figcaption></figcaption></figure> <figure><img src="/files/B7lu6QIkZRV7nm3EBBZs" alt=""><figcaption></figcaption></figure></div>

* **Product Content**

<div><figure><img src="/files/TG4rpqwbMthgR3ZdnLWr" alt=""><figcaption></figcaption></figure> <figure><img src="/files/qGoeCPqCQZdRdXhxjpYh" alt=""><figcaption></figcaption></figure></div>

* &#x20;**Video & Gallery**

<div><figure><img src="/files/a009x6HkHD7sjIFzUw4K" alt=""><figcaption></figcaption></figure> <figure><img src="/files/BO7RgXbrfqLbXbpGPYbw" alt=""><figcaption></figcaption></figure></div>

* **Product Included/Excluded**

<div><figure><img src="/files/Sny5zJr1kyQnXeXdzx0r" alt=""><figcaption></figcaption></figure> <figure><img src="/files/ReA2dpprTQ14e3677TjW" alt=""><figcaption></figcaption></figure></div>

* **Product Plan**

<div><figure><img src="/files/KVoxNlBoJRV122hbMRpO" alt=""><figcaption></figcaption></figure> <figure><img src="/files/K0vN6QEhFfyzOGWcMXl2" alt=""><figcaption></figcaption></figure></div>

* **Product Map**

<div><figure><img src="/files/B6pw0Wln1nvRDoiDQf8k" alt=""><figcaption></figcaption></figure> <figure><img src="/files/jABM9C3ozJzpok5Bvkz6" alt=""><figcaption></figcaption></figure></div>

* **Product Reviews**

<div><figure><img src="/files/XNx2qVYNoo6jOeukFD9y" alt=""><figcaption></figcaption></figure> <figure><img src="/files/aYWSDscPzjBWhUwGRiP5" alt=""><figcaption></figcaption></figure> <figure><img src="/files/5WwnO16cfK84WybkUSGZ" alt=""><figcaption><p>Default Review at frontend</p></figcaption></figure> <figure><img src="/files/RPRpVpgJTluHs8zo8ZiM" alt=""><figcaption><p>Review when use ReviewX plugin</p></figcaption></figure></div>

#### c) Customize template

Note:&#x20;

* You have to active the tripgo-child theme.
* You can use File Manager plugin to create folder "woocommerce", "rental" in child theme.

**Customize per area in product detail:**

```
Copy files
themes/tripgo/woocommerce/rental/loop/*.php
to
themes/tripgo-child/woocommerce/rental/loop/*.php
```

**Example**

```
// Customize Title
Copy files
themes/tripgo/woocommerce/rental/loop/title.php
to
themes/tripgo-child/woocommerce/rental/loop/title.php

// Customize Enquiry Form
Copy files
themes/tripgo/woocommerce/rental/loop/request-form.php
to
themes/tripgo-child/woocommerce/rental/loop/request-form.php

```

## 3: Show Forms (Booking, Request, Enquiry)

A tour will display 3 forms based on the following priority order: [**Product**](#a-setup-forms-in-product) **>>** [**Global Setting** ](#b-setup-forms-in-global-settings-woocomemrce-settings)(WooCommerce settings).

First, the system checks the **Show Forms** in the[ **Product setup**](#a-setup-forms-in-product)**.**

If the show forms is set to **"Global setting"**,the system will use the values defined in the [**Global settings**](#b-setup-forms-in-global-settings-woocomemrce-settings) **(WooCommerce settings)** for this tour.

<figure><img src="/files/aEkkfbBSNiylKh3nkF9i" alt=""><figcaption><p>3 forms in product template</p></figcaption></figure>

### a) Setup Forms in product

Go to Products >> Choose a product >> Go to "Advanced option" tab >> "Show Forms" option&#x20;

* Global Settings: Use the value that is set up in global settings(woocommerce settings).
* Only Booking Form
* Only Request Form
* Only Enquiry Form
* Show all: Show all: Show all 3 forms.

<figure><img src="/files/JwzBEfmkZsO1exh167d7" alt=""><figcaption></figcaption></figure>

### **b) Setup Forms in Global Settings (WooComemrce Settings)**

Go to WooCommerce >> Settings >> Booking Tours >> Product details

* show/hide any form in prouct template.

<figure><img src="/files/Rk5y50EWezF1bSSBVOTt" alt=""><figcaption></figcaption></figure>

## 4: Booking Form

### a) show/hide form

Read in [Show forms](#id-3-show-forms-booking-request-enquiry) sections

### b) Config form

1: Show/hide checkout field. Learn more in [Checkout field of Advanced Opitons in product](/tripgo/tripgo-menu/products/create-a-tour.md#id-7-check-out-field)

2: Show Guests. Learn more in [Guest of Advanced Opitons in product](/tripgo/tripgo-menu/products/create-a-tour.md#id-5-guest)

3, 4, 5: Custom checkout fields. Learn more in [Custom checkout fields](/tripgo/tripgo-menu/custom-checkout-field.md)

6: Quantity. Learn more in the [*Booking Form* settings](/tripgo/tripgo-menu/settings.md#id-3-booking-form) under *WooCommerce Settings*&#x20;

7: You can setup [Resource](https://ova-themes.gitbook.io/tripgo/tripgo-menu/products/pages/JmNkrain91hN22buecBG#id-1.11-add-resources) in product.

8: You can setup [Services](https://ova-themes.gitbook.io/tripgo/tripgo-menu/products/pages/JmNkrain91hN22buecBG#id-1.12-add-services) in product

9: You can setup [Deposit](/tripgo/tripgo-menu/products/deposit.md) in product

10: Insurance: You can setup value in [product](/tripgo/tripgo-menu/products/insurance.md)

11: Terms and conditions. You can setup in [WooCommerce Settings](/tripgo/tripgo-menu/settings.md#id-3-booking-form).&#x20;

<figure><img src="/files/Uqeli4uW8dRM3DsDKHhs" alt=""><figcaption></figcaption></figure>

## 5: Request Form

### a) show/hide form

Read in [Show forms](#id-3-show-forms-booking-request-enquiry) sections

### b) Config form

1, 2,3,4: You can show/hide fields in [Request Form](/tripgo/tripgo-menu/settings.md#id-4-request-form) setting under WooCommerce Settings.

5: Show/hide checkout field. Learn more in [Checkout field of Advanced Opitons in product](/tripgo/tripgo-menu/products/create-a-tour.md#id-7-check-out-field)

6: Show Guests. Learn more in [Guest of Advanced Opitons in product](/tripgo/tripgo-menu/products/create-a-tour.md#id-5-guest)

7, 8, 9: Custom checkout fields. Learn more in [Custom checkout fields](/tripgo/tripgo-menu/custom-checkout-field.md)

10: Quantity. Learn more in the [*Booking Form* settings](/tripgo/tripgo-menu/settings.md#id-3-booking-form) under *WooCommerce Settings*&#x20;

11: You can setup [Resource](https://ova-themes.gitbook.io/tripgo/tripgo-menu/products/pages/JmNkrain91hN22buecBG#id-1.11-add-resources) in product.

12: You can setup [Services](https://ova-themes.gitbook.io/tripgo/tripgo-menu/products/pages/JmNkrain91hN22buecBG#id-1.12-add-services) in product

13: You can show/hide field in [Request Form](/tripgo/tripgo-menu/settings.md#id-4-request-form) setting under WooCommerce Settings.

14: You can show/hide field in [Request Form](/tripgo/tripgo-menu/settings.md#id-4-request-form) setting under WooCommerce settings.

<figure><img src="/files/oqHBQBx2LN7quxBGsiEz" alt=""><figcaption></figcaption></figure>

## 6: Enquiry Form

### a) show/hide form

Read in [Show forms](#id-3-show-forms-booking-request-enquiry) sections

### b) Config form

You can setup individual enquiry form for per tour or use a enquiry form for all tour. Lean more in [setup forms](/tripgo/tripgo-menu/products/create-a-tour.md#id-8-forms) in product

<figure><img src="/files/IHzRh72YSLQWhHIPMbiY" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://ova-themes.gitbook.io/tripgo/tripgo-menu/products/tour-template.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
