Plugin Directory

Changeset 2388003


Ignore:
Timestamp:
09/25/2020 02:27:27 AM (5 years ago)
Author:
perseosoftware
Message:

ACTUALIACION

File:
1 edited

Legend:

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

    r2388002 r2388003  
    6666                                $perseo_valor=$perseo_CodProdP['id_perseo']['value'];
    6767                            };
    68                             //echo  $perseo_valor;
    69                             //echo '<br>';
     68                            echo '<br>';
     69                            echo  $perseo_precio;
     70                            echo '<br>';
     71                            echo '<br>';
    7072                            $perseo_pedidoiva= ($perseo_DatoIva/100)+1;
    7173                            $perseo_tarifaventapedido=round($perseo_precio * $perseo_pedidoiva);
     
    157159                    $perseo_bodypedido = json_encode($perseo_InsertarPedido,true);
    158160
    159                     //print_r($perseo_bodypedido);
    160                    // echo "<br>";
    161                     //echo "<br>";
     161                    print_r($perseo_bodypedido);
     162                    echo "<br>";
     163                    echo "<br>";
    162164
    163165                    ///////////////////////////////////////////
     
    315317                //var_dump($perseo_datosCategoria);
    316318                //echo "<br>";
    317                 $Perseocate="";
     319               
    318320                if(isset($perseo_datosCategoria['categorias'])){
    319321                    $perseo_ConsultaCat=$perseo_datosCategoria['categorias'];
    320                     $Perseocate='categorias';
     322                   
    321323                };
    322324                if(isset($perseo_datosCategoria['lineas'])){
    323325                    $perseo_ConsultaCat=$perseo_datosCategoria['lineas'];
    324                     $Perseocate='lineas';
     326                   
    325327                };
    326328                if(isset($perseo_datosCategoria['subcategorias'])){
    327329                    $perseo_ConsultaCat=$perseo_datosCategoria['subcategorias'];
    328                     $Perseocate='subcategorias';
     330                 
    329331                };
    330332                if(isset($perseo_datosCategoria['subgrupo'])){
    331333                    $perseo_ConsultaCat=$perseo_datosCategoria['subgrupo'];
    332                     $Perseocate='subgrupo';
     334                 
    333335                };
    334                
     336
    335337
    336338                ///consulta sin categorizar
     
    377379                                'term_id'=> $perseo_rescate,
    378380                                'taxonomy'  => 'product_cat',
    379                                 'description'=>  $perseo_idC.'-Perseo-'.$Perseocate,
     381                                'description'=>  $perseo_idC.'-Perseo',
    380382                                'parent'=>  '0',
    381383                                'count'=> '0'
     
    620622                                                if($perseo_parametros['perseocategorias']=='productos_lineas_consulta'){
    621623                                                    //consultamos categoria x codigo wp_term_taxonomy
    622                                                     $sql= "SELECT term_taxonomy_id  FROM {$table_prefix}term_taxonomy where description = '".$producto['productos_lineasid']."-Perseo-lineas' ";
     624                                                    $sql= "SELECT term_taxonomy_id  FROM {$table_prefix}term_taxonomy where description = '".$producto['productos_lineasid']."-Perseo' ";
    623625                                                    $resProdCat = $wpdb->get_var($sql);
    624626                                                };
    625627
    626628                                                if($perseo_parametros['perseocategorias']=='productos_categorias_consulta') {
    627                                                     $sql= "SELECT term_taxonomy_id  FROM {$table_prefix}term_taxonomy where description = '".$producto['productos_categoriasid']."-Perseo-categorias' ";
     629                                                    $sql= "SELECT term_taxonomy_id  FROM {$table_prefix}term_taxonomy where description = '".$producto['productos_categoriasid']."-Perseo' ";
    628630                                                    $resProdCat = $wpdb->get_var($sql);
    629631                                                };
    630632                                               
    631633                                                if($perseo_parametros['perseocategorias']=='productos_subcategorias_consulta') {
    632                                                     $sql= "SELECT term_taxonomy_id  FROM {$table_prefix}term_taxonomy where description = '".$producto['productos_subcategoriasid']."-Perseo-subcategorias' ";
     634                                                    $sql= "SELECT term_taxonomy_id  FROM {$table_prefix}term_taxonomy where description = '".$producto['productos_subcategoriasid']."-Perseo' ";
    633635                                                    $resProdCat = $wpdb->get_var($sql);
    634636                                                };
    635637                                                if($perseo_parametros['perseocategorias']=='productos_subgrupos_consulta') {
    636                                                     $sql= "SELECT term_taxonomy_id  FROM {$table_prefix}term_taxonomy where description = '".$producto['productos_subgruposid']."-Perseo-subgrupos' ";
     638                                                    $sql= "SELECT term_taxonomy_id  FROM {$table_prefix}term_taxonomy where description = '".$producto['productos_subgruposid']."-Perseo' ";
    637639                                                    $resProdCat = $wpdb->get_var($sql);
    638640                                                };
Note: See TracChangeset for help on using the changeset viewer.