Changeset 2675645
- Timestamp:
- 02/09/2022 11:24:55 AM (4 years ago)
- Location:
- qisstpay/trunk
- Files:
-
- 4 edited
-
class_woo_qp_pgw.php (modified) (1 diff)
-
js/qisstpay_plugin_script.js (modified) (2 diffs)
-
qpayment-plugin.php (modified) (4 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
qisstpay/trunk/class_woo_qp_pgw.php
r2674829 r2675645 244 244 $phone = $this->qpayment8911_convertNo($order_billing_phone); 245 245 $params = [ 246 'plugin_version' => '3. 0.0',246 'plugin_version' => '3.1', 247 247 'qisstpay_nid' => $idd, 248 248 'partner_id' => 'wordpress', -
qisstpay/trunk/js/qisstpay_plugin_script.js
r2674829 r2675645 50 50 jQuery('#qp-lds-roller').append(player); 51 51 52 52 if(jQuery('input[name=variation_id]') && (jQuery('input[name=variation_id]').val() == ''||jQuery('input[name=variation_id]').val() == 0 || jQuery('input[name=variation_id]').val() == '0')) { 53 return; 54 } 53 55 // or load via a Bodymovin JSON string/object 54 56 var quantity = jQuery("input[name=quantity]").val(); … … 67 69 68 70 ar = allAttributes.find(b => { 69 return b.sku.toString() == jQuery('.sku_wrapper>.sku').html().toString() 71 if(jQuery('.sku_wrapper>.sku').html()) { 72 return b.sku.toString() == jQuery('.sku_wrapper>.sku').html().toString() 73 } 70 74 }) 71 75 } -
qisstpay/trunk/qpayment-plugin.php
r2674829 r2675645 5 5 * Plugin URI: https://qisstpay.com/ 6 6 * Description: QisstPay - pay in interest free installments. 7 * Version: 3. 0.07 * Version: 3.1 8 8 * Author: QisstPay 9 9 * Author URI: https://qisstpay.com/ … … 83 83 $is_live = 0; 84 84 } 85 if ($obj->get_option('qpay_wignet_enabled') == 'yes' ) {85 if ($obj->get_option('qpay_wignet_enabled') == 'yes' && $obj->get_option('qp_tez_enabled') == 'no') { 86 86 $image = plugin_dir_url(dirname(__FILE__)).basename(dirname(__FILE__)).'/images/QisstPay_logo_white_bg.png'; 87 87 $imageNew_qp = plugin_dir_url(dirname(__FILE__)).basename(dirname(__FILE__)).'/images/Qisstpay_DesktopTablet_wqp.png'; … … 476 476 $title = $product->get_title(); 477 477 478 if(isset($_GET['variation_id']) && !is_null($_GET['variation_id']) && $_GET['variation_id'] !== '') { 478 $price = 0; 479 480 if(isset($_GET['variation_id']) && !is_null($_GET['variation_id']) && $_GET['variation_id'] !== '' && $_GET['variation_id'] != 'undefined') { 479 481 $woocommerce->cart->add_to_cart( (string)$_GET['product_id'], (string)$_GET['quantity'], (string)$_GET['variation_id'] ); 482 $var_product = new WC_Product_Variation($_GET['variation_id']); 483 $price = $var_product->get_price(); 480 484 } else { 481 485 $woocommerce->cart->add_to_cart( $_GET['product_id'], $_GET['quantity']); 486 $price = $product->get_price(); 487 if($product->is_on_sale()) { 488 $price = $product->get_sale_price(); 489 } 482 490 } 483 491 … … 489 497 [ 490 498 'id' => $_GET['product_id'], 491 'price' => $ total['subtotal'],499 'price' => $price, 492 500 'img' => $img, 493 501 'title' => $title -
qisstpay/trunk/readme.txt
r2674829 r2675645 1 1 === QisstPay - pay in interest free installments. === 2 2 Contributors: QisstPay 3 Tags: woocommerce,payment gateway, woocommerce extension, Qisstpay payment,payment, payment option, custom payment , 1Click3 Tags: woocommerce,payment gateway, woocommerce extension, Qisstpay payment,payment, payment option, custom payment 4 4 Requires at least: 4.0 5 5 Tested up to: 5.7.2
Note: See TracChangeset
for help on using the changeset viewer.