Plugin Directory

Changeset 3148685


Ignore:
Timestamp:
09/09/2024 12:42:57 PM (18 months ago)
Author:
visidea
Message:

2.1.4

Location:
visidea
Files:
215 added
3 edited

Legend:

Unmodified
Added
Removed
  • visidea/trunk/admin/class-visidea-admin.php

    r3148484 r3148685  
    204204    $mpn = implode('|', get_post_meta($item->get_id(), 'woo_feed_mpn'));
    205205    $ean = implode('|', get_post_meta($item->get_id(), 'woo_feed_ean'));
     206
     207    $brand_names = '';
     208    $brand_ids = '';
     209    $brands = wp_get_post_terms($item->get_id(), 'pwb-brand');
     210    if (!is_wp_error($brands) && !empty($brands)) {
     211      foreach ($brands as $brand) {
     212        $brand_names .= $brand->name.'|';
     213        $brand_ids .= $brand->term_id.'|';
     214      }
     215      $brand_names = substr($brand_names, 0, -1);
     216      $brand_ids = substr($brand_ids, 0, -1);
     217    }
     218
    206219    $buffer = $item->get_id() . ';' .
    207220              $item->get_sku() . ';' .
    208221              $mpn . ';' .
    209222              $ean . ';' .
    210               Visidea::sanitizeString($item->get_name()) . ';' .
    211               '"";' . '"";';
     223              '"'.Visidea::sanitizeString($item->get_name()) . '";' .
     224              '"'.$brand_ids.'";' .
     225              '"'.$brand_names.'";';
    212226
    213227    if ($item->is_type('variable')) {
  • visidea/trunk/readme.txt

    r3148484 r3148685  
    66Tested up to: 6.6
    77Requires PHP: 7.0
    8 Stable tag: 2.1.3
     8Stable tag: 2.1.4
    99License: GPLv3
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    9696
    9797== Changelog ==
     98
     99= 2.1.4 2024-09-09 =
     100Brand management improvement
    98101
    99102= 2.1.3 2024-09-09 =
  • visidea/trunk/visidea.php

    r3148484 r3148685  
    55 * Plugin URI: https://visidea.ai
    66 * Description: Visidea is the search and recommendations plugin for WooCommerce. Visidea improves UX and increases the revenues of your website.
    7  * Version: 2.1.3
     7 * Version: 2.1.4
    88 * Author: Inferendo
    99 * Author URI: https://visidea.ai
     
    2727 * Current Visidea version.
    2828 */
    29 define('VISIDEA_VERSION', '2.1.3');
     29define('VISIDEA_VERSION', '2.1.4');
    3030
    3131/**
Note: See TracChangeset for help on using the changeset viewer.