Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

WP eStore – PDF Voucher CSS file location?

by

Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Addon Related › WP eStore – PDF Voucher CSS file location?

Tagged: gift certificate, Pdf voucher, voucher

  • This topic has 1 reply, 2 voices, and was last updated 10 years, 4 months ago by wpCommerce.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • December 29, 2014 at 10:08 pm #11992
    dwest100
    Member

    Which file would I edit to change the fonts/positions of the generated voucher text?

    Thank you :)

    December 30, 2014 at 12:52 am #67694
    wpCommerce
    Moderator

    Hi, It cannot be done by applying simple CSS. The voucher template is actually generated using a PDF library. So you will need to edit the function that creates the PDF file.

    Please do the following:

    1) Open the create-pdf.php file (it’s in the root directory of the addon).

    2) Look for the function function create_voucher_pdf_file($v_id,$preview='').

    3) You will find this piece of code in it which sets the font size for the voucher text:

    // set gift voucher code font
    $pdf->SetFont('dejavusans', '', 16, '', true);

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ