Plugin Directory

Changeset 2373976


Ignore:
Timestamp:
09/02/2020 02:55:59 PM (6 years ago)
Author:
officegestpt
Message:

Fixed Bug in Classifications for Ecoauto Parts

Location:
officegest/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • officegest/trunk/officegest.php

    r2373903 r2373976  
    55 *   Plugin URI:   https://www.officegest.com/woocommerce
    66 *   Description:  A forma mais fácil de ligar a sua loja online com a sua faturação.
    7  *   Version:      1.0.23
     7 *   Version:      1.0.24
    88 *   Author:       OfficeGest
    99 *   Author URI:   https://www.officegest.com
  • officegest/trunk/readme.txt

    r2373903 r2373976  
    55Tested up to: 5.4
    66Requires PHP: 5.6
    7 Stable tag: 1.0.23
     7Stable tag: 1.0.24
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    3333
    3434== Changelog ==
     35
     36= 1.0.24 =
     37Fixed Bug in Classifications for Ecoauto Parts
    3538
    3639= 1.0.23 =
  • officegest/trunk/src/Controllers/SyncPecas.php

    r2373903 r2373976  
    5353                    }
    5454                    $parent_term_new_model_id = term_exists( $v1['model'], 'product_cat', $parent_term['term_id'] );
     55
    5556                    $sql_model                = "SELECT distinct category from " . TABLE_OFFICEGEST_ECO_PARTS . " where brand='" . $v['brand'] . "' and model='" . $v1['model'] . "'";
    5657                    $category                 = $wpdb->get_results( $sql_model, ARRAY_A );
     
    6667                        $component               = $wpdb->get_results( $sql_model, ARRAY_A );
    6768                        foreach ( $component as $k12 => $v12 ) {
    68                             $parent_term_component_id = term_exists( $v11['category'], 'product_cat',$parent_term_category_id['term_id'] );
     69                            $parent_term_component_id = term_exists( $v12['component'], 'product_cat',$parent_term_category_id['term_id'] );
    6970                            if ( ! isset( $parent_term_component_id['term_id'] ) ) {
    7071                                $datam['description'] = $v12['component'];
Note: See TracChangeset for help on using the changeset viewer.