WPIntell

Source evidence

Configure this plugin to work for all users (not just admin)?

WC Order Test · support · 2020-05-05T11:55:00+00:00

complaintsentiment
highseverity
1.0relevance
5replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

6 / 25 rows with source links

24.0% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

19 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
arthurlam1 unresolved
Is it possible to configure this plugin such that all users can submit test transactions, not just admin? Thanks. +1 Set WP_DEBUG to true and it will work for everyone. @mickaelperrin : Would you mind explaining how to do that? Does that involve placing this in the functions.php? define( 'WP_DEBUG', true ); Also – will normal functions on my website be affected because of this change? This reply was modified 5 years, 4 months ago by arthurlam1 . @arthurlam1 Put in in wp-config.php. And yes, the impact of this settings is broader than this extension. It will activate a lot of logging / debugging infos. This is not intended to be used in production, but like this plugin I guess. Set WP_DEBUG to true and it will work for everyone. Could this behaviour be changed or made note of in the plugin? On the settings page for WC Order Test, it says: Only admin users will see this option on the checkout page. For WP_DEBUG to trigger it also is unexpected behaviour that unfortunately caught me off guard while trying to diagnose an issue today. WP_DEBUG can sometimes be enabled on production sites in tandem with WP_DEBUG_LOG and WP_DEBUG_DISPLAY for silent logging of errors. “100% off all orders while I troubleshoot an issue,” is certainly an interesting proposition! But having a specific debug constant for WC Order Test or some kind of ‘users who can use this’ control in admin would be fantastic… and save me some stress. Would be happy to do up a pull request. EDIT: Well, this has actually been a worthwhile discovery. Turns out @wpfixit have seemingly copied Sean Barton of Tortoise IT ‘s plugin and republished it without crediting him. Really not in the spirit of the GPL license that he released it under. But what do you know, Sean’s original readme for the plugin said: “Adds a test payment gateway to WooCommerce available only to logged in administrators or when WP_DEBUG is enabled.” I’m just going to modify Sean’s plugin and start using that instead. -_- This reply was modified 5 years, 3 months ago by Ben . Reason: New knowledge

Comments

5 shown
chomique 2020-09-25T14:36:00+00:00

+1

mickaelperrin 2021-01-13T17:23:00+00:00

Set WP_DEBUG to true and it will work for everyone.

arthurlam1 2021-01-14T14:00:00+00:00

@mickaelperrin : Would you mind explaining how to do that? Does that involve placing this in the functions.php? define( 'WP_DEBUG', true ); Also – will normal functions on my website be affected because of this change? This reply was modified 5 years, 4 months ago by arthurlam1 .

mickaelperrin 2021-01-20T11:16:00+00:00

@arthurlam1 Put in in wp-config.php. And yes, the impact of this settings is broader than this extension. It will activate a lot of logging / debugging infos. This is not intended to be used in production, but like this plugin I guess.

Ben 2021-02-16T11:44:00+00:00

Set WP_DEBUG to true and it will work for everyone. Could this behaviour be changed or made note of in the plugin? On the settings page for WC Order Test, it says: Only admin users will see this option on the checkout page. For WP_DEBUG to trigger it also is unexpected behaviour that unfortunately caught me off guard while trying to diagnose an issue today. WP_DEBUG can sometimes be enabled on production sites in tandem with WP_DEBUG_LOG and WP_DEBUG_DISPLAY for silent logging of errors. “100% off all orders while I troubleshoot an issue,” is certainly an interesting proposition! But having a specific debug constant for WC Order Test or some kind of ‘users who can use this’ control in admin would be fantastic… and save me some stress. Would be happy to do up a pull request. EDIT: Well, this has actually been a worthwhile discovery. Turns out @wpfixit have seemingly copied Sean Barton of Tortoise IT ‘s plugin and republished it without crediting him. Really not in the spirit of the GPL license that he released it under. But what do you know, Sean’s original readme for the plugin said: “Adds a test payment gateway to WooCommerce available only to logged in administrators or when WP_DEBUG is enabled.” I’m just going to modify Sean’s plugin and start using that instead. -_- This reply was modified 5 years, 3 months ago by Ben . Reason: New knowledge