Plugin Directory

Changeset 2729580


Ignore:
Timestamp:
05/24/2022 03:53:29 PM (4 years ago)
Author:
perseosoftware
Message:

Actualización subcategorías

File:
1 edited

Legend:

Unmodified
Added
Removed
  • perseo-software/trunk/includes/PluginPerseo_cron.php

    r2727488 r2729580  
    840840                                                    $resProdCat = $wpdb->get_var($sql);
    841841                                                };
     842                                   
    842843
    843844                                    $wpdb->insert($table_prefix.'term_relationships',array('object_id'  => $idPost,'term_taxonomy_id'  => $resProdCat,'term_order'=> '0') );
     
    11411142                                    $resProdCat = $wpdb->get_var($sql);
    11421143                                };
    1143 
     1144                               
     1145                                if($perseo_parametros['perseocategorias']=='productos_subcategorias_consulta') {
     1146                                    $sql= "SELECT term_taxonomy_id  FROM {$table_prefix}term_taxonomy where description = '".$producto['productos_subcategoriasid']."-Perseo' ";
     1147                                    $resProdCat = $wpdb->get_var($sql);
     1148                                };
     1149                                if($perseo_parametros['perseocategorias']=='productos_subgrupos_consulta') {
     1150                                    $sql= "SELECT term_taxonomy_id  FROM {$table_prefix}term_taxonomy where description = '".$producto['productos_subgruposid']."-Perseo' ";
     1151                                    $resProdCat = $wpdb->get_var($sql);
     1152                                };
    11441153
    11451154                                $wpdb->query("Delete from {$table_prefix}term_relationships where object_id=".$ConsultaProductoUpd);
     
    15221531        } 
    15231532    }
    1524 
    1525 
    1526    
     1533   
    15271534    public function fperseo_inicializador() {
    15281535        //elimina el cron
Note: See TracChangeset for help on using the changeset viewer.