bonini81
Forum Replies Created
-
Hi i placed the delete button, on this page https://www.whiteholedata.com/politica-de-cookies/ (the blue button that says delete). And it does not erase the cookies (Google Analytics Cookies), any prior steps i have to do in order to make that happen? It only, erases the gdpr info cookie, making that the accept or reject bar to appear again, but does not erase the cookie on the users browser. So is that feature on premium plugin? Or have to tweak something else on the wp-admin in order to make that happen.
ThanxHi @stuartduff, well found the answer, you may use a hack with AJAX to skip that Woocommerce API function to process the order or
public function process_payment( $order_id ), you can use this script for example. Explanation in brackets:jQuery.ajax({ url: 'your-plugin-folder-name/?wc-ajax=checkout', (use that wc-ajax=checkout url to send via post the data of the Checkout form fields and then woocommerce will put the order as complete) type: "POST", data: jQuery(".woocommerce-checkout").serialize(), success: function(respuesta) { console.log(respuesta); parent.location.href = respuesta.redirect; }, error: function() { console.log("Error, credit card not valid, for example"); } });
Well of course this Ajax script will have to shoot once there is a response from the payment processor, in my case was OnAuthorize that processed the order inside this JS function or:
var onAuthorize = function(response) {
//Custom Ajax function to process Payment via WC-AJAX
jQuery.ajax({url: ‘your-plugin-folder-name/?wc-ajax=checkout’,
HERE Would go the rest of the script shown above…Well that is it if you ever find yourself to process the order not via PHP but via JS, which might happen at times.
So, happy to sharre the knowledge, cause not much info around.Forum: Plugins
In reply to: [WooCommerce] How to enable Pay for Order Page / EndPoint in WoocommerceAlso UPDATE on this solution, there is a new Free plugin that allows you to make multi step checkout process, so that would help even more:
https://www.ads-software.com/plugins/wp-multi-step-checkout/
Enjoy devs!
Forum: Plugins
In reply to: [WooCommerce] How to enable Pay for Order Page / EndPoint in WoocommerceHi guys, well i found the answer of how to enable the paypage during the check out process. You have to acess the order object from the Woo ReST API:
$order = wc_get_order($order_id); $pay_now_url = $order->get_checkout_payment_url('/checkout/order-received/{{order_number}}/?pay_for_order=true&key={{order_key}}');
Of course in the context of a custom payment gateway plugin you would have to place that inside your Custom Plugin code, so use this code in the context that you need it for, and also put the order as on hold not payment complete if not the page wont fire or this code before the paypage code given above:
$args = array( 'status' => 'on-hold', ); $orders = wc_get_orders( $args );
So that is it, think this piece of code is needed for the community of Wocoomerce Custom Gateway Plugin devs.
Note: This code as for now, fires the paypage after the checkoutpage BUT the Place Order button does not show up to close the order, so i am not able to place my Pay Now button from my payment gateway, so i am working on that now, but this post, was about how to fire the paypage after the checkout page, so if anyone is wondering how this is one of the ways to do it.
So good luck guys!Forum: Plugins
In reply to: [WooCommerce] How to enable Pay for Order Page / EndPoint in WoocommerceThanx @dynamiczach Yes i am searching as well and not much documentation about how to implement it, so as a last resource i all buy the plugin, save me time and money, like u say. Anyways, if anyone has information about this let me know. Like i said, i all post the solution when i find it,good for the commnunity of Devs, cause its hard to find.
Forum: Plugins
In reply to: [WooCommerce] How to enable Pay for Order Page / EndPoint in WoocommerceHi, @conschneider This german plugin really helps cause emulates the checkout process i need, https://maxim-kaminsky.com/woocommerce-order-review-page/ But is a paid one, any one know of a free one that does the same thing?
Forum: Plugins
In reply to: [WooCommerce] How to enable Pay for Order Page / EndPoint in WoocommerceAnyways, if i find a solution i will sharred it, could be useful for the community of plugin devs, cause not much info around, so far.
- This reply was modified 6 years, 4 months ago by bonini81.
Forum: Plugins
In reply to: [WooCommerce] How to enable Pay for Order Page / EndPoint in WoocommerceThanx Phil, I joined that community yesterday, getting some help, not much, cause looks like this Pay / Review Order Page is not so commonly implemented so i all have dig a bit deepper on this issue. Thanx anyways, if anyone else has experience on this issue, would love the help. Anyways, i am reviewing how German plugins have implemented this, thanx to the advice of @conschneider
Forum: Plugins
In reply to: [WooCommerce] How to enable Pay for Order Page / EndPoint in WoocommerceHi Con, thanx a lot for your help, well yes its kind of review order page after the checkout page which is usually where the payment is done on most ecommerce stores, but having a Modal payment gateway, i gotta have a Pay Page or Review Order page after the checkoutpage, cause thats what Stripe Checkout plugin implements on Woocommerce (cause they said as mentioned before they had problems doing the payment with Stripe on Checkoutpage with Modal / PopUp), and the URL for that Review order or Pay page on Stripe Checkout is yourdomian.com/checkout/order-pay/342343/key=wc_order_5b47 So i think that order-pay endpoint can be used also during the checkout process not just for failed payments, am i right?
Well you can check that Checkout process i mention on this store that uses Stripe Checkout on woocommerce, https://newlyn.com/
So thats why i thought its the order-pay endpoint that they use, but review order page, looks similar to what i need, hopefully they gave a free version to see how to implement it. Anyways, hopefull i get more help on how to implement on my custom gateway with pay page / review order page.
Thanx guysHi guys sorry for delay, well i kind of stopped researching on this issue, cause busy on other tasks. Well thanx @ryanr14 thanx for the reply, sure i all take look on those examples you mentioned. Hopefully anyone else can reply. @kenin And this post be open again? If not i all open a new one later on, as i am back on solving this puzzle of the checkout button.
ThanxForum: Plugins
In reply to: Jetpacks Photon Module unaligns thumbnail imagesAnyone?
Forum: Fixing WordPress
In reply to: RSS feed not working, how to fix it?Anyone?
Forum: Fixing WordPress
In reply to: Content Visibility set to Private and Cant Change it! Help!Anyone?
Thanx man, i am surprised that googles cache can take so long, especially after the Google Caffeine algorithm change allows them to index a lot of stuff in days, cant believe the cache is so slow to refresh, thanx anyways i all keep waiting, being so more than a month…
I updated the permalinks as u suggested and it worked, thanx a lot man!!!