Flagging issue with blocking
-
Hi,
We are developers of a number of extensions for WooCommerce, we have seen a few support requests lately, which are being caused by the iubenda plugin, specifically either the automatic blocking (which doesn’t appear to be able to be disabled), and/or native blockings feature.
I am aware the automatic blocking is stated as an experimental feature as per this documentation: https://www.iubenda.com/en/help/133036-prior-blocking-of-cookies-automatic-blocking-auto-blocking, but would like to flag some issues it is causing, in a hope that you can consider rectifying how the automatic blocking is working, as in the current state, it can break inline JavaScript. That combined with this experimental feature seemingly being on by default it is effecting a number of websites (we just installed the plugin and it immediately causes the issues below).
Here are a few examples of the issue, e.g. if you have inline JS that does this:
$( '<a href="#" id="wcrp-rental-products-add-to-order-6638e3421f57e" class="wcrp-rental-products-add-to-order single_add_to_cart_button button ">Add to order #' + addRentalProductsPopupOrderId + '</a>' ).insertBefore( $( '#wcrp-rental-products-rental-form-wrap-6638e3421f57e' ).find( '.cart button[type="submit"]' ) );
Then the result with iubenda active and the native blocking is this:
$( '<a href="#" id="wcrp-rental-products-add-to-order-6638e39eed7af" class="wcrp-rental-products-add-to-order single_add_to_cart_button button ">Add to order #' + addRentalProductsPopupOrderId + '' ).insertBefore( $( '#wcrp-rental-products-rental-form-wrap-6638e39eed7af' ).find( '.cart button[type="submit"]' ) );
Note in the above that the
</a>
has been removed.Another example, if you have inline JS like this:
$( '<div id="wcrp-rental-products-availability-checker-auto-population-information-6638e3421f57e" class="wcrp-rental-products-availability-checker-auto-population-information wcrp-rental-products-information">' + rentalFormrentalFormAvailabilityCheckerPopulationInformation + ' <a href="/wordpress/product/hoodie-with-logo/?wcrp_rental_products_availability_checker_reset=1">Reset?</a></div>' ).insertAfter( $( '#wcrp-rental-products-rental-dates-wrap-6638e3421f57e' ) );
Then the result with iubenda active and the native blocking is this:
$( '<div id="wcrp-rental-products-availability-checker-auto-population-information-6638e39eed7af" class="wcrp-rental-products-availability-checker-auto-population-information wcrp-rental-products-information">' + rentalFormrentalFormAvailabilityCheckerPopulationInformation + ' <a href="/wordpress/product/hoodie-with-logo/?wcrp_rental_products_availability_checker_reset=1">Reset?</script> </form> </div>' ).insertAfter( $( '#wcrp-rental-products-rental-dates-wrap-6638e39eed7af' ) );
Note in the above that the
</a>
has been removed, and has been replaced with a</script></form>
, which breaks the JavaScript on the page, and outputs any further inline JS after this directly in the page as HTML.Thank you,
- The topic ‘Flagging issue with blocking’ is closed to new replies.