WPIntell

Source evidence

automatic budget approval

Quotes for WooCommerce · support · 2025-03-31T19:28:00+00:00

complaintsentiment
highseverity
0.97relevance
1replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

7 / 29 rows with source links

24.1% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

22 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
ocauemelo unresolved
We work with your plugin for budgets and for some time now our code that interacted with your plugin for automatic budget approval no longer works. I thought it was my version of PHP but when validating on the plugin page I identified that the version is ok. Can you help me? The code apparently no longer works. See below for evaluation. // Função para aprovar automaticamente o orçamento quando um novo pedido é criado function approve_quotes_automatically($order_id) { $security_nonce = wp_create_nonce(‘qwc-update-status-security’); $security_nonce_send = wp_create_nonce(‘qwc-send-quote-security’); ?> <script> jQuery(document).ready(function ($) { let order_id = '<?php echo $order_id;?>'; let security_nonce = '<?php echo $security_nonce;?>'; let security_nonce_send = '<?php echo $security_nonce_send;?>'; $.ajax({ type: 'POST', url: ajaxurl, data: { 'order_id': order_id, 'status': 'quote-complete', 'action': 'qwc_update_status', 'security_nonce': security_nonce }, success: function(response) { $.ajax({ type: 'POST', url: ajaxurl, data: { 'order_id': order_id, 'action': 'qwc_send_quote', 'security_nonce': security_nonce_send } }); } }); }); </script> <?php } add_action(‘woocommerce_thankyou’, ‘approve_quotes_automatically’, 10, 1); Hi @ocauemelo , The code looks fine. I had some queries: Can you kindly let me know the WC, WP and Quotes plugin versions? Any idea at which version did the custom code stop working? Have you observed that the code works fine for quote orders placed by registered users and does not work for quote orders placed by guest users? Thanks, Pinal

Comments

1 shown
pinal.shah 2025-04-01T10:00:00+00:00

Hi @ocauemelo , The code looks fine. I had some queries: Can you kindly let me know the WC, WP and Quotes plugin versions? Any idea at which version did the custom code stop working? Have you observed that the code works fine for quote orders placed by registered users and does not work for quote orders placed by guest users? Thanks, Pinal