Changeset 2729580
- Timestamp:
- 05/24/2022 03:53:29 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
perseo-software/trunk/includes/PluginPerseo_cron.php
r2727488 r2729580 840 840 $resProdCat = $wpdb->get_var($sql); 841 841 }; 842 842 843 843 844 $wpdb->insert($table_prefix.'term_relationships',array('object_id' => $idPost,'term_taxonomy_id' => $resProdCat,'term_order'=> '0') ); … … 1141 1142 $resProdCat = $wpdb->get_var($sql); 1142 1143 }; 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 }; 1144 1153 1145 1154 $wpdb->query("Delete from {$table_prefix}term_relationships where object_id=".$ConsultaProductoUpd); … … 1522 1531 } 1523 1532 } 1524 1525 1526 1533 1527 1534 public function fperseo_inicializador() { 1528 1535 //elimina el cron
Note: See TracChangeset
for help on using the changeset viewer.