jesseguttenberg
Forum Replies Created
-
Hi @mrclayton this is what I see in the error logs: https://i.imgur.com/BLcDwhs.png
I did not manually enter API keys. I used your plugin to connect to my sandbox account by entering my email and password.
May I know what is wrong? Thanks.
- This reply was modified 1 year, 8 months ago by jesseguttenberg.
@mrclayton hey Clayton, I see these error messages. I did not manually enter API keys. I used the plugin to connect to my sandbox account.
May I know what is wrong? Thanks.2023-03-23T18:25:58+00:00 ERROR API error: Array ( [url] => https://api-m.sandbox.paypal.com/v2/checkout/orders/86231929HX082315U/authorize [method] => POST [http_status] => 422 [request] => Array ( ) [error] => Array ( [name] => UNPROCESSABLE_ENTITY [details] => Array ( [0] => Array ( [issue] => TRANSACTION_REFUSED [description] => The request was refused ) ) [message] => The requested action could not be performed, semantically incorrect, or failed business validation. [debug_id] => dddd92d7342e6 [links] => Array ( [0] => Array ( [href] => https://developer.paypal.com/docs/api/orders/v2/#error-TRANSACTION_REFUSED [rel] => information_link [method] => GET ) ) ) ) 2023-03-23T18:26:09+00:00 ERROR API error: Array ( [url] => https://api-m.sandbox.paypal.com/v2/checkout/orders/86231929HX082315U/authorize [method] => POST [http_status] => 422 [request] => Array ( ) [error] => Array ( [name] => UNPROCESSABLE_ENTITY [details] => Array ( [0] => Array ( [issue] => TRANSACTION_REFUSED [description] => The request was refused ) ) [message] => The requested action could not be performed, semantically incorrect, or failed business validation. [debug_id] => ed6525fb1b39f [links] => Array ( [0] => Array ( [href] => https://developer.paypal.com/docs/api/orders/v2/#error-TRANSACTION_REFUSED [rel] => information_link [method] => GET ) ) ) ) 2023-03-23T18:26:16+00:00 INFO Webhook received. Event: CHECKOUT.ORDER.APPROVED 2023-03-23T18:27:15+00:00 ERROR API error: Array ( [url] => https://api-m.sandbox.paypal.com/v2/checkout/orders/8GW28725FF831992S/authorize [method] => POST [http_status] => 422 [request] => Array ( ) [error] => Array ( [name] => UNPROCESSABLE_ENTITY [details] => Array ( [0] => Array ( [issue] => TRANSACTION_REFUSED [description] => The request was refused ) ) [message] => The requested action could not be performed, semantically incorrect, or failed business validation. [debug_id] => 666440fdb8007 [links] => Array ( [0] => Array ( [href] => https://developer.paypal.com/docs/api/orders/v2/#error-TRANSACTION_REFUSED [rel] => information_link [method] => GET ) ) ) ) 2023-03-23T18:27:47+00:00 INFO Webhook received. Event: CHECKOUT.ORDER.APPROVED 2023-03-23T18:28:00+00:00 INFO Redirecting to checkout page. Required fields missing: Array ( [0] => billing_address_1_required [1] => billing_postcode_required [2] => billing_phone_required ) 2023-03-23T18:28:19+00:00 ERROR API error: Array ( [url] => https://api-m.sandbox.paypal.com/v2/checkout/orders/1P7608491E3987517/authorize [method] => POST [http_status] => 422 [request] => Array ( ) [error] => Array ( [name] => UNPROCESSABLE_ENTITY [details] => Array ( [0] => Array ( [issue] => TRANSACTION_REFUSED [description] => The request was refused ) ) [message] => The requested action could not be performed, semantically incorrect, or failed business validation. [debug_id] => c8d6d03577538 [links] => Array ( [0] => Array ( [href] => https://developer.paypal.com/docs/api/orders/v2/#error-TRANSACTION_REFUSED [rel] => information_link [method] => GET ) ) ) ) 2023-03-23T18:28:20+00:00 INFO Webhook received. Event: CHECKOUT.ORDER.APPROVED 2023-03-23T18:29:19+00:00 ERROR API error: Array ( [url] => https://api-m.sandbox.paypal.com/v2/checkout/orders/1P7608491E3987517/authorize [method] => POST [http_status] => 422 [request] => Array ( ) [error] => Array ( [name] => UNPROCESSABLE_ENTITY [details] => Array ( [0] => Array ( [issue] => TRANSACTION_REFUSED [description] => The request was refused ) ) [message] => The requested action could not be performed, semantically incorrect, or failed business validation. [debug_id] => b68d2975d16e5 [links] => Array ( [0] => Array ( [href] => https://developer.paypal.com/docs/api/orders/v2/#error-TRANSACTION_REFUSED [rel] => information_link [method] => GET ) ) ) ) 2023-03-23T18:31:06+00:00 ERROR API error: Array ( [url] => https://api-m.sandbox.paypal.com/v2/checkout/orders/1P7608491E3987517/authorize [method] => POST [http_status] => 422 [request] => Array ( ) [error] => Array ( [name] => UNPROCESSABLE_ENTITY [details] => Array ( [0] => Array ( [issue] => TRANSACTION_REFUSED [description] => The request was refused ) ) [message] => The requested action could not be performed, semantically incorrect, or failed business validation. [debug_id] => 5bd360970b4bf [links] => Array ( [0] => Array ( [href] => https://developer.paypal.com/docs/api/orders/v2/#error-TRANSACTION_REFUSED [rel] => information_link [method] => GET ) ) ) ) 2023-03-23T18:32:28+00:00 ERROR API error: Array ( [url] => https://api-m.sandbox.paypal.com/v2/checkout/orders/6WB688975P309490S/authorize [method] => POST [http_status] => 422 [request] => Array ( ) [error] => Array ( [name] => UNPROCESSABLE_ENTITY [details] => Array ( [0] => Array ( [issue] => TRANSACTION_REFUSED [description] => The request was refused ) ) [message] => The requested action could not be performed, semantically incorrect, or failed business validation. [debug_id] => e1ce3b44da694 [links] => Array ( [0] => Array ( [href] => https://developer.paypal.com/docs/api/orders/v2/#error-TRANSACTION_REFUSED [rel] => information_link [method] => GET ) ) ) ) 2023-03-23T18:32:49+00:00 INFO Webhook received. Event: CHECKOUT.ORDER.APPROVED 2023-03-23T18:41:03+00:00 INFO Redirecting to checkout page. Required fields missing: Array ( [0] => billing_address_1_required [1] => billing_city_required [2] => billing_state_required [3] => billing_postcode_required [4] => billing_phone_required ) 2023-03-23T18:41:18+00:00 INFO Webhook received. Event: CHECKOUT.ORDER.APPROVED 2023-03-23T18:41:23+00:00 ERROR API error: Array ( [url] => https://api-m.sandbox.paypal.com/v2/checkout/orders/6S649067AB9117041/authorize [method] => POST [http_status] => 422 [request] => Array ( ) [error] => Array ( [name] => UNPROCESSABLE_ENTITY [details] => Array ( [0] => Array ( [issue] => TRANSACTION_REFUSED [description] => The request was refused ) ) [message] => The requested action could not be performed, semantically incorrect, or failed business validation. [debug_id] => 759cefc164a48 [links] => Array ( [0] => Array ( [href] => https://developer.paypal.com/docs/api/orders/v2/#error-TRANSACTION_REFUSED [rel] => information_link [method] => GET ) ) ) ) 2023-03-23T18:51:12+00:00 ERROR API error: Array ( [url] => https://api-m.sandbox.paypal.com/v2/checkout/orders/6S649067AB9117041/authorize [method] => POST [http_status] => 422 [request] => Array ( ) [error] => Array ( [name] => UNPROCESSABLE_ENTITY [details] => Array ( [0] => Array ( [issue] => TRANSACTION_REFUSED [description] => The request was refused ) ) [message] => The requested action could not be performed, semantically incorrect, or failed business validation. [debug_id] => 7d763935824c3 [links] => Array ( [0] => Array ( [href] => https://developer.paypal.com/docs/api/orders/v2/#error-TRANSACTION_REFUSED [rel] => information_link [method] => GET ) ) ) ) 2023-03-23T18:55:20+00:00 ERROR API error: Array ( [url] => https://api-m.sandbox.paypal.com/v2/checkout/orders/25M88931CM845214U/authorize [method] => POST [http_status] => 422 [request] => Array ( ) [error] => Array ( [name] => UNPROCESSABLE_ENTITY [details] => Array ( [0] => Array ( [issue] => TRANSACTION_REFUSED [description] => The request was refused ) ) [message] => The requested action could not be performed, semantically incorrect, or failed business validation. [debug_id] => 389331bed679a [links] => Array ( [0] => Array ( [href] => https://developer.paypal.com/docs/api/orders/v2/#error-TRANSACTION_REFUSED [rel] => information_link [method] => GET ) ) ) ) 2023-03-23T18:55:47+00:00 INFO Webhook received. Event: CHECKOUT.ORDER.APPROVED
- This reply was modified 1 year, 8 months ago by jesseguttenberg.
@ashkanahmadi could it be that you had this option selected?
Please report back and let me know. Thanks.
Forum: Plugins
In reply to: [WooCommerce] How to customize search results page?@eastofwest Thanks. So just to confirm something – The search results page is controlled by a theme’s search.php and not any PHP files in WooCommerce?
Thank you.
Forum: Developing with WordPress
In reply to: Is this possible in wordpress?Hey @sterndata, thanks for highlighting
pre_get_posts()
filter. The code in the link you shared was hard to follow so I tried searching the web and came up with another version shown below.I tried using the below code to exclude two product categories. However, it does not work in that it does not exclude the two product categories
43
and46
which are theman
andbook
product categories.Can you help me out, please?
function main_search_form( $form ) { $form = '<form role="search" method="get" id="search-form" action="'. home_url( '/' ) .'">'; $form .= '<label for="search">Search</label>'; $form .= '<input name="s" id="search" size="15" type="text" value="Search" title="Search">'; $form .= '<input type="hidden" value="product" name="post_type" />'; $form .= '<input type="hidden" value="product_cat" name="man,book" />'; $form .= '<input type="submit" value="Submit">'; $form .= '</form>'; echo "Test Form 3"; return $form; } add_filter( 'get_search_form', 'main_search_form' ); add_filter('pre_get_posts', 'exclude_cats_blog_search'); function exclude_cats_blog_search($query){ if ($query->is_search && $_GET['product_cat'] == 'man,book') { $query->set('category__not_in', array (43,46)); }} function wpc_elementor_shortcode22($atts) { return main_search_form($form); } add_shortcode( 'my_elementor_php_output3', 'wpc_elementor_shortcode22');
- This reply was modified 4 years, 2 months ago by jesseguttenberg.
Forum: Fixing WordPress
In reply to: How to load scripts on the Wordperss Login page?@hemant-ahir thanks. That is because I want to use GTM to deploy a cookie for Internal users (ie. those who access the
site.com/wp-admin
page). That way I can easily separate out internal and external traffic. I am sure there are other ways to do this but I figured this is the most suitable for my current purposes.Can you help me out, please?
Thank you.
Forum: Fixing WordPress
In reply to: How to load scripts on the Wordperss Login page?Hey @hemant-ahir, this is the script I need to insert. There are two parts to it. I don’t think I should be inserting it into a style sheet? Stylesheet sounds like CSS? Thank you.
First part
Paste this code as high in the <head> of the page as possible: <!-- Google Tag Manager --> <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-XXXXXX');</script> <!-- End Google Tag Manager -->
Second part
Additionally, paste this code immediately after the opening <body> tag: <!-- Google Tag Manager (noscript) --> <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-XXXXXX" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> <!-- End Google Tag Manager (noscript) -->
@cartflows, thanks. I tried adding it to the header. Nope still doesn’t work. Can you try on your end and let me know?
This is the code I inserted into
functions.php
. I cannot use your CSS solution as I need it to be rule-based ie. if this, then hide order bump, if that then don’t hide.function add_xx_head(){ ?> <script> window.addEventListener('load', function () { document.getElementsByClassName("wcf-bump-order-content")[0].setAttribute('style', 'display:none !important'); }); console.log("y"); </script> <?php } add_action( 'wp_head', 'add_xx_head', 10 );
@sandesh055 thanks. I tried using your script and placing it into an Elementor HTML widget as such:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"> jQuery( document ).ready(function($) { $('.wcf-bump-order-content').css('display','none'); }); </script>
Unfortunately, it still doesn’t work. I have tried the Javascript equivalent and it does not work too ie.
<script> window.addEventListener('load', function () { document.getElementsByClassName("wcf-bump-order-content")[0].setAttribute('style', 'display:none !important')}; <script>
It works if you just copy and paste it into the Developer tools console section. However, it doesn’t work when included in the site itself because somehow the checkout section refreshes and the javascript / jquery isn’t reapplied.
I am just curious why are you using JS to hide content?
Cartflows doesn’t offer Enhanced E-Commerce tracking in Google Analytics. Thus, I use a plugin to implement Enhance E-Commerce tracking (WooCommerce Google Analytics Pro) and this plugin seems to work only on a Cartflows Checkout page which has been designated as a Global Checkout. If a user checks out on any other page that isn’t a Global Checkout, the information simply wouldn’t appear in Google Analytics.
This is consistent with what I have been seeing elsewhere. For example, typical WooCommerce shortcuts like adding products via URL eg.
https://yourdomain.com/checkout/?add-to-cart=25
only work if the checkout page is defined as Global Checkout. This will not work on other checkout pages.Because of the above problem, I am forced to include all features I need on the Global Checkout page. Thus, I created an order bump. And the Order Bump would be hidden depending on the circumstances.
Perhaps, you may have a better solution to the problem I am facing?
Thanks.
- This reply was modified 4 years, 3 months ago by jesseguttenberg.
Hi @cartflows, I do not see any errors in the Developer tools section. I think the issue is that after the Javascript loads, the checkout area refreshes again and the Javascript does not reapply itself.
Do you notice such behaviour on your end too?
Note that I have tested this with jquery too and observed the same issue:
$('.wcf-bump-order-content').css('display','none');
Thanks.
- This reply was modified 4 years, 3 months ago by jesseguttenberg.
Thanks for responding. Strange, now it works even when I was logged in as admin. Not sure what happened back then.
Wrong link posted. This should be the one: https://stackoverflow.com/questions/42220864/how-to-redirect-a-submitted-caldera-form-to-another-page
Okay thanks will have a look!
- This reply was modified 5 years, 3 months ago by jesseguttenberg.
Thanks @m155y5 ,
According to this screenshot, I am able to see the behavior of my customers.
I am able to see the overall results in Behavior->Events->Overview.
However, how do I view these actions taken by customers for a specific product?
Thank you.
Forum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] Help with tableThat did the trick. Thanks alot Tobias!