For Developers
Filters
Section titled “Filters”wpify_woo_heureka_render_widget
Section titled “wpify_woo_heureka_render_widget”Controls whether the certification widget should be displayed.
add_filter( 'wpify_woo_heureka_render_widget', function( $render ) { // Do not display widget on specific pages if ( is_page( 'landing-page' ) ) { return false; } return $render;} );| Parameter | Type | Description |
|---|---|---|
$render | bool | true to display, false to hide |
Returns: bool
wpify_woo_heureka_disable_send
Section titled “wpify_woo_heureka_disable_send”Allows blocking data submission to Heureka for a specific order.
add_filter( 'wpify_woo_heureka_disable_send', function( $disable, $order ) { // Do not send for B2B orders if ( $order->get_meta( '_is_b2b_order' ) ) { return true; } return $disable;}, 10, 2 );| Parameter | Type | Description |
|---|---|---|
$disable | bool | true to block sending |
$order | WC_Order | Order object |
Returns: bool
wpify_woo_heureka_add_optout
Section titled “wpify_woo_heureka_add_optout”Controls whether to add the opt-out checkbox to checkout.
add_filter( 'wpify_woo_heureka_add_optout', function( $add_optout ) { // Do not add opt-out for registered customers if ( is_user_logged_in() ) { return false; } return $add_optout;} );| Parameter | Type | Description |
|---|---|---|
$add_optout | bool | true to add checkbox |
Returns: bool
wpify_woo_heureka_overeno_item_id
Section titled “wpify_woo_heureka_overeno_item_id”Modifies the product ID sent to Heureka.
add_filter( 'wpify_woo_heureka_overeno_item_id', function( $item_id, $item, $order ) { // Use SKU instead of ID $product = $item->get_product(); if ( $product && $product->get_sku() ) { return $product->get_sku(); } return $item_id;}, 10, 3 );| Parameter | Type | Description |
|---|---|---|
$item_id | string | Product ID |
$item | WC_Order_Item_Product | Order item |
$order | WC_Order | Order object |
Returns: string
wpify_woo_heureka_overeno_data
Section titled “wpify_woo_heureka_overeno_data”Modifies the complete data sent to Heureka.
add_filter( 'wpify_woo_heureka_overeno_data', function( $data, $order ) { // Add custom data $data['custom_field'] = 'value'; return $data;}, 10, 2 );| Parameter | Type | Description |
|---|---|---|
$data | array | Data for sending |
$order | WC_Order | Order object |
Returns: array
Data structure:
[ 'email' => 'customer@email.com', 'order_id' => 12345, 'products' => [ ['id' => 'SKU123', 'name' => 'Product name'], // ... ]]Shortcodes
Section titled “Shortcodes”[wpify_woo_heureka_reviews]
Section titled “[wpify_woo_heureka_reviews]”Displays reviews from Heureka.
[wpify_woo_heureka_reviews count="6" widget="1" button_text="" button_url=""]| Attribute | Default | Description |
|---|---|---|
count | 6 | Number of reviews |
widget | 1 | Widget (1) or list (0) |
button_text | empty | Button text |
button_url | empty | Button URL |
Order Meta Data
Section titled “Order Meta Data”_wpify_woo_heureka_optout_agreement
Section titled “_wpify_woo_heureka_optout_agreement”Stores the customer’s choice regarding opt-out/opt-in.
// Getting the value$optout = $order->get_meta( '_wpify_woo_heureka_optout_agreement' );
// Values:// '1' or 'yes' - customer checked the checkbox// empty - customer did not check the checkboxLogic:
- Opt-out mode: If the value is
1/yes, the survey is not sent - Opt-in mode: If the value is
1/yes, the survey is sent
Logging
Section titled “Logging”The module supports logging for diagnostics. Logs are saved to:
wp-content/uploads/wpify-woo-logs/heureka-overeno-*.logLogs contain:
- Successful submissions to Heureka
- API communication errors
- Opt-out choice information
Block Checkout
Section titled “Block Checkout”The module fully supports WooCommerce block checkout. The opt-out checkbox is automatically integrated into the block checkout using the WooCommerce Store API.