Title: Card Templates functionality
Last modified: June 27, 2024

---

# Card Templates functionality

 *  Resolved [spypots](https://wordpress.org/support/users/spypots/)
 * (@spypots)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/card-templates-functionality/)
 * Hi there!
   I have created some gift cards and a card template. For my Giftcards,
   I haven’t selected any templates from the Product menu, so I see both of them(
   mine + default).
 * The delivery method is set to “e-mail” and the option to attach as pdf is “true”.
 * -BUT-
 * When I test-buy a gift card and select a Cart Template, I never see it as an 
   email or attached to the received email. I only see the e-mail template (Settings/
   email).
 * What are the proper settings so I use the templates?
 * If it is a theme thing, is there anyway to disable them and just send the email?(
   prefer not).
 * Thank U
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcard-templates-functionality%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [angelagrey](https://wordpress.org/support/users/angelagrey/)
 * (@angelagrey)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/card-templates-functionality/#post-17857774)
 * Hi,
 * Thank you for reaching out to us.
 * The email with PDF attachment is sent to the receiver’s email address: [https://nimb.ws/OPZvb0l](https://nimb.ws/OPZvb0l)
 * This email is set up in this setting tab: [https://docs.villatheme.com/gift4u-gift-cards-all-in-one-for-woo/#configuration_child_menu_9128](https://docs.villatheme.com/gift4u-gift-cards-all-in-one-for-woo/#configuration_child_menu_9128)
 * You mentioned “When I test-buy a gift card and select a Cart Template, I never
   see it as an email or attached to the received email. I only see the e-mail template(
   Settings/ email).”
 * >> We don’t have gift card email in WooCommerce settings, perhaps you’re talking
   about order confirmation emails of WooCommerce which is sent to the buyer’s address:
   [https://nimb.ws/fw1oYXk](https://nimb.ws/fw1oYXk) ? If that’s the case, the 
   PDF is not attached to those emails.
 * You can try this option: [https://nimb.ws/BtgPJwo](https://nimb.ws/BtgPJwo)
 * It’ll send an email to the buyer’s email address as well when the gift card email
   is sent to the receiver. If the gift card email includes a PDF file, then the
   same email which is sent to the buyer via the option above will also have that
   attachment.
 * Best regards.
 *  Thread Starter [spypots](https://wordpress.org/support/users/spypots/)
 * (@spypots)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/card-templates-functionality/#post-17857905)
 * Maybe I didn’t described my proble, corectly. Everything you have proposed, I
   have done it.
   On my site I have this [https://prnt.sc/grXIE56QmcGB](https://prnt.sc/grXIE56QmcGB).
 * I obligate ny client to select a **Card template** -BUT- when the gift will be
   sent.
 * This is the email recevied by the recepient with the gift card: [https://prnt.sc/B_goIASCx3Ba](https://prnt.sc/B_goIASCx3Ba)
   with no attachement on it.
 * So, if my delivery option is email, why do I have to select a template for all
   my different Gift-Card products, since all gift recipients of all my Gift Cards,
   will receive the exact same email, with the only differentiation to be the shortcodes
   input (name, gift card amount, etc.).
 * Here are my settings [https://prnt.sc/hExUsvIj8O9D](https://prnt.sc/hExUsvIj8O9D)
   
   and here is my email template: [https://prnt.sc/UIcuPbeRFxb3](https://prnt.sc/UIcuPbeRFxb3)
    1. Do I miss something?
    2. If the delivery method is email and the normal behaviour is as described, then
       why do you show the card templates to the client? -Shouldn’t it be hidden?
    3. The “Add card PDF to email” if it is not for attaching the selected card template
       on the email as pdf, then what is its job?
 * If you hane further questions or clarifications, please ask me. Moreover, I can
   send you a gift-card to your email (please provide) to see what our customer’s
   receive.
 * Thank you.
 *  [angelagrey](https://wordpress.org/support/users/angelagrey/)
 * (@angelagrey)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/card-templates-functionality/#post-17870336)
 * I’m sorry for the delayed response. For the issue with PDF that it’s not attached
   to the email, I would recommend testing for conflicts by taking the following
   steps: [https://docs.woocommerce.com/document/woocommerce-self-service-guide/](https://docs.woocommerce.com/document/woocommerce-self-service-guide/)
 * It could be a conflict with another plugin, or even your theme. This will help
   you rule out any possible compatibility issue.
 * “Add card PDF to email” is to attached the gift card (PDF) to gift card email,
   so you still need the Card Template.
 *  Thread Starter [spypots](https://wordpress.org/support/users/spypots/)
 * (@spypots)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/card-templates-functionality/#post-17871213)
 * OK.
 * Didn’t find any solution and to be honest, I don’t want to mesh things up.
 * Everything looks fine, expept the templates thing.
 * If it isn’t any known problem with common solutions, I would prefer to keep the
   default email and complete disable the coupon attachements, so I disabled th “
   add card PDF to email” option (set to FALSE), and the templates are not showing
   up.
 * If there is an update in the future I would love to have a hint to enabled them.
 * Thank You
 *  [angelagrey](https://wordpress.org/support/users/angelagrey/)
 * (@angelagrey)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/card-templates-functionality/#post-17875095)
 * I totally understand. We’ll keep an eye out for this issue in the future. However,
   as it appears to be a random, site-specific conflict and doesn’t occur with just
   any plugin or settings, I have to say it would be hard. We’ll do our best to 
   address it.
 * Alternatively, if you decide to run a conflict test, by the instruction I sent
   above, you’ll want to [backup your site content](https://docs.woocommerce.com/document/backup-wordpress-content/)
   before making any changes, and you could always [duplicate the site](https://wordpress.org/plugins/wp-staging/)
   for testing purposes if you don’t want to interrupt the live site.
 * I hope this helps!
 * Also, since you mentioned “I would prefer to keep the default email and complete
   disable the coupon attachements, so I disabled th “add card PDF to email” option(
   set to FALSE), and the templates are not showing up”
   I don’t know if you meant
   once you disable “Add card PDF to email”, gift card email is no longer sent even
   when the delivery method is “Email” and there’s a valid receiver email. If that’s
   the case, there’s definitely a conflict somewhere. That option should block the
   gift card email at all.
 *  [alexmoody581](https://wordpress.org/support/users/alexmoody581/)
 * (@alexmoody581)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/card-templates-functionality/#post-17896116)
 *     ```wp-block-code
       Also noticed a problem with sending pdf files.I created a new template, in which I uploaded an image (png)added all the necessary variables.The email is not sent.There is trace [17-Jul-2024 14:00:45 UTC] PHP Fatal error: Uncaught Mpdf\MpdfException: mbstring extension with mbregex support must be loaded in order to run mPDF. in /var/www/etereoamor.com/wp-content/plugins/gift4u-gift-cards-all-in-one-for-woo/vendor/mpdf/mpdf/src/Mpdf.php:9703Stack trace:#0 /var/www/etereoamor.com/wp-content/plugins/gift4u-gift-cards-all-in-one-for-woo/vendor/mpdf/mpdf/src/Mpdf.php(1050): Mpdf\Mpdf->_dochecks()#1 /var/www/etereoamor.com/wp-content/plugins/gift4u-gift-cards-all-in-one-for-woo/inc/classes/pdf.php(66): Mpdf\Mpdf->__construct()#2 /var/www/etereoamor.com/wp-content/plugins/gift4u-gift-cards-all-in-one-for-woo/inc/classes/pdf.php(24): Gift4U\Inc\Classes\PDF->init()#3 /var/www/etereoamor.com/wp-content/plugins/gift4u-gift-cards-all-in-one-for-woo/inc/classes/email.php(46): Gift4U\Inc\Classes\PDF->__construct()#4 /var/www/etereoamor.com/wp-content/plugins/gift4u-gift-cards-all-in-one-for-woo/inc/classes/email.php(81): Gift4U\Inc\Classes\Email->generate_card_pdf()#5 /var/www/etereoamor.com/wp-content/plugins/gift4u-gift-cards-all-in-one-for-woo/admin/admin.php(373): Gift4U\Inc\Classes\Email->send_email()#6 /var/www/etereoamor.com/wp-content/plugins/gift4u-gift-cards-all-in-one-for-woo/admin/admin.php(353): Gift4U\Admin\Admin->ajax_send_email()#7 /var/www/etereoamor.com/wp-includes/class-wp-hook.php(324): Gift4U\Admin\Admin->ajax()#8 /var/www/etereoamor.com/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()#9 /var/www/etereoamor.com/wp-includes/plugin.php(517): WP_Hook->do_action()#10 /var/www/etereoamor.com/wp-admin/admin-ajax.php(192): do_action()#11 {main}thrown in /var/www/etereoamor.com/wp-content/plugins/gift4u-gift-cards-all-in-one-for-woo/vendor/mpdf/mpdf/src/Mpdf.php on line 9703php version 8.1.28
       ```
   
 *  [angelagrey](https://wordpress.org/support/users/angelagrey/)
 * (@angelagrey)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/card-templates-functionality/#post-17900658)
 * Hi,
 * I supposed you’re the starter of this ticket: [https://villatheme.com/supports/topic/gift4u-gift-cards-all-in-one-for-woo/](https://villatheme.com/supports/topic/gift4u-gift-cards-all-in-one-for-woo/)
 * If yes, please keep us updated there only.
 * Thank you.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Card Templates functionality’ is closed to new replies.

 * ![](https://ps.w.org/gift4u-gift-cards-all-in-one-for-woo/assets/icon-256x256.
   gif?rev=3081747)
 * [GIFT4U - Gift Cards All in One for Woo](https://wordpress.org/plugins/gift4u-gift-cards-all-in-one-for-woo/)
 * [Support Threads](https://wordpress.org/support/plugin/gift4u-gift-cards-all-in-one-for-woo/)
 * [Active Topics](https://wordpress.org/support/plugin/gift4u-gift-cards-all-in-one-for-woo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gift4u-gift-cards-all-in-one-for-woo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gift4u-gift-cards-all-in-one-for-woo/reviews/)

 * 7 replies
 * 3 participants
 * Last reply from: [angelagrey](https://wordpress.org/support/users/angelagrey/)
 * Last activity: [1 year, 8 months ago](https://wordpress.org/support/topic/card-templates-functionality/#post-17900658)
 * Status: resolved