Changeset 3699779
- Timestamp:
- 09/17/2026 08:18:17 AM (5 weeks ago)
- Location:
- skfaktura-sk-for-woocommerce/trunk
- Files:
-
- 3 edited
-
includes/class-skfaktura-woocommerce.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
-
skfaktura-sk-for-woocommerce.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
skfaktura-sk-for-woocommerce/trunk/includes/class-skfaktura-woocommerce.php
r3694068 r3699779 118 118 add_action('woocommerce_order_details_after_order_table', [$this, 'render_shipment_tracking'], 16); 119 119 add_action('woocommerce_email_after_order_table', [$this, 'render_document_links_in_email'], 15, 4); 120 add_action('woocommerce_email_after_order_table', [$this, 'render_shipment_tracking_in_email'], 16, 4);120 add_action('woocommerce_email_after_order_table', [$this, 'render_shipment_tracking_in_email'], PHP_INT_MAX, 4); 121 121 } 122 122 … … 1723 1723 return; 1724 1724 } 1725 1726 1725 echo '<section class="woocommerce-order-downloads skfaktura-shipment-tracking"><h2>Sledovanie zásielky</h2>'; 1727 1726 echo '<p>'.esc_html($tracking['provider_label'].' – '.$tracking['number']).'</p>'; … … 1741 1740 $order = $freshOrder; 1742 1741 } 1743 if ((string) $order->get_meta(self::META_TRACKING_NATIVE) === 'yes') {1744 return;1745 }1746 1747 1742 $tracking = $this->shipment_tracking_data($order); 1748 1743 if ($tracking === null) { 1744 return; 1745 } 1746 if ($this->email_output_contains_tracking_url($tracking['url'])) { 1749 1747 return; 1750 1748 } … … 1761 1759 echo '<p>'.esc_html($tracking['provider_label'].' – '.$tracking['number']).'</p>'; 1762 1760 echo '<p><a href="'.esc_url($tracking['url']).'" target="_blank" rel="noopener" style="'.esc_attr($this->button_style()).'">Sledovať zásielku</a></p>'; 1761 } 1762 1763 private function email_output_contains_tracking_url(string $trackingUrl): bool 1764 { 1765 $output = ob_get_contents(); 1766 if (! is_string($output) || $output === '') { 1767 return false; 1768 } 1769 1770 return strpos(html_entity_decode($output, ENT_QUOTES | ENT_HTML5, 'UTF-8'), $trackingUrl) !== false; 1763 1771 } 1764 1772 -
skfaktura-sk-for-woocommerce/trunk/readme.txt
r3694068 r3699779 5 5 Tested up to: 7.1 6 6 Requires PHP: 7.4 7 Stable tag: 0.9.1 67 Stable tag: 0.9.17 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 79 79 == Changelog == 80 80 81 = 0.9.17 = 82 * Odkaz na sledovanie sa spoľahlivo zobrazí v zákazníckom e-maile „Vybavená objednávka“ aj pri aktívnom kompatibilnom doplnku na sledovanie zásielok, bez zdvojenia už vykresleného odkazu. 83 81 84 = 0.9.16 = 82 85 * Odpojený e-shop si plugin zapamätá a zastaví opakovanú registráciu aj API prenosy objednávok. -
skfaktura-sk-for-woocommerce/trunk/skfaktura-sk-for-woocommerce.php
r3694068 r3699779 3 3 * Plugin Name: skFaktura.sk for WooCommerce 4 4 * Description: Synchronizuje doklady, skladové množstvo a vybrané ceny podľa SKU medzi WooCommerce a skFaktura.sk. 5 * Version: 0.9.1 65 * Version: 0.9.17 6 6 * Plugin URI: https://skfaktura.sk 7 7 * Requires at least: 6.0 … … 16 16 defined('ABSPATH') || exit; 17 17 18 define('SKFAKTURA_WOO_VERSION', '0.9.1 6');18 define('SKFAKTURA_WOO_VERSION', '0.9.17'); 19 19 define('SKFAKTURA_WOO_FILE', __FILE__); 20 20 define('SKFAKTURA_WOO_DIR', plugin_dir_path(__FILE__));
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)