Changeset 2866252
- Timestamp:
- 02/16/2023 10:09:09 AM (3 years ago)
- Location:
- afterinc-app/trunk
- Files:
-
- 3 edited
-
Custom_app.php (modified) (3 diffs)
-
assets/js/afterinc-customer.js (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
afterinc-app/trunk/Custom_app.php
r2865938 r2866252 4 4 Plugin URI: https://www.afterinc.com/contact/ 5 5 Description: Plugin allows merchants to sell After Plan’s product protection plans for wide variety of products. 6 Version: 3. 8.96 Version: 3.9.0 7 7 Author: After Inc. 8 8 Author URI: https://www.afterinc.com … … 933 933 $warranty[$i]['description'] = $value->description; 934 934 $warranty[$i]['price'] = (float) ($value->price / 100); 935 $warranty[$i]['priceCurrency'] = $value->priceCurrency;935 // $warranty[$i]['priceCurrency'] = $value->priceCurrency; 936 936 $warranty[$i]['term'] = $value->term; 937 937 $warranty[$i]['contractType'] = $value->contractType; … … 1124 1124 1125 1125 $totalPrice = (float) $productActualPrice + (float) $warrantyPrice; 1126 echo json_encode(['totalPrice'=>$totalPrice,'currency_symbol'=>$this->get_currency_symbol()]); 1126 //echo json_encode(['totalPrice'=>$totalPrice,'currency_symbol'=>$this->get_currency_symbol()]); 1127 echo esc_attr($totalPrice); 1127 1128 exit(); 1128 1129 -
afterinc-app/trunk/assets/js/afterinc-customer.js
r2865938 r2866252 154 154 success: function(response) { 155 155 var exist = jQuery('.woocommerce-variation-price .price ins .woocommerce-Price-amount bdi'); 156 var arrData = JSON.parse(response); 157 var respprice = parseFloat(arrData.totalPrice).toFixed(2); 158 var crnSymbol = arrData.currency_symbol; 159 156 var respprice = parseFloat(response).toFixed(2); 160 157 if(exist.length){ 161 158 jQuery('.woocommerce-variation-price .price ins .woocommerce-Price-amount bdi').text("$"+respprice); -
afterinc-app/trunk/readme.txt
r2865938 r2866252 7 7 Requires PHP: 7.2 8 8 WC tested up to: 5.6.0 9 Stable tag: 3. 8.99 Stable tag: 3.9.0 10 10 License: GPLv3 11 11 License URI: https://www.afterinc.com
Note: See TracChangeset
for help on using the changeset viewer.