Changeset 2388003
- Timestamp:
- 09/25/2020 02:27:27 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
perseo-software/trunk/includes/PluginPerseo_cron.php
r2388002 r2388003 66 66 $perseo_valor=$perseo_CodProdP['id_perseo']['value']; 67 67 }; 68 //echo $perseo_valor; 69 //echo '<br>'; 68 echo '<br>'; 69 echo $perseo_precio; 70 echo '<br>'; 71 echo '<br>'; 70 72 $perseo_pedidoiva= ($perseo_DatoIva/100)+1; 71 73 $perseo_tarifaventapedido=round($perseo_precio * $perseo_pedidoiva); … … 157 159 $perseo_bodypedido = json_encode($perseo_InsertarPedido,true); 158 160 159 //print_r($perseo_bodypedido);160 //echo "<br>";161 //echo "<br>";161 print_r($perseo_bodypedido); 162 echo "<br>"; 163 echo "<br>"; 162 164 163 165 /////////////////////////////////////////// … … 315 317 //var_dump($perseo_datosCategoria); 316 318 //echo "<br>"; 317 $Perseocate="";319 318 320 if(isset($perseo_datosCategoria['categorias'])){ 319 321 $perseo_ConsultaCat=$perseo_datosCategoria['categorias']; 320 $Perseocate='categorias';322 321 323 }; 322 324 if(isset($perseo_datosCategoria['lineas'])){ 323 325 $perseo_ConsultaCat=$perseo_datosCategoria['lineas']; 324 $Perseocate='lineas';326 325 327 }; 326 328 if(isset($perseo_datosCategoria['subcategorias'])){ 327 329 $perseo_ConsultaCat=$perseo_datosCategoria['subcategorias']; 328 $Perseocate='subcategorias';330 329 331 }; 330 332 if(isset($perseo_datosCategoria['subgrupo'])){ 331 333 $perseo_ConsultaCat=$perseo_datosCategoria['subgrupo']; 332 $Perseocate='subgrupo';334 333 335 }; 334 336 335 337 336 338 ///consulta sin categorizar … … 377 379 'term_id'=> $perseo_rescate, 378 380 'taxonomy' => 'product_cat', 379 'description'=> $perseo_idC.'-Perseo -'.$Perseocate,381 'description'=> $perseo_idC.'-Perseo', 380 382 'parent'=> '0', 381 383 'count'=> '0' … … 620 622 if($perseo_parametros['perseocategorias']=='productos_lineas_consulta'){ 621 623 //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' "; 623 625 $resProdCat = $wpdb->get_var($sql); 624 626 }; 625 627 626 628 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' "; 628 630 $resProdCat = $wpdb->get_var($sql); 629 631 }; 630 632 631 633 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' "; 633 635 $resProdCat = $wpdb->get_var($sql); 634 636 }; 635 637 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' "; 637 639 $resProdCat = $wpdb->get_var($sql); 638 640 };
Note: See TracChangeset
for help on using the changeset viewer.