Changeset 2789478
- Timestamp:
- 09/23/2022 08:19:48 PM (4 years ago)
- Location:
- sprinque
- Files:
-
- 10 edited
- 1 copied
-
tags/1.1.2 (copied) (copied from sprinque/trunk)
-
tags/1.1.2/assets/js/frontend.js (modified) (3 diffs)
-
tags/1.1.2/languages/sprinque-nl_NL.po (modified) (2 diffs)
-
tags/1.1.2/readme.txt (modified) (2 diffs)
-
tags/1.1.2/sprinque.php (modified) (3 diffs)
-
tags/1.1.2/templates/frontend/srinque_pay_modal_form.php (modified) (1 diff)
-
trunk/assets/js/frontend.js (modified) (3 diffs)
-
trunk/languages/sprinque-nl_NL.po (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/sprinque.php (modified) (3 diffs)
-
trunk/templates/frontend/srinque_pay_modal_form.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sprinque/tags/1.1.2/assets/js/frontend.js
r2778366 r2789478 274 274 $('#billing_company').val(company_name); 275 275 $('#reg_number_pay').val(company_reg_code); 276 $('#confirm-company-order').prop('disabled', false); 277 276 $('#confirm-company-order').prop('disabled', true); 277 278 var confirmBtnText = $('#confirm-company-order').text(); 279 $('#confirm-company-order').html('<div class="wpm-preloader">'+ admin.loading +'</div>'); 280 278 281 $.ajax({ 279 282 url: admin.ajaxurl, … … 290 293 this_item.html(response.html) 291 294 } 292 } 295 }, 296 complete: function () { 297 $('#confirm-company-order').prop('disabled', false); 298 $('#confirm-company-order').html(confirmBtnText); 299 } 293 300 }); 294 301 }); … … 365 372 var email = $('#billing_email').val(); 366 373 374 // Here the problem on js layer 367 375 $('.error-register-fields').hide(); 368 376 -
sprinque/tags/1.1.2/languages/sprinque-nl_NL.po
r2778366 r2789478 136 136 #: templates/frontend/srinque_pay_modal_form.php:79 137 137 msgid "If you have not received the code, please check your spam folder or" 138 msgstr "Als geen code ontvangen hebt, check alsjeblieft je spam folder of"138 msgstr "Als je geen code ontvangen hebt, check alsjeblieft je spam folder of" 139 139 140 140 #: sprinque.php:444 … … 250 250 msgstr "" 251 251 "Je verzoek om op factuur te betalen wordt behandeld. Dit kan 24 uur duren. " 252 "Je bes etelling is nog niet bevestigd tot beoordeling is afgerond. <br> We "252 "Je bestelling is nog niet bevestigd tot beoordeling is afgerond. <br> We " 253 253 "sturen je een bericht zodra de beoordeling voltooid is." 254 254 -
sprinque/tags/1.1.2/readme.txt
r2780759 r2789478 6 6 Tested up to: 6.0 7 7 Requires PHP: 5.3 8 Stable tag: 1.1. 18 Stable tag: 1.1.2 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 51 51 == Changelog == 52 52 53 = 1.1.2 - September 12, 2022 = 54 * Send correct order id to Sprinque 55 * Hide validation error until search return company address 56 * Fixed translation 57 53 58 = 1.1.1 - September 6, 2022 = 54 59 * Replaced $order->ID with $order->get_id() -
sprinque/tags/1.1.2/sprinque.php
r2780759 r2789478 5 5 Description: Sprinque for WordPress is a plugin that allows you to offer your business buyers net payment terms (15, 30, 60, 90 days) and thereby grow conversion and retention. 6 6 Author: Sprinque 7 Version: 1.1. 17 Version: 1.1.2 8 8 Text Domain: sprinque 9 9 Domain Path: /languages … … 267 267 public function send_capture_authorized_order( $order_id ) { 268 268 $order = wc_get_order( $order_id ); 269 270 $settings = get_option( 'woocommerce_wpm_srinque_pay_settings', true ); 269 $order_id_from_sequential_plugin = $order->get_order_number(); 270 271 $settings = get_option( 'woocommerce_wpm_srinque_pay_settings', true ); 271 272 272 273 // Create PDF Link for Invoice … … 292 293 // Prepare Data to Send 293 294 $data = [ 295 'merchant_order_id' => $order_id_from_sequential_plugin ?: $order_id, 294 296 'invoice' => [ 295 297 'merchant_invoice_id' => $order_id, -
sprinque/tags/1.1.2/templates/frontend/srinque_pay_modal_form.php
r2778366 r2789478 50 50 <input type="text" id="zip_company_pay" class="required-input" value="<?php if(isset($billing_postcode)) { echo esc_attr($billing_postcode); } ?>"> 51 51 </div> 52 <div class="error-register-fields" style="display: none"><?php _e( "Not all fields filled on Billing or Modal", 'sprinque' ); ?></div> 52 <div class="error-register-fields" style="display: none"> 53 <?php 54 // Here we're showing error 55 if (!isset($billing_address_1, $billing_address_2, $billing_city, $billing_postcode)) { 56 _e( "Not all fields filled on Billing or Modal", 'sprinque' ); 57 } 58 ?> 59 </div> 53 60 <div class="pagination-btns"> 54 61 <button type="button" class="wpm-btn wpm-btn_outline-primary white_btn_pay to_select_companies"><?php _e( "Previous step", 'sprinque' ); ?></button> -
sprinque/trunk/assets/js/frontend.js
r2778366 r2789478 274 274 $('#billing_company').val(company_name); 275 275 $('#reg_number_pay').val(company_reg_code); 276 $('#confirm-company-order').prop('disabled', false); 277 276 $('#confirm-company-order').prop('disabled', true); 277 278 var confirmBtnText = $('#confirm-company-order').text(); 279 $('#confirm-company-order').html('<div class="wpm-preloader">'+ admin.loading +'</div>'); 280 278 281 $.ajax({ 279 282 url: admin.ajaxurl, … … 290 293 this_item.html(response.html) 291 294 } 292 } 295 }, 296 complete: function () { 297 $('#confirm-company-order').prop('disabled', false); 298 $('#confirm-company-order').html(confirmBtnText); 299 } 293 300 }); 294 301 }); … … 365 372 var email = $('#billing_email').val(); 366 373 374 // Here the problem on js layer 367 375 $('.error-register-fields').hide(); 368 376 -
sprinque/trunk/languages/sprinque-nl_NL.po
r2778366 r2789478 136 136 #: templates/frontend/srinque_pay_modal_form.php:79 137 137 msgid "If you have not received the code, please check your spam folder or" 138 msgstr "Als geen code ontvangen hebt, check alsjeblieft je spam folder of"138 msgstr "Als je geen code ontvangen hebt, check alsjeblieft je spam folder of" 139 139 140 140 #: sprinque.php:444 … … 250 250 msgstr "" 251 251 "Je verzoek om op factuur te betalen wordt behandeld. Dit kan 24 uur duren. " 252 "Je bes etelling is nog niet bevestigd tot beoordeling is afgerond. <br> We "252 "Je bestelling is nog niet bevestigd tot beoordeling is afgerond. <br> We " 253 253 "sturen je een bericht zodra de beoordeling voltooid is." 254 254 -
sprinque/trunk/readme.txt
r2780759 r2789478 6 6 Tested up to: 6.0 7 7 Requires PHP: 5.3 8 Stable tag: 1.1. 18 Stable tag: 1.1.2 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 51 51 == Changelog == 52 52 53 = 1.1.2 - September 12, 2022 = 54 * Send correct order id to Sprinque 55 * Hide validation error until search return company address 56 * Fixed translation 57 53 58 = 1.1.1 - September 6, 2022 = 54 59 * Replaced $order->ID with $order->get_id() -
sprinque/trunk/sprinque.php
r2780759 r2789478 5 5 Description: Sprinque for WordPress is a plugin that allows you to offer your business buyers net payment terms (15, 30, 60, 90 days) and thereby grow conversion and retention. 6 6 Author: Sprinque 7 Version: 1.1. 17 Version: 1.1.2 8 8 Text Domain: sprinque 9 9 Domain Path: /languages … … 267 267 public function send_capture_authorized_order( $order_id ) { 268 268 $order = wc_get_order( $order_id ); 269 270 $settings = get_option( 'woocommerce_wpm_srinque_pay_settings', true ); 269 $order_id_from_sequential_plugin = $order->get_order_number(); 270 271 $settings = get_option( 'woocommerce_wpm_srinque_pay_settings', true ); 271 272 272 273 // Create PDF Link for Invoice … … 292 293 // Prepare Data to Send 293 294 $data = [ 295 'merchant_order_id' => $order_id_from_sequential_plugin ?: $order_id, 294 296 'invoice' => [ 295 297 'merchant_invoice_id' => $order_id, -
sprinque/trunk/templates/frontend/srinque_pay_modal_form.php
r2778366 r2789478 50 50 <input type="text" id="zip_company_pay" class="required-input" value="<?php if(isset($billing_postcode)) { echo esc_attr($billing_postcode); } ?>"> 51 51 </div> 52 <div class="error-register-fields" style="display: none"><?php _e( "Not all fields filled on Billing or Modal", 'sprinque' ); ?></div> 52 <div class="error-register-fields" style="display: none"> 53 <?php 54 // Here we're showing error 55 if (!isset($billing_address_1, $billing_address_2, $billing_city, $billing_postcode)) { 56 _e( "Not all fields filled on Billing or Modal", 'sprinque' ); 57 } 58 ?> 59 </div> 53 60 <div class="pagination-btns"> 54 61 <button type="button" class="wpm-btn wpm-btn_outline-primary white_btn_pay to_select_companies"><?php _e( "Previous step", 'sprinque' ); ?></button>
Note: See TracChangeset
for help on using the changeset viewer.