WP Manifestindependent plugin directory
manifest / ecommerce / otomaties-woocommerce-pdf-gift-card

Woocommerce PDF Gift Card

Sell PDF gift cards through WooCommerce with a custom design.

by Tom Broucke · github.com/tombroucke/otomaties-woocommerce-pdf-gift-card

0stars
596composer installs
1forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/tombroucke/otomaties-woocommerce-pdf-gift-card/archive/refs/heads/master.zip

Also on Packagist as tombroucke/otomaties-woocommerce-pdf-gift-card:

composer require tombroucke/otomaties-woocommerce-pdf-gift-card

From the readme

Sell PDF gift cards through WooCommerce with a custom design. Customise the PDF gift card in your custom theme or plugin. Disable custom message \addfilter('gcgetfields', function ($fields) { unset($fields['gcmessage']); return $fields; });\ Add your own pdf background \addfilter('gcpdfproperties', function ($properties) { $properties['template'] = App\assetdir( 'files/giftcard.pdf' ); return $properties; });\ Customize fields \addfilter('gcpdffields', function ($fields, $giftcard) { $fields['data']['x'] = 29; $fields['data']['y'] = 58; $fields['content']['x'] = 29; $fields['content']['y'] = 65.5; $fields['content']['fields']['recipient']['x'] = 95; $fields['content']['fields']['recipient']['y'] = 65.5; $fields['content']['fields']['coupon'] = array( 'value' = getthetitle($giftcard-getcoupon()), 'margintop' = 2.7, 'x' = 95, 'y' = 58 ); $fields['extrainformation']['x'] = 12; $fields['extrainformation']['y'] = 74; $fields['extrainformation']['fields']['validuntill']['font'] = array( 'Lato', '', 7); $fields['extrainformation']['fields']['validuntill']['align'] = 'R'; $fields['extra

Read the full README on GitHub →