Changeset 3227128
- Timestamp:
- 01/23/2025 12:18:17 AM (15 months ago)
- Location:
- woo-rfq-for-woocommerce
- Files:
-
- 115 added
- 7 edited
-
tags/1.9.180 (added)
-
tags/1.9.180/assets (added)
-
tags/1.9.180/assets/js (added)
-
tags/1.9.180/assets/js/frontend (added)
-
tags/1.9.180/assets/js/frontend/blocks.asset.php (added)
-
tags/1.9.180/assets/js/frontend/blocks.js (added)
-
tags/1.9.180/changelog.txt (added)
-
tags/1.9.180/gpls_assets (added)
-
tags/1.9.180/gpls_assets/WooCommerce_GPLS_RFQ_Integration.php (added)
-
tags/1.9.180/gpls_assets/css (added)
-
tags/1.9.180/gpls_assets/css/cart_checkout_wh.css (added)
-
tags/1.9.180/gpls_assets/css/gpls_single.css (added)
-
tags/1.9.180/gpls_assets/css/gpls_wh.css (added)
-
tags/1.9.180/gpls_assets/css/gpls_wh_rfqtk.css (added)
-
tags/1.9.180/gpls_assets/css/gpls_wh_visitor.css (added)
-
tags/1.9.180/gpls_assets/css/gpls_woo_admin.css (added)
-
tags/1.9.180/gpls_assets/css/gpls_woo_rfq.css (added)
-
tags/1.9.180/gpls_assets/css/rftk_shipping.css (added)
-
tags/1.9.180/gpls_assets/css/rftk_shipping_prices.css (added)
-
tags/1.9.180/gpls_assets/css/select2-spinner.gif (added)
-
tags/1.9.180/gpls_assets/img (added)
-
tags/1.9.180/gpls_assets/img/favorite16.png (added)
-
tags/1.9.180/gpls_assets/img/favorite24.png (added)
-
tags/1.9.180/gpls_assets/img/payfast.png (added)
-
tags/1.9.180/gpls_assets/img/select2-spinner.gif (added)
-
tags/1.9.180/gpls_assets/img/wpspin.gif (added)
-
tags/1.9.180/gpls_assets/js (added)
-
tags/1.9.180/gpls_assets/js/gpls_blank.js (added)
-
tags/1.9.180/gpls_assets/js/gpls_wh.js (added)
-
tags/1.9.180/gpls_assets/js/gpls_woo_password.js (added)
-
tags/1.9.180/gpls_assets/js/gpls_woo_rfq.js (added)
-
tags/1.9.180/gpls_assets/js/rfq_admin_basic.js (added)
-
tags/1.9.180/gpls_assets/js/rfq_admin_misc.js (added)
-
tags/1.9.180/gpls_assets/js/rfq_dummy.js (added)
-
tags/1.9.180/includes (added)
-
tags/1.9.180/includes/blocks (added)
-
tags/1.9.180/includes/blocks/class-wc-gpls_rfq-payments-blocks.php (added)
-
tags/1.9.180/includes/classes (added)
-
tags/1.9.180/includes/classes/admin (added)
-
tags/1.9.180/includes/classes/admin/admin.php (added)
-
tags/1.9.180/includes/classes/admin/gpls_woo_rfq_admin_functions.php (added)
-
tags/1.9.180/includes/classes/admin/metaboxes (added)
-
tags/1.9.180/includes/classes/admin/metaboxes/gpls_woo_rfq_product_meta.php (added)
-
tags/1.9.180/includes/classes/admin/privacy (added)
-
tags/1.9.180/includes/classes/admin/privacy/gpls_woo_rfq_privacy.php (added)
-
tags/1.9.180/includes/classes/admin/settings (added)
-
tags/1.9.180/includes/classes/admin/settings/gpls_woo_rfq_settings.php (added)
-
tags/1.9.180/includes/classes/cart (added)
-
tags/1.9.180/includes/classes/cart/gpls_woo_rfq_cart.php (added)
-
tags/1.9.180/includes/classes/checkout (added)
-
tags/1.9.180/includes/classes/checkout/gpls_woo_rfq_checkout.php (added)
-
tags/1.9.180/includes/classes/checkout/gpls_woo_rfq_ncheckout.php (added)
-
tags/1.9.180/includes/classes/coupons (added)
-
tags/1.9.180/includes/classes/coupons/gpls_woo_rfq_coupons.php (added)
-
tags/1.9.180/includes/classes/emails (added)
-
tags/1.9.180/includes/classes/emails/NP_Html2Text.php (added)
-
tags/1.9.180/includes/classes/emails/class-wc-email-customer-rfq.php (added)
-
tags/1.9.180/includes/classes/emails/class-wc-email-new-rfq.php (added)
-
tags/1.9.180/includes/classes/emails/class-wc-email-rfq.php (added)
-
tags/1.9.180/includes/classes/gateway (added)
-
tags/1.9.180/includes/classes/gateway/class-wc-gateway-rfq.php (added)
-
tags/1.9.180/includes/classes/gateway/wc-gateway-gpls-request-quote.php (added)
-
tags/1.9.180/includes/classes/gpls_woo_rfq_functions.php (added)
-
tags/1.9.180/includes/classes/prices (added)
-
tags/1.9.180/includes/classes/prices/gpls_woo_rfq_prices.php (added)
-
tags/1.9.180/includes/classes/shipping (added)
-
tags/1.9.180/includes/classes/shipping/gpls_woo_rfq_shipping.php (added)
-
tags/1.9.180/languages (added)
-
tags/1.9.180/readme.txt (added)
-
tags/1.9.180/resources (added)
-
tags/1.9.180/resources/js (added)
-
tags/1.9.180/resources/js/frontend (added)
-
tags/1.9.180/resources/js/frontend/index.js (added)
-
tags/1.9.180/woo-rfq-for-woocommerce.php (added)
-
tags/1.9.180/woo-rfq-includes (added)
-
tags/1.9.180/woo-rfq-includes/woo-rfq-functions.php (added)
-
tags/1.9.180/woocommerce (added)
-
tags/1.9.180/woocommerce/cart (added)
-
tags/1.9.180/woocommerce/cart/proceed-to-checkout-button.php (added)
-
tags/1.9.180/woocommerce/emails (added)
-
tags/1.9.180/woocommerce/emails/admin-new-rfq.php (added)
-
tags/1.9.180/woocommerce/emails/customer-note.php (added)
-
tags/1.9.180/woocommerce/emails/customer-rfq.php (added)
-
tags/1.9.180/woocommerce/emails/email-order-items.php (added)
-
tags/1.9.180/woocommerce/emails/plain (added)
-
tags/1.9.180/woocommerce/emails/plain/admin-new-rfq.php (added)
-
tags/1.9.180/woocommerce/emails/plain/customer-note.php (added)
-
tags/1.9.180/woocommerce/emails/plain/customer-rfq.php (added)
-
tags/1.9.180/woocommerce/emails/plain/email-order-items.php (added)
-
tags/1.9.180/woocommerce/emails/plain/rfqtk-email-order-items.php (added)
-
tags/1.9.180/woocommerce/emails/plain/subscription-info.php (added)
-
tags/1.9.180/woocommerce/emails/rfqtk-email-order-items.php (added)
-
tags/1.9.180/woocommerce/emails/subscription-info.php (added)
-
tags/1.9.180/woocommerce/woo-rfq (added)
-
tags/1.9.180/woocommerce/woo-rfq/account_password.php (added)
-
tags/1.9.180/woocommerce/woo-rfq/add-to-quote-single.php (added)
-
tags/1.9.180/woocommerce/woo-rfq/add-to-quote.php (added)
-
tags/1.9.180/woocommerce/woo-rfq/link-to-cart-pages.php (added)
-
tags/1.9.180/woocommerce/woo-rfq/link-to-cart-shop.php (added)
-
tags/1.9.180/woocommerce/woo-rfq/link-to-cart.php (added)
-
tags/1.9.180/woocommerce/woo-rfq/rfq-cart-empty.php (added)
-
tags/1.9.180/woocommerce/woo-rfq/rfq-cart.php (added)
-
tags/1.9.180/wp-session-manager (added)
-
tags/1.9.180/wp-session-manager/includes (added)
-
tags/1.9.180/wp-session-manager/includes/class-php-session.php (added)
-
tags/1.9.180/wp-session-manager/includes/class-recursive-arrayaccess.php (added)
-
tags/1.9.180/wp-session-manager/includes/class-wp-session-utils.php (added)
-
tags/1.9.180/wp-session-manager/includes/class-wp-session.php (added)
-
tags/1.9.180/wp-session-manager/includes/header.txt (added)
-
tags/1.9.180/wp-session-manager/includes/php-session.php (added)
-
tags/1.9.180/wp-session-manager/includes/wp-cli.php (added)
-
tags/1.9.180/wp-session-manager/includes/wp-session.php (added)
-
tags/1.9.180/wp-session-manager/php-cookie-session.php (added)
-
tags/1.9.180/wp-session-manager/wp-cookie-session.php (added)
-
tags/1.9.180/wp-session-manager/wp-session-manager.php (added)
-
trunk/changelog.txt (modified) (1 diff)
-
trunk/gpls_assets/js/gpls_woo_password.js (modified) (2 diffs)
-
trunk/includes/classes/admin/settings/gpls_woo_rfq_settings.php (modified) (2 diffs)
-
trunk/includes/classes/cart/gpls_woo_rfq_cart.php (modified) (4 diffs)
-
trunk/includes/classes/checkout/gpls_woo_rfq_ncheckout.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/woo-rfq-for-woocommerce.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woo-rfq-for-woocommerce/trunk/changelog.txt
r3195129 r3227128 1 1 == Changelog == 2 3 = 1.9.180 1/22/2025 = 4 fix password file 5 2 6 = 1.9.179 11/22/2024 = 3 7 languge file corruption fixed -
woo-rfq-for-woocommerce/trunk/gpls_assets/js/gpls_woo_password.js
r3108931 r3227128 1 import { __ } from '@wordpress/i18n';2 1 3 export const np_cart_checkout = [ 4 { 5 label: __('Try again another day', 'shipping-workshop'), 6 value: 'try-again', 7 }, 8 { 9 label: __('Try again another day 2', 'shipping-workshop'), 10 value: 'try-again 2', 11 }, 12 { 13 label: __('other', 'shipping-workshop'), 14 value: 'other', 15 } 16 /** 17 * [frontend-step-01] 18 * 📝 Add more options using the same format as above. Ensure one option has the key "other". 19 */ 20 ]; 2 jQuery.ajaxSetup({ cache: false }); 3 jQuery( window ).on("load", function() { 4 try { 5 if(localized_script.account_option==="always_pwd") { 6 7 jQuery('#rfq_createaccount')[0].checked = true; 8 jQuery('#rfq_createaccount').prop('disabled', true); 9 jQuery('.gpls-woo-rfq_checkout_button').attr('disabled', 'disabled'); 10 } 11 12 13 let isChecked = jQuery('#rfq_createaccount')[0].checked; 14 15 if(isChecked) 16 { 17 jQuery(('#account_password')).attr("required", true); 18 jQuery("#account_password").addClass("required"); 19 jQuery("#account_password").show(); 20 jQuery('.password_input_div').show(); 21 22 23 }else{ 24 jQuery('#account_password').attr("required", false); 25 jQuery('#account_password').removeClass("required"); 26 jQuery("#account_password").hide(); 27 jQuery('.password_input_div').hide(); 28 29 } 30 31 32 jQuery('#rfq_createaccount').on('click', function () { 33 34 let isChecked = jQuery('#rfq_createaccount')[0].checked; 35 36 if(isChecked) 37 { 38 jQuery(('#account_password')).attr("required", true); 39 jQuery("#account_password").addClass("required"); 40 jQuery("#account_password").show(); 41 jQuery('.password_input_div').show(); 42 43 44 }else{ 45 jQuery('#account_password').attr("required", false); 46 jQuery('#account_password').removeClass("required"); 47 jQuery("#account_password").hide(); 48 jQuery('.password_input_div').hide(); 49 50 } 51 52 }); 53 54 jQuery( document ).ready( function( $ ) { 55 jQuery( 'body' ).on( 'keyup', '#account_password', function( event ) { 56 if( jQuery( this ).val() != '' ) { 57 58 jQuery( '#password-length','.woocommerce-password-hint' ).show(); 59 60 check_password_strength( jQuery( '#account_password' ), 61 null, 62 jQuery( '#password-length' ), 63 jQuery('.gpls-woo-rfq_checkout_button'), ['123', 'abc', 'hello', 'admin'] ); 64 }else{ 65 check_password_strength( jQuery( '#account_password' ), 66 null, 67 jQuery( '#password-length' ), 68 jQuery('.gpls-woo-rfq_checkout_button'), ['123', 'abc', 'hello', 'admin'] ); 69 jQuery( '#password-length','.woocommerce-password-hint' ).hide(); 70 71 72 } 73 }); 74 75 76 77 78 }); 79 80 function check_password_strength( password, confirm_password, length_Message, submit_Btn, blacklist_Words ) { 81 var password = password.val(); 82 83 blacklist_Words = blacklist_Words.concat( wp.passwordStrength.userInputBlacklist() ) 84 jQuery('.gpls-woo-rfq_checkout_button').attr( 'disabled', 'disabled' ); 85 length_Message.removeClass( 'short bad good strong' ); 86 var password_length = wp.passwordStrength.meter( password, blacklist_Words ); 87 switch ( password_length ) { 88 case 2: 89 length_Message.addClass( 'bad' ).html( pwsL10n.bad ); 90 jQuery( '.woocommerce-password-hint' ).show(); 91 break; 92 case 3: 93 length_Message.addClass( 'good' ).html( pwsL10n.good ); 94 jQuery( '.woocommerce-password-hint' ).hide(); 95 break; 96 case 4: 97 jQuery( '.woocommerce-password-hint' ).hide(); 98 length_Message.addClass( 'strong' ).html( pwsL10n.strong ); 99 break; 100 101 default: 102 jQuery( '.woocommerce-password-hint' ).hide(); 103 length_Message.addClass( 'short' ).html( pwsL10n.short ); 104 105 } 106 if ( password_length >= 2 ) { 107 // submit_Btn.removeAttr( 'disabled' ); 108 jQuery('.gpls-woo-rfq_checkout_button').removeAttr( 'disabled' ); 109 }else{ 110 jQuery( '.woocommerce-password-hint' ).show(); 111 112 } 113 return password_length; 114 115 116 } 117 118 119 120 }catch(err){} 121 122 } ); // jQuery( document ).ready 21 123 22 124 … … 30 132 31 133 134 135 136 137 138 139 140 141 -
woo-rfq-for-woocommerce/trunk/includes/classes/admin/settings/gpls_woo_rfq_settings.php
r3182706 r3227128 569 569 'type' => 'text', 570 570 'desc' => 'If 4-02 above is selected,<br /> 571 this message (not blank)will be added to the subject of the notification email to admin.<br />571 this message will be added to the subject of the notification email to admin.<br /> 572 572 It also adds a note to the order', 573 573 'default' => __('No Payment', 'woo-rfq-for-woocommerce'), … … 707 707 ), 708 708 'rfq_cart_wordings_quote_request_currently_empty' => array( 709 'name' => '12- Normal Checkout- ' . esc_html_e('Your Quote Request List Is Currently Empty', 'woo-rfq-for-woocommerce'),709 'name' => '12- Normal Checkout- ' . __('Your Quote Request List Is Currently Empty', 'woo-rfq-for-woocommerce'), 710 710 'type' => 'text', 711 711 'desc' => '', -
woo-rfq-for-woocommerce/trunk/includes/classes/cart/gpls_woo_rfq_cart.php
r3195108 r3227128 2301 2301 2302 2302 $add_txt = get_option('rfq_cart_wordings_add_to_rfq', $default_text); 2303 $add_txt = __($add_txt, 'woo-rfq-for-woocommerce');2303 // $add_txt = __($add_txt, 'woo-rfq-for-woocommerce'); 2304 2304 2305 2305 $in_txt = get_option('rfq_cart_wordings_in_rfq', $default_text); 2306 $in_txt = __($in_txt, 'woo-rfq-for-woocommerce');2306 // $in_txt = __($in_txt, 'woo-rfq-for-woocommerce'); 2307 2307 2308 2308 } … … 2349 2349 $request_quote = __('Read more', 'woo-rfq-for-woocommerce');// "Request Quote" 2350 2350 $read_more = get_option('settings_gpls_woo_rfq_read_more');// "Request Quote" 2351 $read_more = __($read_more, 'woo-rfq-for-woocommerce');2351 // $read_more = __($read_more, 'woo-rfq-for-woocommerce'); 2352 2352 2353 2353 if ($read_more != "") { … … 2370 2370 $request_quote = __('Read more', 'woo-rfq-for-woocommerce');// "Request Quote" 2371 2371 $read_more = get_option('settings_gpls_woo_rfq_read_more');// "Request Quote" 2372 $read_more = __($read_more, 'woo-rfq-for-woocommerce');2372 // $read_more = __($read_more, 'woo-rfq-for-woocommerce'); 2373 2373 2374 2374 if ($read_more != "") { … … 2384 2384 2385 2385 $add_txt= apply_filters('gpls_woo_rfq_add_to_cart_button_text', $add_txt, $product, $rfq_checkout_mode); 2386 2387 2386 2388 2387 2389 -
woo-rfq-for-woocommerce/trunk/includes/classes/checkout/gpls_woo_rfq_ncheckout.php
r3142924 r3227128 10 10 add_action('woocommerce_order_needs_payment', 'gplswoo_woocommerce_order_needs_payment', 10, 3); 11 11 function gplswoo_woocommerce_order_needs_payment($status, $order, $valid_order_statuses){ 12 np_write_log( 'gplswoo_woocommerce_order_needs_payment '.$status,__FILE__,__LINE__); 13 12 14 return false; 13 15 } … … 15 17 16 18 } 19 17 20 { 18 21 if ( !is_admin()&&get_option('settings_gpls_woo_rfq_no_payment_checkout', 'no') == 'yes') … … 31 34 if (!function_exists('woocommerce_payment_complete_status')){ 32 35 function woocommerce_payment_complete_status($status, $id, $order) { 33 return 'wc-pending'; 36 np_write_log('woocommerce_payment_complete_status '. $status,__FILE__,__LINE__); 37 38 return 'pending'; 34 39 } 35 40 } 41 42 43 if (!function_exists('gpls_pre_payment_complete')){ 44 function gpls_pre_payment_complete( $id, $trx_id) { 45 np_write_log('gpls_pre_payment_complete '. $id,__FILE__,__LINE__); 46 $order=wc_get_order($id); 47 $order->set_status('wc-pending'); 48 $order->save(); 49 50 } 51 } 36 52 37 53 if (!function_exists('gpls_woo_rfq_check')) { … … 43 59 add_filter( 'woocommerce_payment_complete_order_status','woocommerce_payment_complete_status',1000,3); 44 60 //apply_filters( 'woocommerce_payment_complete_order_status', $this->needs_processing() ? 'processing' : 'completed', $this->get_id(), $this ) 61 62 // add_action( 'woocommerce_pre_payment_complete','gpls_pre_payment_complete', 100,2 ); 45 63 } 46 64 } -
woo-rfq-for-woocommerce/trunk/readme.txt
r3195129 r3227128 6 6 Tested up to: 6.7 7 7 Requires PHP: 8.2 8 WC tested up to: 9. 3.39 Stable tag: 1.9.1 798 WC tested up to: 9.6.0 9 Stable tag: 1.9.180 10 10 License: GPLv2 11 11 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 209 209 == Changelog == 210 210 211 = 1.9.1 79 11/22/2024=212 languge file corruption fixed 211 = 1.9.180 1/22/2025 = 212 fix password file 213 213 214 214 == Upgrade Notice == 215 215 216 = 1.9.1 79 11/22/2024=217 languge file corruption fixed 218 219 216 = 1.9.180 1/22/2025 = 217 fix password file 218 219 -
woo-rfq-for-woocommerce/trunk/woo-rfq-for-woocommerce.php
r3195129 r3227128 3 3 * Plugin Name: NP Quote Request for WooCommerce 4 4 * Description: NP Quote Request for WooCommerce enables your customers to easily submit a quote request to your WooCommerce store. It is very flexible and can be used in a variety of store settings. NP Quote Request for WooCommerce enables you to generate leads and engage with your customers! 5 * Version: 1.9.1 795 * Version: 1.9.180 6 6 * Contributors: Neah Plugins,gplsaver 7 7 * Author: Neah Plugins … … 11 11 * Tested up to: 6.7 12 12 * Requires PHP: 7.4 13 * WC tested up to: 9. 3.313 * WC tested up to: 9.6.0 14 14 * Text Domain: woo-rfq-for-woocommerce 15 15 * Domain Path: /languages/ … … 352 352 353 353 354 if (class_exists('WC_Payment_Gateway')) { 354 if (class_exists('WC_Payment_Gateway')) 355 { 355 356 // require_once 'includes/class-wc-gateway-dummy.php'; 356 357 require_once 'includes/classes/gateway/class-wc-gateway-rfq.php'; 357 358 $GLOBALS['WC_Gateway_RFQ'] = new WC_Gateway_RFQ(); 358 //require_once 'includes/classes/gateway/wc-gateway-gpls-request-quote.php';359 require_once 'includes/classes/gateway/wc-gateway-gpls-request-quote.php'; 359 360 } 360 361 … … 545 546 public function check_for_rfq_checkout() 546 547 { 548 547 549 add_filter('woocommerce_payment_gateways', 'add_gpls_woo_rfq_class', 1, 1); 548 550 … … 551 553 // add_filter('woocommerce_available_payment_gateways', 'gpls_rfq_remove_other_payment_gateways', 1000, 1); 552 554 add_filter('woocommerce_payment_gateways', 'gpls_rfq_remove_other_block_payment_gateways', 1000, 1); 555 553 556 554 557 gpls_woo_rfq_handle_checkout();
Note: See TracChangeset
for help on using the changeset viewer.