Plugin Directory

Changeset 3026812


Ignore:
Timestamp:
01/25/2024 01:38:46 PM (2 years ago)
Author:
hfdepost
Message:

Performance Improvement

Location:
hfd-epost-integration/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • hfd-epost-integration/trunk/class/App.php

    r3014281 r3026812  
    103103            update_option( 'hfd_order_auto_sync', 'no' );
    104104        }
     105       
     106        //replace old urls to new
     107        if( strpos( $hfd_epost_service_url, "uniscripts/MGrqispi.dll" ) !== false && filter_var( $hfd_epost_service_url, FILTER_VALIDATE_URL ) == true ){
     108            $hfd_epost_service_url = str_replace( 'uniscripts/MGrqispi.dll', 'RunCom.Server/Request.aspx', $hfd_epost_service_url );
     109           
     110            update_option( 'betanet_epost_service_url', $hfd_epost_service_url );
     111        }
     112       
     113        $betanet_epost_hfd_service_url = get_option( 'betanet_epost_hfd_service_url' );
     114        if( strpos( $betanet_epost_hfd_service_url, "uniscripts/MGrqispi.dll" ) !== false && filter_var( $betanet_epost_hfd_service_url, FILTER_VALIDATE_URL ) == true ){
     115            $betanet_epost_hfd_service_url = str_replace( 'uniscripts/MGrqispi.dll', 'RunCom.Server/Request.aspx', $betanet_epost_hfd_service_url );
     116           
     117            update_option( 'betanet_epost_hfd_service_url', $betanet_epost_hfd_service_url );
     118        }
     119       
     120        if( strpos( $track_shipment_url, "uniscripts/MGrqispi.dll" ) !== false && filter_var( $track_shipment_url, FILTER_VALIDATE_URL ) == true ){
     121            $track_shipment_url = str_replace( 'uniscripts/MGrqispi.dll', 'RunCom.Server/Request.aspx', $track_shipment_url );
     122           
     123            update_option( 'betanet_epost_hfd_track_shipment_url', $track_shipment_url );
     124        }
     125       
     126        if( strpos( $cancel_shipment_url, "uniscripts/MGrqispi.dll" ) !== false && filter_var( $cancel_shipment_url, FILTER_VALIDATE_URL ) == true ){
     127            $cancel_shipment_url = str_replace( 'uniscripts/MGrqispi.dll', 'RunCom.Server/Request.aspx', $cancel_shipment_url );
     128           
     129            update_option( 'betanet_epost_hfd_cancel_shipment_url', $cancel_shipment_url );
     130        }
     131       
     132        if( strpos( $print_label_url, "uniscripts/MGrqispi.dll" ) !== false && filter_var( $print_label_url, FILTER_VALIDATE_URL ) == true ){
     133            $print_label_url = str_replace( 'uniscripts/MGrqispi.dll', 'RunCom.Server/Request.aspx', $print_label_url );
     134           
     135            update_option( 'betanet_epost_hfd_print_label_url', $print_label_url );
     136        }
    105137    }
    106138   
  • hfd-epost-integration/trunk/hfd-woocommerce-epost.php

    r3021501 r3026812  
    44Plugin URI:
    55Description: Add shipping method of ePost, allowing the user on the checkout, to select the pickup location point from a google map popup. Also allows to synch the order to HFD API after the order is created.
    6 Version: 1.7
     6Version: 1.8
    77Author: HFD
    88Author URI: https://www.hfd.co.il
  • hfd-epost-integration/trunk/readme.txt

    r3021501 r3026812  
    55Requires at least: 4.0
    66Tested up to: 6.4
    7 Stable tag: 1.7
     7Stable tag: 1.8
    88Requires PHP: 5.4
    99License: GPLv2 or later
Note: See TracChangeset for help on using the changeset viewer.