| 开发者 |
egiftbv
sanderdesait |
|---|---|
| 更新时间 | 2026年11月10日 02:28 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[egift] in page builders without blocks, for example [egift accent="#c0392b" experience="12"].Yes. The plugin places the eGift Widget of your eGift account on your site. Creating an account is free: use the "Create a free account" link under Settings > eGift, or register at egift.be.
The plugin is free. eGift charges its usual commission on each gift voucher sold through the Widget, exactly as for a sale on egift.be. See the eGift merchant terms.
In the eGift portal, on "Bon op uw eigen website", under "Plak deze code op uw pagina". Your merchant ID alone works as well.
Use the eGift Widget block in the block editor. In page builders without blocks, put the shortcode [egift] in a text or shortcode element.
Yes. Choose it in the block's settings, or add its ID to the shortcode: [egift experience="12"]. The IDs are on the "Bon op uw eigen website" page in the eGift portal.
Buyers choose and pay inside the Widget, which egift.be shows in a frame on your page. No payment or buyer data passes through your site. The plugin stores your merchant ID, your API-sleutel and which page it created, and nothing about your visitors.
Check Settings > eGift. If the site is not connected yet, logged-in administrators see a hint on the page and visitors see nothing. If steps are still missing in your eGift account, finish them in the eGift portal first.
eGift takes what is left, and the order goes on hold with a note of the amount still to collect from the buyer.
Yes, with the egift_eligible_amount filter; there is no setting for it. It receives the part of the cart total that gift vouchers may pay (the whole total with shipping and taxes) and the cart, and can only lower that part. For example, to leave out the category "wine":
add_filter( 'egift_eligible_amount', function ( $eligible, $cart ) {
foreach ( $cart->get_cart() as $item ) {
if ( has_term( 'wine', 'product_cat', $item['product_id'] ) ) {
$eligible -= $item['line_total'] + $item['line_tax'];
}
}
return $eligible;
}, 10, 2 );
The buyer pays the rest with another payment method.
Turn on the diagnostics mode under Settings > eGift. Logged-in administrators then see in the cart and the checkout each step from the cart total to the amount to pay, and the active plugins. A discount or pricing plugin is the usual cause. Buyers never see it.
[egift] shortcode or a ready-made "Gift voucher" page.egift_eligible_amount filter for developers.