phareweb35
Forum Replies Created
-
Hi,
Yes I am, I’m using this code snippet in order to remove invoice generation for products paid with rechargeable wallet (plugin by StandaloneTech). Here is the code snippet :
add_filter( 'wpo_wcpdf_document_is_allowed', function( $allowed, $document ) {
if ( ! empty( $document->order) && 'invoice' === $document->get_type() ) {
$order = $document->order;
$payment_method = is_callable( array( $order, 'get_payment_method' ) ) ? $order->get_payment_method() : '';
if ( 'wallet' === $payment_method ) {
$allowed = false;
}
}
return $allowed;
}, 10, 2 );I also use other code snippets for Woocommerce but none of them are related to your plugin.
Thanks for support.
Paul
It works !
Thanks a lot for your support.
Hi,
Still not working, this time, the additional recipient email is receiving the invoice. Here is what I have in my functions.php :
/* Send order to third party email */
function add_third_party_email($recipient, $order)
{
global $woocommerce;
$items = $order->get_items();
foreach ($items as $item) {
$product_id = $item[‘product_id’];
$rechargeable_id = get_wallet_rechargeable_product()->get_id();
// We check if the product is not Wallet recharge or AGRI / TP / PL
if ($product_id !== 4299 && $product_id !== $rechargeable_id) {
$additional_email1 = ‘[email protected]’;
if (!empty($additional_email1)) {
$recipient .= ‘,’ . $additional_email1;
}
return $recipient;
}
}
}
add_filter(‘woocommerce_email_recipient_new_order’, ‘add_third_party_email’, 10, 2);add_filter( ‘wpo_wcpdf_custom_attachment_condition’, function( $attach, $order, $email_id, $document_type, $output_format ) {
if ( ‘new_order’ === $email_id ) {
$emails = WC()->mailer()->get_emails();if ( isset( $emails[ $email_id ] ) ) { $email = $emails[ $email_id ]; $recipient = $email->get_recipient(); if ( ! empty( $recipient ) && strpos( $recipient, '[email protected]' ) !== false ) { $attach = false; } } } return $attach;
}, 10, 5 );
Thanks again for your help.
Hi,
Thanks for support.
I pasted your code snippet bellow mine (the one in my original support question). It works, the additional recipient email doesn’t get the PDF invoice attached to the confirmation mail, but the client also doesn’t get the PDF.
I just need the additional recipient email to be the only one to NOT receive the PDF invoice.
Thanks for your help.
Paul
Any way to fix this ? Still waiting for a reply.
Best regards.
Paul
Forum: Plugins
In reply to: [Wallet for WooCommerce] Where to find the rechargeable product ID ?Hi, thanks for the quick support, everything good now.
Best regards.
Sorry for that, this setting is enabled on my side, in fact I can see that it works (no VAT taxes applied). However I still have the problem when I charge my wallet with +100€, I only get 83,33€ charged (the non VAT value equivalent).
Thanks for your help.
Hi,
Thanks for your reply, yes I did enable “Enable to allow customers to recharge their wallet without tax applied”, I can’t find the ” Make Wallet Rechargeable Product Tax Free” option.
See the screenshot : https://ibb.co/T1MbcF1
Thanks for your help.
Paul
Forum: Plugins
In reply to: [WooCommerce] Can’t find the way to increase the number of products per pageHi and thanks for the reply.
I indeed tried switching themes but the option “Rows per page” still doesn’t appear.
What could be the solution on the Woocommerce side to fix it, beside paying a monthly subscription to the WC products per page plugin you linked in your reply ?
Best regards.
Paul
Forum: Themes and Templates
In reply to: [Kadence] Number of Woocommerce products per pageIn fact, the problem isn’t related to Kadence theme. I tried with another WordPress theme and the option is still not showing.
I’m marking this support question as solved, thanks for your help.
Forum: Themes and Templates
In reply to: [Kadence] Number of Woocommerce products per pageThanks for your reply.
You can see in this screenshot that I only have the “Products per row” option, and that I don’t have “Rows per page”.
I know about debugging, my WordPress core, themes and plugins are all up to date, I’m running on PHP 8.
Please can you help me find the solution ?
Best regards.
Paul