# 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="https://2378307249-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0hrVNrJA5xnVtB6FlF7I%2Fuploads%2FZzLUPJmNqcG2oTHwA7T4%2FScreen%20Shot%202024-08-30%20at%2014.13.53.png?alt=media&#x26;token=eb519845-aaf5-4b6d-b0a3-8fe52e95a1e8" alt=""><figcaption></figcaption></figure>

## 2) Setup Cart  in Movie Setting

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

<figure><img src="https://2378307249-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0hrVNrJA5xnVtB6FlF7I%2Fuploads%2F0ikvVR3dvZH1BEaPz0q3%2Fmovie-ticket-booking-process-aovis.png?alt=media&#x26;token=cc8ea091-c353-4743-a94d-74458dbcb6da" alt=""><figcaption></figcaption></figure>

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

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

<div><figure><img src="https://2378307249-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0hrVNrJA5xnVtB6FlF7I%2Fuploads%2FcphRRiABbEaH0IOcqUJv%2Ftax-settings-aovis-wordpress-movie-theme.png?alt=media&#x26;token=e22719b4-53c2-4805-9cac-4762f8859b81" 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="https://2378307249-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0hrVNrJA5xnVtB6FlF7I%2Fuploads%2Fc7e4XN3dhQsG8Yhra1ws%2Fmovie-ticket-booking-process-aovis-1.png?alt=media&#x26;token=3f472ec1-23b3-46dd-81c3-0426b0b5c06e" alt=""><figcaption></figcaption></figure>

### b) Setup Payment Gateway in WooCommerce

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

<figure><img src="https://2378307249-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0hrVNrJA5xnVtB6FlF7I%2Fuploads%2Fn4QU0zcSOumOUfjYkYSx%2Fmovie-ticket-booking-process-aovis-2.png?alt=media&#x26;token=781afcb4-8591-44be-a504-cb01ffb87045" alt=""><figcaption></figcaption></figure>

### c) Setup Checkout Page in WooCommerce

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

<figure><img src="https://2378307249-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0hrVNrJA5xnVtB6FlF7I%2Fuploads%2FqkJHHGoFydm2SPTIkhoA%2Fmovie-ticket-booking-process-aovis-3.png?alt=media&#x26;token=3c521659-adcb-4764-98b2-8aa8fe857577" 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="https://2378307249-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0hrVNrJA5xnVtB6FlF7I%2Fuploads%2FSBbphPfcdBxDDwzcfhKz%2Fcheckout-settings-aovis-wordpress-movie-theme.png?alt=media&#x26;token=8bb428f4-59ab-4377-a6af-559376157a2c" 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="https://2378307249-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0hrVNrJA5xnVtB6FlF7I%2Fuploads%2FvWwrWAY3a0afldqKcyrc%2Fimage.png?alt=media&#x26;token=fcfd24ae-1798-4215-8c3a-828e6bb3b65c" 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="https://2378307249-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0hrVNrJA5xnVtB6FlF7I%2Fuploads%2Fs06QA2gXcVnN8VK9ZtaY%2Fmail-settings-aovis-wordpress-movie-theme.png?alt=media&#x26;token=496fc689-3d0a-4403-b8d2-261c603ee224" 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="https://2378307249-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0hrVNrJA5xnVtB6FlF7I%2Fuploads%2FFoeG3qBPj2l4Hu2LAiEF%2FScreen%20Shot%202024-08-30%20at%2014.55.03.png?alt=media&#x26;token=bc4205f4-3af6-4f58-89a2-b57810ee9092" 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="https://2378307249-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0hrVNrJA5xnVtB6FlF7I%2Fuploads%2F9hU3HhijiANdmJ2lqDYv%2Fmail-settings-aovis-wordpress-movie-theme-1.png?alt=media&#x26;token=b2080146-5f30-42a4-8770-355b6031e77b" 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="https://2378307249-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0hrVNrJA5xnVtB6FlF7I%2Fuploads%2FMXXxaseGwNlBNWaCitTl%2Fmail-settings-aovis-wordpress-movie-theme-2.png?alt=media&#x26;token=196ccf8f-c0de-49b7-a25c-0f36be44f0ec" alt=""><figcaption></figcaption></figure>
