From 38bfb29d50c716ff69a04ebb72868e2d537ff7e4 Mon Sep 17 00:00:00 2001 From: Saul Morales Date: Fri, 6 Sep 2024 19:51:48 -0500 Subject: [PATCH] Added apply_filters wc_siigo_integration_description_item --- includes/class-integration-siigo-wc.php | 2 +- integration-siigo-woo.php | 4 ++-- readme.txt | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/class-integration-siigo-wc.php b/includes/class-integration-siigo-wc.php index 156f1f7..0d9d205 100644 --- a/includes/class-integration-siigo-wc.php +++ b/includes/class-integration-siigo-wc.php @@ -301,7 +301,7 @@ public static function generate_invoice($order_id, $previous_status, $next_statu $tax_total = $item_taxes['total'][$tax_rate_id]; $items[] = [ "code" => $product->get_sku(), - "description" => $product->get_name(), + "description" => apply_filters('wc_siigo_integration_description_item', $product->get_name()), "quantity" => $item->get_quantity(), "discount" => wc_format_decimal($item->get_subtotal() - $item->get_total(), 0), "price" => wc_format_decimal($item->get_total() / $item->get_quantity(), 0) diff --git a/integration-siigo-woo.php b/integration-siigo-woo.php index ae49415..61c94f6 100644 --- a/integration-siigo-woo.php +++ b/integration-siigo-woo.php @@ -2,7 +2,7 @@ /** * Plugin Name: Integration Siigo Woocommerce * Description: IntegraciĆ³n del sistama contable y de facturaciĆ³n Siigo para Woocoommerce - * Version: 0.0.10 + * Version: 0.0.11 * Author: Saul Morales Pacheco * Author URI: https://saulmoralespa.com * License: GNU General Public License v3.0 @@ -17,7 +17,7 @@ } if(!defined('INTEGRATION_SIIGO_WC_SMP_VERSION')){ - define('INTEGRATION_SIIGO_WC_SMP_VERSION', '0.0.10'); + define('INTEGRATION_SIIGO_WC_SMP_VERSION', '0.0.11'); } add_action( 'plugins_loaded', 'integration_siigo_wc_smp_init'); diff --git a/readme.txt b/readme.txt index 856fb64..7d49b96 100644 --- a/readme.txt +++ b/readme.txt @@ -5,7 +5,7 @@ Tags: commerce, e-commerce, commerce, WordPress ecommerce, store, sales, sell, s Requires at least: 6.0 Tested up to: 6.6.1 Requires PHP: 8.1 -Stable tag: 0.0.10 +Stable tag: 0.0.11 License: GNU General Public License v3.0 License URI: https://www.gnu.org/licenses/gpl-3.0.html