How to fix a gift card image not showing in the email?
There are a number of reasons for gift card images not showing in the email. To resolve this issue, kindly try the solutions below.
1. Please, note that for correct sending of images via emails, the module requires installation of the Imagick module on the server as well as dompdf library. Therefore, as the first step, make sure that Imagick module and dompdf library are installed. You may install the extensions via composer with the following commands:
composer require dompdf/dompdf
sudo apt-get install php-imagick
2. If the modules required are already installed, then, please, try to adjust the /etc/ImageMagick-6/policy.xml file by adding the following line: <policy domain="coder" rights="read|write" pattern="PDF" /> - to the end of the file. The final code should look as follows:
.....
<policy domain="coder" rights="none" pattern="XPS" />
<policy domain="coder" rights="read|write" pattern="PDF" />
</policymap>
Related Articles
Gift Card API
1. Amasty\GiftCard\Api\ImageRepositoryInterface - class for managing gift card images: POST /V1/amgcard/image, method="save" - save a gift card image; PUT /V1/amgcard/image/:id, method="save" - save a gift card image by ID; DELETE ...
How does printed card work in the Gift Card extension?
By default, the Gift Card extension offers administrators the flexibility to choose the type of gift card during its creation: virtual, printed (physical), or combined. A virtual gift card functions as an email-sent code, resembling the format of ...
Gift Card | GraphQL methods
Queries amGiftCardAccount(input: AmGiftCardAccountInput!) description: get gift card account information by code amGiftCardSetting description: get gift card module settings amGiftCardPreview(input: AmGiftCardPreviewInput) description: get rendered ...
Is it possible to rearrange and stylize elements on the gift card image?
Starting from version 2.7.0, the Gift Card extension provides UI for editing and rearranging elements (expiry date, balance, etc.) on the gift card image right from the admin panel. To do so, add a new image in Gift Card → Images → Add New or open ...
How to choose time/date of sending a gift card via email?
The extension allows customers to select only the date of certificate delivery. For greater delivery accuracy, customers will need to specify the recipient's timezone. The email is sent with the execution of the first cron job on the selected date. ...