Changeset 2868238
- Timestamp:
- 02/20/2023 02:57:53 PM (3 years ago)
- Location:
- afterinc-app/trunk
- Files:
-
- 2 edited
-
Custom_app.php (modified) (10 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
afterinc-app/trunk/Custom_app.php
r2867418 r2868238 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.9. 36 Version: 3.9.4 7 7 Author: After Inc. 8 8 Author URI: https://www.afterinc.com … … 1062 1062 for($x = 0; $x < $planLength; $x++) { 1063 1063 ?> 1064 <input type="radio" id="war_<?php echo esc_attr($i); ?>" class="price-variation warranty-button" warranty-price="<?php echo esc_attr($seqPlans[$x]['price']); ?>" product-id="<?php echo esc_attr($product->get_id()) ?>" name="warranty" value="<?php echo esc_attr($seqPlans[$x]['planId']); ?>/<?php echo esc_attr($seqPlans[$x][' term']); ?>" plan-id="<?php echo esc_attr($seqPlans[$x]['planId']); ?>" <?php echo esc_attr($seqPlans[$x]['planId']) == $plan_id ? 'checked' : '' ?> >1064 <input type="radio" id="war_<?php echo esc_attr($i); ?>" class="price-variation warranty-button" warranty-price="<?php echo esc_attr($seqPlans[$x]['price']); ?>" product-id="<?php echo esc_attr($product->get_id()) ?>" name="warranty" value="<?php echo esc_attr($seqPlans[$x]['planId']); ?>/<?php echo esc_attr($seqPlans[$x]['description']); ?>/<?php echo esc_attr($seqPlans[$x]['term']); ?>" plan-id="<?php echo esc_attr($seqPlans[$x]['planId']); ?>" <?php echo esc_attr($seqPlans[$x]['planId']) == $plan_id ? 'checked' : '' ?> > 1065 1065 1066 1066 <label for="age_<?php echo esc_attr($i); ?>" class="label-text"><?php echo esc_attr($seqPlans[$x]['description']); ?></label><br> … … 1933 1933 1934 1934 $cart_item_data['warranty'] = $warranty[0]; 1935 $cart_item_data['term'] = $warranty[1]; 1935 $cart_item_data['description'] = $warranty[1]; 1936 $cart_item_data['term'] = $warranty[2]; 1936 1937 1937 1938 $cart_items = WC()->cart->cart_contents; … … 2008 2009 $warrantyData = array( 2009 2010 'plan_id' => $values['warranty'], 2011 'description' => $values['description'], 2010 2012 'term' => $values['term'] 2011 2013 ); … … 2296 2298 if($plan_id !== 'none') { 2297 2299 2298 $ term = $item_warranty->value['term'];2300 $description = $item_warranty->value['description']; 2299 2301 $result = $this->wpdb->get_results( $this->wpdb->prepare( "SELECT * FROM quickcover_contract WHERE order_id = %s AND lineitem_id = %s", $productOrderId, $lineItemId )); 2300 2302 … … 2309 2311 2310 2312 if (($isOrderreceived !== false) && ($isOrderreceived > 0)) { 2311 return $name." ".$term." Months";2313 return $name." ".$description; 2312 2314 }else{ 2313 return $name." ".$term." Months ".$cancelButton." <br> <span class='contract-refund-text'>".$refundtxt.$this->get_currency_symbol().$refundamt."</span>";2315 return $name." ".$description." ".$cancelButton." <br> <span class='contract-refund-text'>".$refundtxt.$this->get_currency_symbol().$refundamt."</span>"; 2314 2316 } 2315 2317 … … 2322 2324 2323 2325 if (($isOrderreceived !== false) && ($isOrderreceived > 0)) { 2324 return $name." ".$ term." Months";2326 return $name." ".$description; 2325 2327 }else{ 2326 return $name." ".$ term." Months ".$cancelButton." <br> ".$refundtxt;2328 return $name." ".$description." ".$cancelButton." <br> ".$refundtxt; 2327 2329 } 2328 2330 … … 2335 2337 2336 2338 if (($isOrderreceived !== false) && ($isOrderreceived > 0)) { 2337 return $name." ".$ term." Months";2339 return $name." ".$description; 2338 2340 }else{ 2339 return $name." ".$ term." Months". $cancelButton;2341 return $name." ".$description." ". $cancelButton; 2340 2342 } 2341 2343 } … … 2346 2348 2347 2349 if (($isOrderreceived !== false) && ($isOrderreceived > 0)) { 2348 return $name." ".$term." Months";2350 return $name." ".$description; 2349 2351 }else if(($isOrderReview !== false) && ($isOrderReview > 0)){ 2350 return $name." ".$term." Months ". $cancelButton;2352 return $name." ".$description." ". $cancelButton; 2351 2353 }else{ 2352 return $name." ".$ term." Months";2354 return $name." ".$description; 2353 2355 } 2354 2356 } … … 2491 2493 <?php 2492 2494 2493 $ term = $item_warranty->value['term'];2494 2495 echo "<b>".esc_attr($ term)." Months</b>";2495 $description = $item_warranty->value['description']; 2496 2497 echo "<b>".esc_attr($description)."</b>"; 2496 2498 2497 2499 $results = $this->wpdb->get_results( $this->wpdb->prepare( "SELECT * FROM quickcover_contract WHERE order_id = %s and lineitem_id = %s", $productOrderId, $lineItemId )); -
afterinc-app/trunk/readme.txt
r2867418 r2868238 7 7 Requires PHP: 7.2 8 8 WC tested up to: 5.6.0 9 Stable tag: 3.9. 39 Stable tag: 3.9.4 10 10 License: GPLv3 11 11 License URI: https://www.afterinc.com
Note: See TracChangeset
for help on using the changeset viewer.