📕
Meup - Marketplace Events WordPress Theme
  • READ THE FIRST
  • Global
    • Youtube Tutorials
    • Install Theme
    • Update Theme/Plugins
      • Automatic Update
      • Manual Update
    • Support Theme
  • Basic
    • Header Settings
    • Update Footer
    • Home Page
    • Theme Options
      • Typography
      • Layout Global
      • Header Global
      • Footer Global
      • Blog
      • Event
      • Venue
      • Author
      • Site Identity
  • Main Features
    • How to make money with Theme?
    • VENDORS FEATURES
      • READ THE FIRST
      • Package
      • Create Event
        • Basic
        • Ticket
          • Internal link - No Seat
          • Internal link - Simple Seat
          • Internal link - Map
          • Event Online (Virtual Online)
          • External Link
          • Customize Template
        • Calendar
        • Coupon
        • Staff member
        • Cancel booking
        • Extra Service
      • My Listings
      • Wallet
      • General
      • My Bookings
      • My Wishlist
      • My Profile
    • USER FEATURES
      • READ THE FIRST
      • My Bookings
      • My Wishlist
      • My Profile
    • ADMIN FEATURES
      • Create Event
      • Manage Event
      • Manage Packages
      • Manage Venues
      • Manage Categories
      • Manage State, City
      • Manage Custom Taxonomy
      • Manage Custom Checkout Fields
      • Manage all Bookings
      • Manage all Tickets
      • Report Sales
      • Report User
      • Cancel/Refund Booking
      • Manage Withdraw and Payout
        • Method 1
        • Method 2
    • Settings
      • General
      • Event
      • Package
      • Checkout
      • Cancel Booking
      • Mail
      • Tax & Profit
      • Role
      • PDF Invoice
      • Ticket Transfer
      • Date Format
    • Elements in page
      • Search Form
      • Search Half Map
      • Event Category
      • Event Slider
      • Location Event
      • Event Slideshow
      • Event Grid
  • Login/Register User
    • READ THE FIRST
    • Setup Login, Register
    • Customize Register User Form
    • Admin Approve Vendor
  • Scan QR code in ticket
    • READ THE FIRST
    • Via Mobile Phone
    • Via Application
      • Install Application
      • Use Application
      • Customize Application
    • Via a link
    • Note
  • Frontend
    • Change Slug event
    • Event Archive Template
    • Event Detail Template
    • Cart Event Page
    • Checkout page in WooComemrce
    • Author Page
    • Customize PDF Ticket
    • Disable Marketplace
    • Vendor Dashboard
    • Mail
    • Update Sharing Social
  • Other
    • Mail chimp setting
    • Google Map
    • Translation
    • Find Icons
  • FAQs
    • Can't Book Events
    • Cart Event Error
    • Admin will approve event before publish it.
    • Login before booking event
    • when i create events, there is not ''booking button'' but ''share button''
    • Get Token Instagram
    • The vendor submit event without register package
    • Search go to home page
Powered by GitBook
On this page
  • 1: Customize layout
  • 2: Update font
  • Change font size
  • Change font family
  • Use New font

Was this helpful?

  1. Frontend

Customize PDF Ticket

PreviousAuthor PageNextDisable Marketplace

Last updated 9 months ago

Was this helpful?

1: Customize layout

You can customize layout, fields in pdf ticket

Copy file Plugins/eventlist/templates/pdf/template.php to Themes/meup-child/eventlist/pdf/template.php

- Display Custom Field Checkout in PDF Ticket

You can add bellow code in template file:

<?php 
$data_checkout_field = get_post_meta( $ticket['ticket_id'], OVA_METABOX_EVENT.'data_checkout_field', true ); 

if( $data_checkout_field ){
	
	$data_checkout_field = json_decode( $data_checkout_field );
	foreach ($data_checkout_field as $key => $value) {
		echo '<br/>'.$key.': '.$value.'<br/>';
	}

}

?>

- Display Phone of customer in pdf ticket:

You can add bellow code in template file

$booking_id = get_post_meta( $ticket['ticket_id'], OVA_METABOX_EVENT.'booking_id', true ); 
$phone = get_post_meta( $booking_id, OVA_METABOX_EVENT.'phone', true ); 
echo '<br/>Phone:'.$phone;

2: Update font

Change font size

Check language in site. example English, you can add bellow code to function.php in child theme

add_filter( 'el_pdf_font_size_en', function(){ return '14'; } );

Change font family

Check language in site. example English, you can add bellow code to function.php in child theme

add_filter( 'el_pdf_font_en', function(){ return 'Sun-ExtA'; } );

Use New font

You can add your font to themes/meup-child/font/ folder then add bellow code to function.php file in child theme

add_filter( 'el_pdf_font_en', function(){ return 'Sun-ExtA'; } );

We are using mPDF to make ticket pdf, so you can read here to know about mPDF:

You can find some extra fonts here:

https://mpdf.github.io/
https://github.com/mpdf/mpdf/tree/development/ttfonts