Changeset 3265668
- Timestamp:
- 04/02/2025 12:53:41 PM (12 months ago)
- Location:
- expedico
- Files:
-
- 20 added
- 4 edited
-
tags/.DS_Store (modified) (previous)
-
tags/2.0.4 (added)
-
tags/2.0.4/.DS_Store (added)
-
tags/2.0.4/DeliveryShippingMethod.php (added)
-
tags/2.0.4/ExpedicoAPI.php (added)
-
tags/2.0.4/ExpedicoOrderStatus.php (added)
-
tags/2.0.4/ExpedicoSettings.php (added)
-
tags/2.0.4/PickupPointsShippingMethod.php (added)
-
tags/2.0.4/choose-pickup.html (added)
-
tags/2.0.4/expedico.php (added)
-
tags/2.0.4/languages (added)
-
tags/2.0.4/languages/expedico-cs_CZ.mo (added)
-
tags/2.0.4/languages/expedico-cs_CZ.po (added)
-
tags/2.0.4/languages/expedico-en_US.mo (added)
-
tags/2.0.4/languages/expedico-en_US.po (added)
-
tags/2.0.4/public (added)
-
tags/2.0.4/public/.DS_Store (added)
-
tags/2.0.4/public/js (added)
-
tags/2.0.4/public/js/recalculateShipping.js (added)
-
tags/2.0.4/public/js/widget.js (added)
-
tags/2.0.4/readme.txt (added)
-
trunk/ExpedicoAPI.php (modified) (2 diffs)
-
trunk/expedico.php (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
expedico/trunk/ExpedicoAPI.php
r3111010 r3265668 34 34 'phone' => $order->get_billing_phone(), 35 35 ], 36 'description' => sprintf(__('Order from %1$s no. %2$s', 'expedico'), get_bloginfo('name'), $order->get_order_number()), 36 // 'description' => sprintf(__('Order from %1$s no. %2$s', 'expedico'), get_bloginfo('name'), $order->get_order_number()), 37 'description' => $this->generate_product_description($order), 37 38 // 'weightInKg' => '{weight}', 38 39 'carrierPickupDate' => date('Y-m-d') … … 151 152 } 152 153 154 private function generate_product_description(\WC_Order $order): string 155 { 156 $lines = []; 157 158 foreach ($order->get_items() as $item) { 159 $product = $item->get_product(); 160 if (!$product) { 161 continue; 162 } 163 164 $sku = $product->get_sku() ?: $product->get_name(); 165 $qty = $item->get_quantity(); 166 167 $lines[] = "{$qty} - {$sku}"; 168 } 169 170 return implode(', ', $lines); 171 } 172 173 153 174 public function getLabelsPdfString(array $parcelIds): ?string 154 175 { -
expedico/trunk/expedico.php
r3263626 r3265668 12 12 * Plugin Name: Expedico 13 13 * Description: Single point for your ecommerce parcel delivery, returns handling and fulfillment service mainly in Eastern Europe. 14 * Version: 2.0. 314 * Version: 2.0.4 15 15 * Author: Expedico 16 16 * Author URI: https://expedico.eu -
expedico/trunk/readme.txt
r3263626 r3265668 2 2 Contributors: Expedico 3 3 Tags: woocommerce shipping, woocommerce, cross border, delivery 4 WC tested up to: 8.55 Tested up to: 6. 4.26 Stable tag: 2.0. 34 WC tested up to: 9.7.1 5 Tested up to: 6.7.2 6 Stable tag: 2.0.4 7 7 Requires PHP: 7.4 8 8 License: GPLv2
Note: See TracChangeset
for help on using the changeset viewer.