tombroucke/otomaties-woocommerce-pdf-gift-card
Composer 安装命令:
composer require tombroucke/otomaties-woocommerce-pdf-gift-card
包简介
Sell PDF gift cards through WooCommerce with a custom design.
README 文档
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
tombroucke/otomaties-woocommerce-pdf-gift-card 适用场景与选型建议
tombroucke/otomaties-woocommerce-pdf-gift-card 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 568 次下载、GitHub Stars 达 0, 最近一次更新时间为 2020 年 04 月 30 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 tombroucke/otomaties-woocommerce-pdf-gift-card 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 tombroucke/otomaties-woocommerce-pdf-gift-card 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 568
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 13
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2020-04-30