tombroucke / otomaties-woocommerce-pdf-gift-card
Sell PDF gift cards through WooCommerce with a custom design.
Installs: 460
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 20
Type:wordpress-plugin
Requires
- php: ^8.0
- composer/installers: ^2.0
- illuminate/support: ^9.33 || ^10.0
- setasign/fpdf: ^1.8
- setasign/fpdi: ^2.1
Requires (Dev)
- dev-master
- 3.2.1
- 3.2.0
- 3.1.0
- 3.0.3
- 3.0.2
- 3.0.1
- 3.0.0
- 2.4.1
- 2.4.0
- 2.3.0
- 2.2.1
- 2.2.0
- 2.1.0
- 2.0.2
- 2.0.1
- 2.0.0
- 1.5.1
- 1.5.0
- 1.4.0
- 1.3.5
- 1.3.4
- 1.3.3
- 1.3.2
- 1.3.1
- 1.3.0
- 1.2.9
- 1.2.8
- 1.2.7
- 1.2.6
- 1.2.5
- 1.2.4
- 1.2.3
- 1.2.2
- 1.2.1
- 1.2.0
- dev-snyk-fix-aa4a5a613537ce89930062c7be9efc1a
- dev-snyk-fix-2b8699d741eda5545312e01f7613c1c9
- dev-snyk-fix-15563fe98fd5e3d2bd7caceab773bed1
- dev-snyk-fix-78782bd7ee295d5b3685d478ee1649ed
- dev-snyk-fix-5e717a85c9c6d41373db1fdd739ffc65
- dev-snyk-fix-052fc5b54cf236b9cd557e4936d40749
- dev-snyk-fix-62e8f4c306d783532a0a19f4973786dd
- dev-php8-fix
- dev-snyk-fix-143346e9139917936406659b953a9715
- dev-snyk-fix-2b8dc862c99851d6818fbfa691d13bc4
- dev-snyk-fix-8d146c449470bb01aebfddafc2ee56e4
- dev-snyk-fix-0439d161ac84e536ae09e5c5b95c67eb
- dev-snyk-fix-b093d64e11ac3854cc36c498db0d5be5
- dev-snyk-fix-0ade6b1c0b3996d196b0c2c3d70e93a7
- dev-snyk-fix-03add1dd1f8de16f3e665c644d4e3305
- dev-snyk-upgrade-3b60b3e16631a6c5a6487891bd45bf88
- dev-dependabot/npm_and_yarn/json5-1.0.2
- dev-snyk-fix-f377b171d6b8f8f92679fbd4f7297f81
- dev-snyk-upgrade-98af1bc16043410dbc80fca15635ec99
- dev-snyk-upgrade-e3268a00aec5ec800fbeca008731813f
- dev-snyk-upgrade-a76bd079149fb6b956de0f126c8bfb80
- dev-puc
- dev-develop
This package is auto-updated.
Last update: 2024-11-06 07:48:46 UTC
README
=== Otomaties Woocommerce Pdf Gift Card === Contributors: tompoezie Donate link: https://example.com/ Tags: woocommerce, coupon, gift card, Requires at least: 5.0 Tested up to: 5.4.1 Requires PHP: 7.2 Stable tag: 1.2.6 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Sell PDF gift cards through WooCommerce with a custom design. == Description == Customise the PDF gift card in your custom theme or plugin. Disable custom message \`add_filter('gc_get_fields', function ($fields) { unset($fields['_gc_message']); return $fields; });\` Add your own pdf background \`add_filter('gc_pdf_properties', function ($properties) { $properties['template'] = App\asset_dir( 'files/gift_card.pdf' ); return $properties; });\` Customize fields \`add_filter('gc_pdf_fields', function ($fields, $gift_card) { $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' => get_the_title($gift_card->get_coupon()), 'margin_top' => 2.7, 'x' => 95, 'y' => 58 ); $fields['extra_information']['x'] = 12; $fields['extra_information']['y'] = 74; $fields['extra_information']['fields']['valid_untill']['font'] = array( 'Lato', '', 7); $fields['extra_information']['fields']['valid_untill']['align'] = 'R'; $fields['extra_information']['fields']['valid_untill']['width'] = 132; unset($fields['data']['fields']['amount']['color']); unset($fields['data']['fields']['amount']['font']); unset($fields['content']['fields']['message']); unset($fields['content']['fields']['message']); return $fields; }, 99, 2);\` == Changelog == *** Otomaties WooCommerce PDF Gift Card *** = 1.2.6 = * Added FR translation = 1.2.5 = * Better way to display meta in backend, without duplicating gift card meta = 1.2.4 = * Check if WooCommerce is active to avoid fatal error = 1.2.3 = * Default maxlength * Trim message in cart & checkout, not in admin = 1.2.2 = * Bug fix * Check if user can manage_woocommerce before downloading gift card * Add settings page in WooCommerce->settings->products->gift card to enable debugging * Remove empty lines from message = 1.2.1 = * Bug fix = 1.2.0 = * Initial release