Changeset 3103906
- Timestamp:
- 06/18/2024 07:22:08 AM (22 months ago)
- Location:
- netreviews/trunk
- Files:
-
- 5 edited
-
api_functions.php (modified) (1 diff)
-
changelog.txt (modified) (1 diff)
-
functions.php (modified) (1 diff)
-
netreviews.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
netreviews/trunk/api_functions.php
r3054488 r3103906 941 941 $query_flag = "UPDATE " . $table_prefix . "postmeta SET meta_value = '1' WHERE meta_key = 'av_flag' AND post_id IN (" . $where . ")"; 942 942 $query_date = "UPDATE " . $table_prefix . "postmeta SET meta_value = '" . $time . "' WHERE meta_key = 'av_horodate' AND post_id IN (" . $where . ")"; 943 944 943 $wpdb->query($query_flag); 945 944 $wpdb->query($query_date); 945 $wcVersion = ntav_getConfig('WCVERSION'); 946 if($wcVersion >= 8.2){ 947 $query_meta = "UPDATE " . $table_prefix . "wc_orders_meta SET meta_value = '1' WHERE meta_key = 'av_flag' AND order_id IN (" . $where . ")"; 948 $wpdb->query($query_meta); 949 } 946 950 } 947 951 -
netreviews/trunk/changelog.txt
r3054488 r3103906 1 Version 2.4.1 / 12/06/2024 2 - Fix : getting orders when HPOS is activated 3 1 4 Version 2.4.0 / 18/03/2024 2 5 - Addition new route getProductReviewsStats -
netreviews/trunk/functions.php
r3054488 r3103906 6 6 function ntav_update_version_plugin() 7 7 { 8 ntav_updateValue('MODVERSION', '2.4. 0');8 ntav_updateValue('MODVERSION', '2.4.1'); 9 9 } 10 10 -
netreviews/trunk/netreviews.php
r3054488 r3103906 6 6 * Description: We provide you with a solution that enables you to collect customer reviews about your website and products which will show on your 7 7 * website and on a attestation which will increase the credibility of published reviews. 8 * Version: 2.4. 08 * Version: 2.4.1 9 9 * Author: NetReviews SAS <contact@avis-verifies.com> 10 10 * Author URI: www.avis-verifies.com … … 697 697 function ntav_av_new_order($id) 698 698 { 699 global $wpdb; 699 700 $flag_mark = get_post_meta($id, 'av_flag', true); 700 701 if (!is_numeric($flag_mark) && $flag_mark != 1) { //if order is created already in postmeta, avoid duplication … … 702 703 add_post_meta($id, 'av_flag', '0', true); 703 704 add_post_meta($id, 'av_horodate', $time, true); 705 $wcVersion = ntav_getConfig('WCVERSION'); 706 if($wcVersion >= 8.2){ 707 $wpdb->query("INSERT INTO " . $wpdb->prefix . "wc_orders_meta (order_id, meta_key, meta_value) VALUES (" . $id . ", 'av_flag', '0')"); 708 } 704 709 } 705 710 } … … 709 714 function ntav_av_new_order_2($id) 710 715 { 716 global $wpdb; 711 717 $time = time(); 712 718 add_post_meta($id, 'av_flag', '0', true); 713 719 add_post_meta($id, 'av_horodate', $time, true); 720 $wcVersion = ntav_getConfig('WCVERSION'); 721 if($wcVersion >= 8.2){ 722 $wpdb->query("INSERT INTO " . $wpdb->prefix . "wc_orders_meta (order_id, meta_key, meta_value) VALUES (" . $id . ", 'av_flag', '0')"); 723 } 714 724 } 715 725 -
netreviews/trunk/readme.txt
r3054488 r3103906 4 4 Tags: avis,verifies,étoiles,reviews,stars,google,adwords,shopping,snippets,comments,customers 5 5 Requires at least: 1.3.1 6 Tested up to: 6. 16 Tested up to: 6.5.3 7 7 Stable tag: trunk 8 8 … … 57 57 58 58 == Changelog == 59 Version 2.4.1 / 12/06/2024 60 - Fix : getting orders when HPOS is activated 61 59 62 Version 2.4.0 / 18/03/2024 60 63 - Addition new route getProductReviewsStats
Note: See TracChangeset
for help on using the changeset viewer.