kesk
Forum Replies Created
-
It is fixed, they added a setting to the dashboard page of the payment gateway where you can enable adding the QR code to each of the woocommerce emails, and if you do not enable it for a specific email than this overwrites the settings and the PDF invoice doesn’t get attached. It looks like this:
Best regards,
KemalI have found the cause, the plugin “F4 QR Rechnungen für WooCommerce” is causing it. I will contact them.
Thanks for the help.
I have searched our custom code for
wpo_wcpdf
assuming that code that interferes with it would use an action hook that is named like that. And the only thing I found is this:add_action('wpo_wcpdf_custom_styles', function($type, $order_document) { if ($type === 'invoice') { ?> .qr-invoice-page { page-break-before: always !important; } <?php } }, 99, 2);
And just now a new order went in with a different payment method and the PDF is attached:
- This reply was modified 2 years, 2 months ago by kesk.
I have a similar problem and I can confirm it.
I use the
woocommerce_after_checkout_validation
hook to validate some checkout data and a call towc_add_notice('XXX', 'error')
interrupts the checkout process but the error is not displayed.Forum: Plugins
In reply to: [WooCommerce] Variation get_children() returns empty array in some situationsI solved this.. I just use
add_action('woocommerce_product_query', 'filter_express_versand_products');
instead of
add_filter( 'pre_get_posts', 'filter_express_versand_products' );
and now it works as it should
Forum: Plugins
In reply to: [WooCommerce] Variation get_children() returns empty array in some situationsHello,
I can reproduce it like this:
First add meta values to variable products:
add_action('wp', function() { add_post_meta(228, "example", rand(1,999)); add_post_meta(209, "example", rand(1,999)); });
Code to filter products in archive:
function filter_express_versand_products( $query ) { if (is_archive() && isset($_GET["example"]) && $_GET["example"] === "1") { $meta_query_args = array( 'meta_query' => array( array( 'key' => 'example', 'value' => '', 'compare' => '!=' ) ) ); $query->set('meta_query', $meta_query_args); } return $query; } add_filter( 'pre_get_posts', 'filter_express_versand_products' );
Delete all transients with WP-CLI:
wp transient delete --all
Open the filtered archive
/shop/?example=1
After that, all variable products with these meta values are broken.
- This reply was modified 3 years, 11 months ago by kesk.