kminderhout
Forum Replies Created
-
Thanks so much for the reply. I’ve looked into these and like everything in the app they are wonderful.
I’m still missing an important piece of information, which is how do I programmatically find the fees that braintree is charging? I didn’t see anything in the Transaction object that would help. I prefer not to calculate them as I also occasionally get hit with a foreign transaction fee. I looked at the disbursement webhook but that doesn’t seem to show it either. It just gives the full amount charge, not the actual amount of money that ended up in my bank account.
Thanks!
K
Forum: Plugins
In reply to: [Action Scheduler] Can I change the default sort order?Ahh… didn’t think of that. A solid solution. Thanks!
Forum: Plugins
In reply to: [Payment Plugins Braintree For WooCommerce] Adding to PayPal .onClickTrue. Thanks again for the help. I’m starting to understand it all, so I’ll give that a try with the dependency.
Forum: Plugins
In reply to: [Payment Plugins Braintree For WooCommerce] Adding to PayPal .onClickThanks for suggestion and the snippet! I was wanting to trigger an event that I can use to send a GA Enhanced E-commerce hit.
Am I correct that moving the script to the header wouldn’t be very performative as it would then become a blocking script?
Ahh… I see. It’s kind of funny because the adjustments I was making were to do what I saw as tweaking of the style to be even more in line with that of PayPal. I’ll keep an eye out, but overall I really like the pop-up feature and it’s a critical piece of the plug-in for me as it keeps the PayPal checkout flow consistent. Redirection by PayPal back to the website after logging into PayPal is the opposite of the logical thing to do after someone decides they want to checkout with PayPal. I know this is to confirm shipping details and that makes sense, which is why I appreciate your solution.
Forum: Plugins
In reply to: [Payment Plugins Braintree For WooCommerce] Styling Braintree CC FormOh I am. I edited my review to make it more clear.
Forum: Plugins
In reply to: [Payment Plugins Braintree For WooCommerce] Styling Braintree CC FormDone! Thanks!
Forum: Plugins
In reply to: [Payment Plugins Braintree For WooCommerce] Styling Braintree CC FormOk. Thanks so much for the help. Really appreciate it. I just realized that there is a style box underneath the option to select drop-in or custom. Makes a lot of sense now. Appreciate it! Great plugin.
It also unfortunately, doesn’t do what I wanted it to do. It still redirected me to the checkout page. I’m looking into other options. Thanks for the fast replies!
Forum: Plugins
In reply to: [Payment Plugins Braintree For WooCommerce] Payment buttons in mini cartThanks again for the reply! I appreciate the time. That’s the part that I’d figured out. But even with the template without the javascript being loaded I wasn’t seeing any buttons.
I’ve opted for extending the specific classes I want in a plugin that then modifies the
enqueue_frontend_scripts
method to provide the cart scripts on all pages./** * * @param WC_Braintree_Frontend_Scripts $scripts */ public function enqueue_frontend_scripts($scripts) { global $wp; if (is_checkout () && ! is_order_received_page ()) { $this->enqueue_checkout_scripts ( $scripts ); } if (is_add_payment_method_page () && ! isset ( $wp->query_vars[ 'payment-methods' ] )) { $this->enqueue_add_payment_method_scripts ( $scripts ); } if (is_cart ()) { $this->enqueue_cart_scripts ( $scripts ); } if (is_product ()) { $this->enqueue_product_scripts ( $scripts ); } if (wc_braintree_subscriptions_active () && wcs_braintree_is_change_payment_method_request ()) { $this->enqueue_checkout_scripts ( $scripts ); } $this->enqueue_cart_scripts ( $scripts ); }
For right now I’ve added
$this->enqueue_cart_scripts ( $scripts );
to every page, but I’ll get that customized as I get more organized.On top of that I have to make sure the scripts are rerending the buttons after a fragment refresh.
It took me a while to understand it all only because I’m learning, but I’m really impressed and appreciative of how you’ve written everything to so extendable.
Forum: Plugins
In reply to: [Payment Plugins Braintree For WooCommerce] Payment buttons in mini cartThanks for the response! I’m pretty excited about using the Gateway. After a full day or looking around its got everything I need except built in mini cart features.
I was able to get this to work, but since I’m pretty new at all of this the only way I can get the scripts to load is by editing the code itself. Can you help me out with how to load the cart scripts without modifying the code? As of right now what I can see is that an is_cart() check in the abstract payment gateway class that loads them but I can’t see how to hook into this.
Thanks!
K
Thanks for the response, but not quite. I’m actually referring to the checkout process being completed with PayPal and skipping the review step. I looked into it further and all that needs to be done is change line 541 in class-wc-gateway-ppec-cart-handler.php to true.
'commit' => 'checkout' === $page ? 'true' : 'false',
This tells the PayPal API to finish the checkout with them as the price will not change, which is the functionality that works best for my site. As you can see this is how the plugin currently works when you are on the checkout page. I looked into it and there is no way to access or change the $page variable without altering the source code itself. Such an easy setting but no option to edit it.