Plugin Directory

Changeset 3102566


Ignore:
Timestamp:
06/14/2024 05:38:19 AM (22 months ago)
Author:
minicrmio
Message:

Product description sync is optional now (can be omitted).

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

Legend:

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

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

    r3009379 r3102566  
    133133            throw new \Exception ('Missing option "folder_name"');
    134134        }
     135
     136        // Sync product descriptions?
     137        $sync_product_desc = Integration::getOption ('sync_product_desc') === 'yes';
    135138
    136139        // Get locale
     
    500503                            if ($itemProduct instanceof \WC_Product) {
    501504                                $sku = $itemProduct->get_sku ();
    502                                 $productDescription = substr($itemProduct->get_description(), 0, 1024);
     505                                if ($sync_product_desc) {
     506                                    $productDescription = $itemProduct->get_description ();
     507                                    $productDescription = substr ($productDescription, 0, 1024);
     508                                }
    503509                            }
    504510                            break;
  • minicrm-woocommerce-sync/trunk/lib/Integration.php

    r2849279 r3102566  
    254254                'title'       => __('Folder name', 'minicrm-woocommerce-sync'),
    255255                'type'        => 'text',
     256            ],
     257            'sync_product_desc' => [
     258                'default'     => 'yes',
     259                'title'       => __(
     260                    'Sync product descriptions',
     261                    'minicrm-woocommerce-sync'
     262                ),
     263                'type'        => 'checkbox',
    256264            ],
    257265            'debug' => [
  • minicrm-woocommerce-sync/trunk/minicrm-woocommerce-sync.php

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

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