mattboden
Forum Replies Created
-
Forum: Plugins
In reply to: [Restrict Content by Role] Redirects for unrestricted rolesThis thread solves the issue for me.
Weird that a “settings” feature breaks the plugin?!?!?
Hi Ewout,
Struggling with combining both of these functions (hiding invoice button for a particular category) without creating a heap of errors.
Any help warmly appreciated.
Cheers
MattAgghhh! Face palm!
Haha, of course; definitely over thinking this.
Cool, thanks again.
Matt
Hi again,
The “white screen of death” seems to be due to me using a similar code to hide the packing-slip button. When i use these together it seems to breaking something.
*/ add_filter( 'wpo_wcpdf_listing_actions', 'wpo_wcpdf_restrict_invoice_button', 20, 2 ); add_filter( 'wpo_wcpdf_meta_box_actions', 'wpo_wcpdf_restrict_invoice_button', 20, 1 ); function wpo_wcpdf_restrict_invoice_button ($actions, $order = '' ) { unset( $actions['packing-slip']); return $actions; }Hmmm, conundrum…
- This reply was modified 9 years, 3 months ago by mattboden.
Hi Ewout,
Thanks for the new snippet. It’s giving me a white screen of death though.
Also, i’d like to remove invoice button if an order is not part of a category, rather than the status of order.
Is that possible?
Thanks again for all your time on this.
MattHi Ewout,
Thanks for the new snippet. It’s giving me a white screen of death though.
Also, i’d like to remove invoice button if an order is not part of a category, rather than status of order.
Is that possible?
Thanks again for all your time on this.
MattAhhh, okay now it makes sense.
Okay, so what I actually want to do is stop the invoice from sending by any email (which I can do via the dashboard settings).
BUT more importantly what I want to do is remove the BUTTON that generates the PDF from the Admin order list for certain products (can be by product, categories or some other means to filter out products). Is that possible somehow?
Might need to rethink if not.
Thanks for indulging me.
Matt
- This reply was modified 9 years, 3 months ago by mattboden.
Ah, okay. Thanks for clarifying.
So in ALL cases the PDF is actually generated. There is only the ability to stop it attaching to an Admin email (and/or just a customer order email?).
I assume there is no means of stopping a PDF from generating at all – for certain categories or products?
- This reply was modified 9 years, 3 months ago by mattboden.
Hi Ewout,
I’ve sorted (hidden) the packing-slip from view, but PDF invoices still attach to the order email regardless of whether i use the above code to cancel the creation of the invoice.
Are you saying the code should only stop invoice pdfs from being attached to Admin order emails, or should they not be present anywhere (unless manually generated?). In my case the invoice pdf is created for all orders, even when trying to stop it from creating invoices for specific cateogries e.g. Music or Clothing.
Does that make sense? I’m not sure if i’m being unclear, or i’m misunderstanding what the filter above is supposed to be stopping.
Thanks again.
- This reply was modified 9 years, 3 months ago by mattboden.
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Adapting the Packing Slip PDFHi Ewout,
I don’t think i’ve been very clear (and have investigated further).
Firstly i don’t need to have the packing slip, which i’ve found a snippet to remove it, so that’s all good.
Secondly i want to add in additional fields to the invoice and re-style, both of those i’ve done too.
Lastly, i want to only show the PDF invoice for certain products. This can filtered be by product ID, category or Payment Gateway (there are not that many products). My problem now is that i can’t remove the PDF with the filters i’ve found on this support forum. I’ve found one for categories, and one for payment gateways, but neither will work for some reason.
I’ve deactivated plugins, but still alas. I’m sure it’s something simple, but i’m at a loss.
Thanks for your quick response to the original (confusing) support email, haha.
Matt
Hi Ewout
Doesn’t seem to be working for me. I’ve used the above code and replaced with my categories, but regardless of product purchased (with or without exluded cat) the pdf’s still showing next to orders in admin and appending invoice emails.
Any reason this might be?
Thanks in advance
Forum: Plugins
In reply to: [External Database Authentication Reloaded] Notice of Password ChangeThanks Josh. That worked for me.
It did raise something i hadnt previously spotted though in terms of resetting passwords.
For the members i have on an external DB i can set up a redirect for this link as password resets have to happen outside of wordpress.
However i have an eCommerce setup (woocommerce platform) that allows customers to create an account when paying at the checkout page. This works fine and they can register, become “customers” and login from a separate “My Account” section of Woocommerce (so away from the main login that EDAR authenticates against).
To reset passwords for Woocommerce i can get as far as a /my-account/lost-password/ page, but on entering an email to send reset confirmation the page goes white. So i’m unable to enable password reset for this group only within Worpress. Is that as expected? And if so, is there any type of workaround to allow this group (the “customers” who sit on WordPress DB only) to reset their passwords locally within WordPress?
Hope that makes sense?
Cheers
MattForum: Plugins
In reply to: [External Database Authentication Reloaded] Notice of Password ChangeHi Josh
The function code you provided doesn’t seem to work either (i know you said it was untested).
Thanks for ongoing help with this.
Cheers
MattForum: Plugins
In reply to: [External Database Authentication Reloaded] Notice of Password ChangeThanks for further support Josh!
Okay, so i’m a bit confused. I’ll check theme and plugins again.
I’ve another WP website also using the database auth plugin, and updated this site to WordPress 4.3 yesterday. And now that one is doing the same thing on that site too.
I’ve not tested your code above yet, but it has prompted a thought.
The original site that had this problem is an eCommerce site (woocommerce), and whilst “members” reside on an external DB and can login via your plugin, there are also “customers” who can create an account locally on the website. Wondering how this will affect password reseting for this user group? What should it be doing in this scenario?
Currently I can register and login as a “customer” directly onto my WP site/database (woocommerce) no problem, but I can’t reset the password for that customer using “password reset” /my-account/lost-password/ – just getting a blank white screen when EDAR is activated). Again should this work and bypass EDAR plugin?
Does that make sense?
I’ll do some testing again my end by deactivating plugins & theme.
Cheers
MattForum: Plugins
In reply to: [External Database Authentication Reloaded] Notice of Password ChangeHi Josh,
Any update on this as yet?
Thanks