Changeset 2857320
- Timestamp:
- 01/30/2023 08:27:06 PM (3 years ago)
- Location:
- bosta-woocommerce
- Files:
-
- 15 added
- 2 edited
-
tags/2.9.5 (added)
-
tags/2.9.5/Css (added)
-
tags/2.9.5/Css/main.css (added)
-
tags/2.9.5/assets (added)
-
tags/2.9.5/assets/images (added)
-
tags/2.9.5/assets/images/bosta.svg (added)
-
tags/2.9.5/assets/images/refresh.png (added)
-
tags/2.9.5/assets/images/refreshIcon.png (added)
-
tags/2.9.5/bosta-woocommerce.php (added)
-
tags/2.9.5/components (added)
-
tags/2.9.5/components/pickups (added)
-
tags/2.9.5/components/pickups/pickups.css (added)
-
tags/2.9.5/components/pickups/pickups.php (added)
-
tags/2.9.5/readme.txt (added)
-
tags/2.9.5/uninstall.php (added)
-
trunk/bosta-woocommerce.php (modified) (5 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bosta-woocommerce/trunk/bosta-woocommerce.php
r2839756 r2857320 5 5 * Author: Bosta 6 6 * Author URI: https://www.bosta.co/ 7 * Version: 2.9. 47 * Version: 2.9.5 8 8 * Requires at least: 5.0 9 9 * php version 7.0 … … 454 454 $ProductDescription = get_option('woocommerce_bosta_settings')['ProductDescription']; 455 455 $OrderRef = get_option('woocommerce_bosta_settings')['OrderRef']; 456 $AllowToOpenPackage = get_option('woocommerce_bosta_settings')['AllowToOpenPackage']; 456 457 if (empty($APIKey)) { 457 458 $redirect_url = admin_url('admin.php?') . 'page=wc-settings&tab=shipping§ion=bosta'; … … 510 511 if ($OrderRef == 'yes') { 511 512 $newOrder->businessReference = 'Woocommerce_' . $order->order_key; 513 } 514 if ($AllowToOpenPackage == 'yes') { 515 $newOrder->allowToOpenPackage = true; 512 516 } 513 517 $newOrder->receiver = new stdClass(); … … 794 798 } 795 799 } 796 797 $url = BOSTA_ENV_URL . '/ deliveries/awb?ids=' . $ids;800 $ids = rtrim($ids, ','); 801 $url = BOSTA_ENV_URL . '/admin/deliveries/printawb?ids=' . $ids . '&lang=ar'; 798 802 $result = wp_remote_get($url, array( 799 803 'timeout' => 30, … … 1050 1054 'type' => 'checkbox', 1051 1055 'default' => 'yes', 1056 ), 1057 'AllowToOpenPackage' => array( 1058 'label' => 'Allow Customer to open package', 1059 'title' => __('Allow to open package', 'bosta'), 1060 'type' => 'checkbox', 1061 'default' => 'no', 1052 1062 ), 1053 1063 ); -
bosta-woocommerce/trunk/readme.txt
r2839121 r2857320 7 7 Requires PHP: 7.0 8 8 Tested up to: 6.1.1 9 Stable tag: 2.9. 49 Stable tag: 2.9.5 10 10 WC requires at least: 2.6 11 11 WC tested up to: 7.2.2 … … 141 141 = 2.9.4 = 142 142 * Security enhancements 143 144 = 2.9.5 = 145 * Add Allow to Open Package Option
Note: See TracChangeset
for help on using the changeset viewer.