Plugin Directory

Changeset 2988079


Ignore:
Timestamp:
11/02/2023 02:00:16 PM (2 years ago)
Author:
minicrmio
Message:

Sync product descriptions

Location:
minicrm-woocommerce-sync/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • minicrm-woocommerce-sync/trunk/languages/minicrm-woocommerce-sync.pot

    r2889465 r2988079  
    44"Project-Id-Version: MiniCRM "
    55"WooCommerce Sync plugin "
    6 "v1.5.24\n"
     6"v1.5.26\n"
    77"POT-Creation-Date: 2022-05-30 "
    88"22:22+0200\n"
  • minicrm-woocommerce-sync/trunk/lib/Feed.php

    r2758836 r2988079  
    473473                    }
    474474
    475                     // Init SKU (will be non-empty for product items only)
     475                    // Init SKU & Description (will be non-empty for product items only)
    476476                    $sku = '';
     477                    $productDescription = '';
    477478
    478479                    // Get item unit price
     
    499500                            if ($itemProduct instanceof \WC_Product) {
    500501                                $sku = $itemProduct->get_sku ();
     502                                $productDescription = substr($itemProduct->get_description(), 0, 1024);
    501503                            }
    502504                            break;
     
    525527                    $product->Quantity = $item->get_quantity ();
    526528                    $product->SKU = $sku;
     529                    $product->Description = htmlspecialchars($productDescription); //  ensure that special characters in the product description don't interfere with the XML structure.
    527530                    $product->Unit = $localUnit;
    528531                    $product->VAT = "$taxPercent%";
  • minicrm-woocommerce-sync/trunk/minicrm-woocommerce-sync.php

    r2889465 r2988079  
    1010 * Requires PHP: 8.0
    1111 * Text Domain: minicrm-woocommerce-sync
    12  * Version: 1.5.24
     12 * Version: 1.5.26
    1313 * WC requires at least: 4.0.0
    1414 * WC tested up to: 7.2
  • minicrm-woocommerce-sync/trunk/readme.txt

    r2889465 r2988079  
    55Requires at least: 4.9
    66Requires PHP: 8.0
    7 Stable tag: 1.5.24
     7Stable tag: 1.5.26
    88Tested up to: 6.2
    99WC requires at least: 4.0.0
Note: See TracChangeset for help on using the changeset viewer.