Plugin Directory

Changeset 2507560


Ignore:
Timestamp:
04/01/2021 04:56:44 PM (5 years ago)
Author:
sixg
Message:

Update to 2.4.17

Location:
splitit-installment-payments-enabler
Files:
42 added
3 edited
2 copied

Legend:

Unmodified
Added
Removed
  • splitit-installment-payments-enabler/tags/2.4.17/readme.txt

    r2487717 r2507560  
    7171
    7272== Changelog ==
     73= 2.4.17 =
     74* Fix support for custom checkout success pages
     75* Fix customer journey appearance on product page
    7376
    7477= 2.4.16 =
  • splitit-installment-payments-enabler/tags/2.4.17/splitit.php

    r2487717 r2507560  
    55Plugin URI: http://wordpress.org/plugins/splitit/
    66Description: Integrates Splitit payment method into your WooCommerce installation.
    7 Version: 2.4.16
     7Version: 2.4.17
    88Author: Splitit
    99Text Domain: splitit
     
    177177    if (!class_exists('WC_Payment_Gateway')) {return;}
    178178
    179     define('Splitit_VERSION', '2.4.16');
     179    define('Splitit_VERSION', '2.4.17');
    180180    define('Splitit_logo_source_local', plugin_dir_url(__FILE__) . 'assets/images/Offical_Splitit_Logo.png');
    181181
     
    13601360                    $last_order_key = $last_order->order_key;
    13611361
    1362                     wp_redirect(site_url("checkout/order-received/" . $orderId . "/?key=" . $last_order_key));
     1362                    $checkout_url = wc_get_checkout_url();
     1363                    $redirect = sprintf('%s%s/%s/?key=%s', $checkout_url, get_option('woocommerce_checkout_order_received_endpoint'), $orderId, $last_order_key);
     1364
     1365                    wp_redirect($redirect);
    13631366                    SplitIt_Helper::exit_safely();
    13641367                }
     
    15441547                        $this->log->info(__FILE__, __LINE__, __METHOD__);
    15451548                        $this->log->add('splitit_thankyou_page==='.$this->s('splitit_thankyou_page'));
    1546                        
    1547                         if($this->s('splitit_thankyou_page') == 'no'){
    1548                             $redirect = $checkout_url . 'order-received/' . $order_id . '/?key=' . $order_key;
    1549                         } else {
    1550                             $redirect = ($order->get_checkout_order_received_url())?$order->get_checkout_order_received_url():$checkout_url . '/order-received/' . $order_id . '/?key=' . $order_key;
     1549
     1550                        $redirect = sprintf('%s%s/%s/?key=%s', $checkout_url, get_option('woocommerce_checkout_order_received_endpoint'), $order_id, $order_key);
     1551
     1552                        if($this->s('splitit_thankyou_page') == 'yes'){
     1553                            $redirect = ($order->get_checkout_order_received_url()) ? $order->get_checkout_order_received_url() : $redirect;
    15511554                        }
     1555
    15521556                        $this->log->add('$redirect==='.$redirect);
    15531557
     
    17501754        public function change_payment_gateway($gateways) {
    17511755
    1752             if (empty(WC()->cart)) {
     1756            if (empty(WC()->cart) || (isset($this->settings['splitit_discount_type']) && $this->settings['splitit_discount_type'] == 'fixed')) {
    17531757                return $gateways;
    17541758            }
  • splitit-installment-payments-enabler/trunk/classes/splitit-checkout.php

    r2472996 r2507560  
    590590               
    591591                $this->log->add('====SplitIt : splitit_thankyou_page ===='.$settings['splitit_thankyou_page'].'====');
    592                 if($settings['splitit_thankyou_page'] == 'no'){
    593                     $redirect = $checkout_url . '/order-received/' . $order_id . '/?key=' . $order_key;
    594                 } else {
    595                     $redirect = ($order->get_checkout_order_received_url())?$order->get_checkout_order_received_url():$checkout_url . '/order-received/' . $order_id . '/?key=' . $order_key;
     592                $redirect = sprintf('%s%s/%s/?key=%s', $checkout_url, get_option('woocommerce_checkout_order_received_endpoint'), $order_id, $order_key);
     593
     594                if($settings['splitit_thankyou_page'] == 'yes'){
     595                    $redirect = ($order->get_checkout_order_received_url()) ? $order->get_checkout_order_received_url() : $redirect;
    596596                }
    597597                $this->log->add('====SplitIt : redirect ===='.$redirect.'====');
  • splitit-installment-payments-enabler/trunk/readme.txt

    r2487717 r2507560  
    7171
    7272== Changelog ==
     73= 2.4.17 =
     74* Fix support for custom checkout success pages
     75* Fix customer journey appearance on product page
    7376
    7477= 2.4.16 =
  • splitit-installment-payments-enabler/trunk/splitit.php

    r2487717 r2507560  
    55Plugin URI: http://wordpress.org/plugins/splitit/
    66Description: Integrates Splitit payment method into your WooCommerce installation.
    7 Version: 2.4.16
     7Version: 2.4.17
    88Author: Splitit
    99Text Domain: splitit
     
    177177    if (!class_exists('WC_Payment_Gateway')) {return;}
    178178
    179     define('Splitit_VERSION', '2.4.16');
     179    define('Splitit_VERSION', '2.4.17');
    180180    define('Splitit_logo_source_local', plugin_dir_url(__FILE__) . 'assets/images/Offical_Splitit_Logo.png');
    181181
     
    13601360                    $last_order_key = $last_order->order_key;
    13611361
    1362                     wp_redirect(site_url("checkout/order-received/" . $orderId . "/?key=" . $last_order_key));
     1362                    $checkout_url = wc_get_checkout_url();
     1363                    $redirect = sprintf('%s%s/%s/?key=%s', $checkout_url, get_option('woocommerce_checkout_order_received_endpoint'), $orderId, $last_order_key);
     1364
     1365                    wp_redirect($redirect);
    13631366                    SplitIt_Helper::exit_safely();
    13641367                }
     
    15441547                        $this->log->info(__FILE__, __LINE__, __METHOD__);
    15451548                        $this->log->add('splitit_thankyou_page==='.$this->s('splitit_thankyou_page'));
    1546                        
    1547                         if($this->s('splitit_thankyou_page') == 'no'){
    1548                             $redirect = $checkout_url . 'order-received/' . $order_id . '/?key=' . $order_key;
    1549                         } else {
    1550                             $redirect = ($order->get_checkout_order_received_url())?$order->get_checkout_order_received_url():$checkout_url . '/order-received/' . $order_id . '/?key=' . $order_key;
     1549
     1550                        $redirect = sprintf('%s%s/%s/?key=%s', $checkout_url, get_option('woocommerce_checkout_order_received_endpoint'), $order_id, $order_key);
     1551
     1552                        if($this->s('splitit_thankyou_page') == 'yes'){
     1553                            $redirect = ($order->get_checkout_order_received_url()) ? $order->get_checkout_order_received_url() : $redirect;
    15511554                        }
     1555
    15521556                        $this->log->add('$redirect==='.$redirect);
    15531557
     
    17501754        public function change_payment_gateway($gateways) {
    17511755
    1752             if (empty(WC()->cart)) {
     1756            if (empty(WC()->cart) || (isset($this->settings['splitit_discount_type']) && $this->settings['splitit_discount_type'] == 'fixed')) {
    17531757                return $gateways;
    17541758            }
Note: See TracChangeset for help on using the changeset viewer.