Changeset 3344301
- Timestamp:
- 08/14/2025 05:35:10 AM (6 months ago)
- Location:
- wiser-review/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
wiser-review.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wiser-review/trunk/readme.txt
r3344241 r3344301 6 6 Tested up to: 6.8 7 7 Requires PHP: 7.4 8 Stable tag: 1. 58 Stable tag: 1.6 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 110 110 SKU id supported for cross store & google merchant 111 111 112 = 1.6 = 113 Fix- Product ID & SKU id issues, After update, submit the key again -
wiser-review/trunk/wiser-review.php
r3344241 r3344301 4 4 * Plugin URI: https://wiserreview.com 5 5 * Description: Wiser Review module helps you collect and display product reviews, star ratings, and nudges. It also automates review requests via email to boost custom engagement and conversions. 6 * Version: 1. 56 * Version: 1.6 7 7 * Author: Wiser Notify 8 8 * Requires Plugins: woocommerce … … 185 185 if ( $wiserrw_api_settings && '1' === $wiserrw_api_settings['wiserrw_live_mode_checkbox'] ) { 186 186 $wiserrw_api_data = get_option( 'wiserrw_api_data' ); 187 $product_rating_count = preg_replace( "/data-pid='(.*?)'/", "data-pid='$product_id'", $wiserrw_api_data->product_rating_count );188 $product_rating_count = preg_replace( "/data-skuid='(.*?)'/", "data-skuid='$sku'", $ wiserrw_api_data->product_rating_count);187 $product_rating_count_pid = preg_replace( "/data-pid='(.*?)'/", "data-pid='$product_id'", $wiserrw_api_data->product_rating_count ); 188 $product_rating_count = preg_replace( "/data-skuid='(.*?)'/", "data-skuid='$sku'", $product_rating_count_pid ); 189 189 $allowed_tags = array( 190 190 'div' => array( … … 196 196 ), 197 197 ); 198 echo wp_kses( $product_rating_count, $allowed_tags );198 echo $product_rating_count; 199 199 $output = ob_get_contents(); 200 200 return ob_get_clean(); … … 212 212 $product_id = get_the_ID(); 213 213 $product = wc_get_product( $product_id ); 214 $sku = $product->get_sku();214 $sku = $product->get_sku(); 215 215 $wiserrw_api_data = get_option( 'wiserrw_api_data' ); 216 $product_review_section = preg_replace( "/data-pid='(.*?)'/", "data-pid='$product_id'", $wiserrw_api_data->product_review_section );217 $product_review_section = preg_replace( "/data-skuid='(.*?)'/", "data-skuid='$sku'", $ wiserrw_api_data->product_review_section);216 $product_review_section_pid = preg_replace( "/data-pid='(.*?)'/", "data-pid='$product_id'", $wiserrw_api_data->product_review_section ); 217 $product_review_section = preg_replace( "/data-skuid='(.*?)'/", "data-skuid='$sku'", $product_review_section_pid ); 218 218 219 219 $product_rating_count = preg_replace( "/data-pid='(.*?)'/", "data-pid='$product_id'", $wiserrw_api_data->product_rating_count ); … … 232 232 ), 233 233 ); 234 echo wp_kses( $product_review_section, $allowed_tags );234 echo $product_review_section; 235 235 } 236 236 $output = ob_get_contents(); … … 253 253 254 254 $wiserrw_api_data = get_option( 'wiserrw_api_data' ); 255 $nudges_section= preg_replace( "/data-pid='(.*?)'/", "data-pid='$product_id'", $wiserrw_api_data->nudges_section );256 $nudges_section = preg_replace( "/data-skuid='(.*?)'/", "data-pid='$sku'", $wiserrw_api_data->nudges_section);255 $nudges_section_pid = preg_replace( "/data-pid='(.*?)'/", "data-pid='$product_id'", $wiserrw_api_data->nudges_section ); 256 $nudges_section = preg_replace( "/data-skuid='(.*?)'/", "data-skuid='$sku'", $nudges_section_pid ); 257 257 $allowed_tags = array( 258 258 'div' => array( … … 264 264 ), 265 265 ); 266 echo wp_kses( $nudges_section, $allowed_tags );266 echo $nudges_section; 267 267 } 268 268 $output = ob_get_contents(); … … 285 285 ) 286 286 ); 287 //var_dump($all_orders);288 287 } 289 288 }
Note: See TracChangeset
for help on using the changeset viewer.