Mironomadic
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce Stripe Payment Gateway] move apple/google pay button in checkoutStumbled on this ticket as i was trying to find the hook for the button
Ok I know this is old but for other you should NEVER modify the core code as suggested by @christiancabrero . You can use your functions.php of your child theme. So you can do like this @jamiee89 :
remove_action( 'woocommerce_checkout_before_customer_details', array( WC_Stripe_Payment_Request::instance(), 'display_payment_request_button_html' ), 1 ); //removes the button remove_action( 'woocommerce_checkout_before_customer_details', array( WC_Stripe_Payment_Request::instance(), 'display_payment_request_button_separator_html' ), 2 ); // removes the separator under button add_action( 'woocommerce_review_order_before_payment', array( WC_Stripe_Payment_Request::instance(), 'display_payment_request_button_html' ), 1 ); // adds the button before payments add_action( 'woocommerce_review_order_before_payment', array( WC_Stripe_Payment_Request::instance(), 'display_payment_request_button_separator_html' ), 2 ); // adds separator before payments after button
Forum: Plugins
In reply to: [Nelio AB Testing] Load plugin scripts first!Sorry for the late reply but It was around 5am for me and i had stayed all day and night, so I hit the bed after the last upgrade!
Yes true, jquery are essential no complaining ??
Before the Nelio move I had already brought speed down by heavily cleaning up the database tables (the was a little frustrating because for many tables it is hard to identify the related script and we would not want to delete a running script table but was able to do so by searching wp-content with regex), there was a lot of deleted plugins left overs, and that significantly reduced the number of request from around 200 to around 50!
Then I also disabled unnecessary plugin from loading on pages when not needed, that did some magic! At this point speed was reduced about 5s.
Then came the Nelio move which gained us around 2s speed, so the speed objective was accomplished.
Thank you very much for your amazing support, well done and best of luck!
Forum: Plugins
In reply to: [Nelio AB Testing] Load plugin scripts first!Great!!! However, nelio script is ranking fourth.
jquery.js?ver=1.11.3
jquery-migrate.min.js?ver=1.2.1
widget-groups.min.js?ver=2.3.4
6657419267538944.js?ver=4.2.10Forum: Plugins
In reply to: [Nelio AB Testing] Load plugin scripts first!No luck…Had to bring it back priority to 99!
The script disappeared for logged in users!
Forum: Plugins
In reply to: [Nelio AB Testing] Load plugin scripts first!Thanks for the quick reply! Am trying NOW
Forum: Plugins
In reply to: [Nelio AB Testing] Load plugin scripts first!Also tried by renaming the plugin with a @ character for first letter, this only moved up the plugin location in the backend sidebar ??
I found this function and tried it:
add_action( ‘activated_plugin’, ‘nelio_load_first’ );
function nelio_load_first()
{
$path = str_replace( WP_PLUGIN_DIR . ‘/’, ”, __FILE__ );
if ( $plugins = get_option( ‘active_plugins’ ) ) {
if ( $key = array_search( $path, $plugins ) ) {
array_splice( $plugins, $key, 1 );
array_unshift( $plugins, $path );
update_option( ‘active_plugins’, $plugins );
}
}
}Still no luck!
Forum: Plugins
In reply to: [Polylang] Warning: Illegal string offset 'taxonomy' error!Hi Chouby!
Thanks for the reply but the error appeared after updating to wordpress 4.1
There was no recent addition of plugins which produced the error, however, i did deactivate all and was unable to reproduce the conflect.
Please advice, thanks.