shareasale-wp
Forum Replies Created
-
Forum: Plugins
In reply to: [ShareASale WooCommerce Tracker] Discount for retargeting onlyThis plugin will not help with that use case.
I was able to replicate the problem with WooRewards Pro. It looks like that plugin executes the
woocommerce_coupon_options_savehook without executing theadmin_inithook (where ShareASale_WC_Tracker_Coupon class is included) like our plugin expects.Try replacing the file at /public_html/wp-content/plugins/shareasale-wc-tracker/admin/class-shareasale-wc-tracker-admin.php with the updated file here. Then reactivate the ShareASale and WooRewards plugins, if either is deactivated, and give a user enough loyalty points to generate a coupon automatically to see if the error happens again.
If this works for you, we can roll out the solution to everyone in the next version update!
Forum: Plugins
In reply to: [ShareASale WooCommerce Tracker] Woocommerce 4 compatibility@one3rdnerd it was just released this evening!
Forum: Plugins
In reply to: [ShareASale WooCommerce Tracker] Woocommerce 4 compatibilityThe next release coming soon will confirm compatibility with WooCommerce 4.0.1. Thanks for your patience!
Forum: Plugins
In reply to: [ShareASale WooCommerce Tracker] Get_Posts() with numberposts set to -1Hey Daniel, thanks for this great feedback. We’ll look into adding it to the next update soon.
Forum: Plugins
In reply to: [ShareASale WooCommerce Tracker] get_used_coupons is deprecatedThis has been resolved with version 1.4.3, but I would recommend not showing PHP errors, notices, or warnings in your live/production website (if that’s where you saw it occur).
Forum: Plugins
In reply to: [ShareASale WooCommerce Tracker] Out of memory while generating csv feedThis is great! We’ll include the tweak in version 1.4.2 soon.
Forum: Plugins
In reply to: [ShareASale WooCommerce Tracker] Do you need the tag as wellYou should only use the plugin, and not a second tag on the site. Once you’ve entered at least your Merchant ID into the settings, the plugin handles all tracking for you (among other features). A second tag may cause duplicately tracked transactions in ShareASale.
Forum: Plugins
In reply to: [WP2Static] Preserve custom output directory with CLI?Hi Leon,
No worries!
My WP site is installed in a root directory, so it’s accessible from the TLD. The main testing environment is a virtual machine (WordPress docker container), but I’ve also tested it on my regular webserver with the same results so I don’t think the environment had an effect.
Forum: Plugins
In reply to: [WP2Static] Preserve custom output directory with CLI?Digging into the logs, it looks like it’s due to a fatal error:
PHP Fatal error: Uncaught Error: Call to undefined function get_home_path() in /var/www/html/wp-content/plugins/static-html-output-plugin/library/StaticHtmlOutput/UrlRequest.php:1148 Stack trace: #0 /var/www/html/wp-content/plugins/static-html-output-plugin/library/StaticHtmlOutput.php(457): StaticHtmlOutput_UrlRequest->cleanup() #1 /var/www/html/wp-content/plugins/static-html-output-plugin/library/StaticHtmlOutput.php(508): StaticHtmlOutput->crawlABitMore(true) #2 /var/www/html/wp-content/plugins/static-html-output-plugin/library/StaticHtmlOutput.php(1058): StaticHtmlOutput->crawl_site(true) #3 /var/www/html/wp-content/plugins/static-html-output-plugin/wp-static-html-output.php(53): StaticHtmlOutput->doExportWithoutGUI() #4 /var/www/html/wp-includes/class-wp-hook.php(284): wp_static_html_output_server_side_export() #5 /var/www/html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array) #6 /var/www/html/wp-includes/plugin.php(515): WP_Hook->do_action(Array) #7 /var/www/html/wp-cron.php(126): do_action_ref_array in /var/www/html/wp-content/plugins/static-html-output-plugin/library/StaticHtmlOutput/UrlRequest.php on line 1148Just switching
get_home_path()withABSPATHfixes the issue, as far as I can tell.Forum: Plugins
In reply to: [WP2Static] Preserve custom output directory with CLI?Additionally, I noticed in 2.6 the settings page URL/slug must have changed so immediately after updating, you get an access denied instead. I solved this same situation in another plugin of mine by using WordPress’ “admin_page_access_denied” hook with this function:
/* for backwards compatibility with v1.0's old settings slug... */ public function admin_page_access_denied() { if ( isset( $_GET['page'] ) && 'old_plugin_name' === $_GET['page'] ) { $new_settings_url = menu_page_url( 'new_plugin_name', false ); wp_redirect( $new_settings_url ); exit; } }Hope it helps!
Forum: Plugins
In reply to: [WP2Static] Preserve custom output directory with CLI?Unfortunately 2.6 seems to have broken the CLI exports for us. At first I thought it just wasn’t retaining the files and zip archive for CLI exports, since all I got back was an empty directory when it was triggered. However, checking the WP-STATIC-EXPORT-LOG file shows it has only a couple of line entries compared to the manual export, which works fine. Maybe something to look into?
Reverting to the 2.5 version you linked above on Github fixed it for us.
Forum: Plugins
In reply to: [ShareASale WooCommerce Tracker] Error Notice on pluginHi Gwlwp,
Are these showing up in your live, production site? I would recommend just turning off displaying notices of this kind anywhere except your staging/development sites if you have them. Here’s an article that describes how:
http://www.wpbeginner.com/wp-tutorials/how-to-turn-off-php-errors-in-wordpress/
In a future version we’ll clean up the code to avoid causing these notices but they’re overall harmless.
Forum: Plugins
In reply to: [WP2Static] Preserve custom output directory with CLI?Done, and one better — I also donated to the plugin’s development. Thanks again. 🙂
Forum: Plugins
In reply to: [WP2Static] Preserve custom output directory with CLI?Thanks, Leon! I really appreciate it. So far it works great, but I’ll let you know if I discover anything else with 2.6. 🙂