Skip to content

For Developers

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;
} );
ParameterTypeDescription
$renderbooltrue 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;
} );
ParameterTypeDescription
$parametersarrayArray 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'
]
HookTypeDescription
woocommerce_thankyouActionRenders conversion code on the thank you page
<!-- 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>

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.