how to change from KENZAP to my company name

Forums Community how to change from KENZAP to my company name

This topic contains 5 replies, has 2 voices, and was last updated by  Alinka Radionova 1 month ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #6499

    Jhef Son
    Participant

    Hi, how can we change from Kenzap to my company name?

    your plugin is great!!!

    #6501

    Alinka Radionova
    Participant

    Hi Jheh,

    You need to override templates. Here is the guide: https://kenzap.blog/how-to-customize-pdf-ticket-with-myticket-events-plugin/

    Alternatively you can request a customization here: https://kenzap.com/myticket-events-plugin-customization-service-1016004/

    #6503

    Jhef Son
    Participant

    got it, i was able to edit the pdf….

    but how about the downloadable manual pdf?? wasnt able to edit it though

    #6506

    Jhef Son
    Participant

    hi, i followed the instruction from your post here, https://kenzap.blog/how-to-customize-pdf-ticket-with-myticket-events-plugin/

    would you mind checking these??? upon downloading tickets manually, it always direct me to the demo background you sampled, not in my attached background…

    <?php defined( ‘ABSPATH’ ) or exit;

    //load mpdf and WooCommerce variables
    require_once MYTICKET_PATH . ‘inc/mpdf/vendor/mpdf/mpdf/mpdf.php’;

    $mpdf = new mPDF([‘debug’ => true]);
    $order = new WC_Order( $order_id );
    $uploads = wp_get_upload_dir();
    $ticketDir = $uploads[‘basedir’].”/tickets”;
    $formatted_shipping_address = $order->get_formatted_shipping_address();
    $formatted_billing_address = $order->get_formatted_billing_address();
    $line_items = $order->get_items( ‘line_item’ );
    $name = wc_get_order_item_meta($order_item_id, “name”);
    $file = sanitize_file_name($ticketDir.”/”.$order_id.”_”.$order_item_id.”.pdf”);

    $mpdf->SetDefaultBodyCSS(‘backgrounds’, “url(‘https://jenamies.com/wp-content/plugins/myticket-events/templates/ticket-general/background.jpg’)”);
    $mpdf->SetDefaultBodyCSS(‘background-image-resize’, 6);

    //make sure that ticket directory exists
    wp_mkdir_p($ticketDir);

    // Ajax urls
    $ajaxurl = ”;
    if( in_array(‘sitepress-multilingual-cms/sitepress.php’, get_option(‘active_plugins’)) ){
    $ajaxurl .= admin_url( ‘admin-ajax.php?lang=’ . ICL_LANGUAGE_CODE );
    } else {
    $ajaxurl .= admin_url( ‘admin-ajax.php’);
    }

    $header = ‘<!–mpdf
    <htmlpageheader name=”header”>
    <table width=”100%” style=”font-family: sans-serif;padding-left:20px;padding-top:190px;”>
    <tr>
    <td width=”50%” style=”color:#111111;margin-top:150px;text-align:center;”>
    <barcode code=”‘.”myticket:”.esc_attr($order_id).”,”.esc_url($ajaxurl).”,”.esc_attr($order_item_id).”,0,0″.'” size=”1.3″ type=”QR” error=”M” disableborder=”1″ class=”barcode” />
    <br/>
    <br/>
    <br/>
    <span style=”width:50px;font-weight:bold;font-size:20pt;text-align:center;”>’.str_replace( ‘ ‘, ‘<br/>’, esc_html($name) ).'</span><br />
    <br />
    </td>
    <td width=”50%” style=”text-align: right; vertical-align: top;”>

    </td>
    </tr>
    </table>
    </htmlpageheader>

    mpdf–>

    <style>
    @page {
    margin-top: 0cm;
    margin-bottom: 0cm;
    margin-left: 0cm;
    margin-right: 0cm;
    footer: html_letterfooter2;
    background-color: pink;
    background-image: url(“‘ . plugins_url( ‘background.jpg’, __FILE__ ). ‘”);
    background-repeat: no-repeat;
    background-size: cover;
    }

    @page :first {
    margin-top: 8cm;
    margin-bottom: 4cm;
    header: html_header;
    footer: _blank;
    resetpagenum: 1;
    background-color: lightblue;
    }

    </style>’;

    $mpdf->img_dpi = 150;
    $mpdf->WriteHTML($header);

    //print to file and return its path
    if ($to_file){

    $mpdf->Output($file,’F’);
    return $file;

    //print to browser
    }else{
    $mpdf->Output();
    }

    ?>

    #6507

    Jhef Son
    Participant

    resending attachment

    #6509

    Alinka Radionova
    Participant

    Hi Jhef,

    I can only assist you with general questions under free license. For a more technical and engineering assistance please contact paid support here: https://kenzap.com/myticket-events-plugin-customization-service-1016004/

    Apologies for the inconvenience caused.

Viewing 6 posts - 1 through 6 (of 6 total)

Please sign in to reply to this question.

Home Terms Privacy Help