For Developers
Filters
Section titled “Filters”wpify_woo_zbozi_conversion_render_code
Section titled “wpify_woo_zbozi_conversion_render_code”Controls whether the conversion code should be rendered.
add_filter( 'wpify_woo_zbozi_conversion_render_code', function( $render ) { // Do not display for certain payment methods $order_id = absint( get_query_var( 'order-received' ) ); $order = wc_get_order( $order_id );
if ( $order && $order->get_payment_method() === 'cod' ) { return false; } return $render;} );| Parameter | Type | Description |
|---|---|---|
$render | bool | true to display (default) |
Returns: bool
wpify_woo_zbozi_conversion_script_parameters
Section titled “wpify_woo_zbozi_conversion_script_parameters”Modifies parameters sent in the conversion code.
add_filter( 'wpify_woo_zbozi_conversion_script_parameters', function( $parameters ) { // Add custom parameter $parameters['customParam'] = '"value"'; return $parameters;} );| Parameter | Type | Description |
|---|---|---|
$parameters | array | Array of parameters for conversionConf |
Returns: array
Default structure:
[ 'zboziId' => 12345, 'orderId' => '"67890"', 'zboziType' => '"limited"', 'id' => 98765, // Sklik ID (if set) 'value' => 1500.00, // order value (for Sklik) 'consent' => 'document.cookie.includes("cmplz_marketing=allow") ? 1 : 0']| Hook | Type | Description |
|---|---|---|
woocommerce_thankyou | Action | Renders conversion code on the thank you page |
Output Code Structure
Section titled “Output Code Structure”<!-- Zbozi.cz / Sklik conversion Limited --><script type="text/javascript" src="https://c.seznam.cz/js/rc.js"></script><script> var conversionConf = { zboziId: 12345, orderId: "67890", zboziType: "limited", id: 98765, value: 1500.00, consent: document.cookie.includes("cmplz_marketing=allow") ? 1 : 0 }; if (window.rc && window.rc.conversionHit) { window.rc.conversionHit(conversionConf); }</script>Duplication Warning
Section titled “Duplication Warning”If you have both this module and the premium WPify Woo Zbozi.cz Conversion tracking extension active simultaneously, a warning about possible conversion code duplication will be displayed in the administration.
We recommend having only one of these modules active.