# Setup movie ticket booking process

## 1) Create Cart Movie Page

* Go to Pages >> Edit "Cart Movies" (if you import demo data) or Click Add New Page >> You have to insert shortcode in page: \[mb\_cart/]
* If you are using Elementor, you have to "Inactive" cache for Text Edior Element.

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

## 2) Setup Cart  in Movie Setting

Go to **Movies >> Settings >> General >> Cart Page: choose Cart Movies**

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

## 3) Setup Tax, Ticket Fee, Discount in Cart Page

Go to **Movies >> Settings >> Tax**

<div><figure><img src="/files/qr7E1pXU943kXJ7Onqza" alt=""><figcaption></figcaption></figure> <figure><img src="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0hrVNrJA5xnVtB6FlF7I%2Fuploads%2FQe3Zk5KfuV2D08XAGcPK%2FScreen%20Shot%202024-08-30%20at%2014.40.38.png?alt=media&#x26;token=50eeaf4b-eec2-48b9-8db3-e1b853ca27f8" alt=""><figcaption></figcaption></figure></div>

## 4) Setup Checkout Page

### a) Create a Product in WooCommerce

Go to Products >> Add New or choose "Movie booking" (if you import demo data)

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

### b) Setup Payment Gateway in WooCommerce

Go to **WooCommerce >> Settings >> Payment: Choose payment gateway to use**

<figure><img src="/files/6w5P0xXTYkK1xJ1Ch1Th" alt=""><figcaption></figcaption></figure>

### c) Setup Checkout Page in WooCommerce

Go to **WooCommerce >> Settings >> Advanced >> Choose Cart and Checkout Page**

<figure><img src="/files/44ukXIggY5CJe9YMEMMT" alt=""><figcaption></figcaption></figure>

In Tour Detail page, if you want, when you click Booking button, the system will redirect to the Checkout page.

Please add the code below to the `functions.php` file in your child theme

```
add_filter('woocommerce_add_to_cart_redirect', 'skip_cart_go_checkout');
function skip_cart_go_checkout() {
    return wc_get_checkout_url();
}
```

### d) Setup Checkout in Movie Settings

Go to **Movies >> Settings >> Checkout**

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

* **Allow to Add ticket when Order status:** The system use WooCommerce for payment tickets, so you have to choose status of Order WooCommerce to send tickets to customer.

Order WooCommerce Status depends payment gateway: [Read here ](https://woocommerce.com/document/managing-orders/order-statuses/)

* **Choose a hidden product in Woocommerce:** Choose product that you [make above](#a-create-a-product-in-woocommerce).
* **Secret Key QR Code:** You can insert any character.
* **Thank you page:** The system will redirect to this page after the customer payment successfully.
* **Holding Tickets:** Maximum Payment time for each movie booking.
* **Remove fields in Checkout Form of WooCommerce:** [Read here](https://developer.woocommerce.com/docs/customizing-checkout-fields-using-actions-and-filters/) or you can install extra plugin for this.

Display Maximum time to complete payment in the frontend

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

## 5: Setup Mail

### a) New Order

* Go to **Movies >> Settings >> Mail >> New Order**

When this feature is enabled, the system will automatically send a confirmation email after a booking is placed.

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

### b) PDF Ticket

The PDF Ticket will be attached in New Order Email. You can Add Logo and Change color for PDF Ticket

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

You can customize PDF Ticket template in child theme

```
Copy file
plugins/movie-booking/templates/pdf/template.php
to
themes/aovis-child/ovamb-templates/pdf/template.php
```

### c) Reminder

Go to **Movies >> Settings >> Mail >> Remind**

When this feature is enabled, the system will automatically send a reminder before the showtime.&#x20;

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

### d) Cancellation Email

Go to **Movies >> Settings >> Mail >> Cancel**

When this feature is enabled, the system will automatically notify the customer when a booking is canceled

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


---

# Agent Instructions: 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:

```
GET https://ova-themes.gitbook.io/aovis/movie/setup-movie-ticket-booking-process.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
