Changeset 2903452
- Timestamp:
- 04/24/2023 05:22:16 PM (3 years ago)
- Location:
- afterinc-app/trunk
- Files:
-
- 2 edited
-
Custom_app.php (modified) (5 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
afterinc-app/trunk/Custom_app.php
r2901831 r2903452 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.5. 56 Version: 3.5.6 7 7 Author: After Inc. 8 8 Author URI: https://www.afterinc.com … … 155 155 add_action( 'woocommerce_checkout_create_order_line_item', array($this,'add_custom_order_line_item_meta'),10,4 ); 156 156 157 // add_action( 'woocommerce_thankyou', array($this,'sync_order_quickcover')); 158 add_action( 'woocommerce_checkout_order_processed', array($this,'sync_order_quickcover')); 157 add_action( 'woocommerce_thankyou', array($this,'sync_order_quickcover')); 159 158 160 159 add_filter( 'woocommerce_valid_order_statuses_for_cancel', array($this,'custom_valid_order_statuses_for_cancel'), 10, 2 ); … … 2331 2330 2332 2331 if(isset($result[0]->contract_status) && $result[0]->contract_status == '200' && $result[0]->refund_amount !=''){ 2333 $refundtxt = "<b>Cancelled By: <b>".$result[0]->contract_canceled_by."<br> Contract has been Cancelled Successfully ,We have initiated the Refund of";2332 $refundtxt = "<b>Cancelled By: <b>".$result[0]->contract_canceled_by."<br> Contract has been Cancelled Successfully. Refund "; 2334 2333 //$refundamtqty = $result[0]->refund_amount * $item['quantity']/100; 2335 2334 $refundamtqty = $result[0]->refund_amount * $item['quantity']; … … 2341 2340 return $name." ".$description; 2342 2341 }else{ 2343 return $name ." ".$description." ".$cancelButton." <br> <span class='contract-refund-text'>".$refundtxt.$this->get_currency_symbol().$refundamt."</span>";2342 return $name . " " . $description . " " . $cancelButton . " <br> <span class='contract-refund-text'>" . $refundtxt . $this->get_currency_symbol() . $refundamt . "</span>"; 2344 2343 } 2345 2344 … … 2531 2530 $refundamtqty = $results[0]->refund_amount * $item['quantity']; 2532 2531 $refundamt = number_format((float)$refundamtqty, 2, '.', ''); 2533 echo '<p><button type="button" class="btn button-primary" data-orderId="'.esc_attr($productOrderId).'" data-lineItemID ="'.esc_attr($lineItemId).'" disabled=true style="cursor: not-allowed;">Cancelled '.esc_attr($pnameadmin).'</button></p><b>Cancelled By : '.esc_attr($results[0]->contract_canceled_by).'<b> <br>Contract has been cancelled successfully ,We have initiated the <b>Refund of '.$this->get_currency_symbol().esc_attr($refundamt);2532 echo '<p><button type="button" class="btn button-primary" data-orderId="'.esc_attr($productOrderId).'" data-lineItemID ="'.esc_attr($lineItemId).'" disabled=true style="cursor: not-allowed;">Cancelled '.esc_attr($pnameadmin).'</button></p><b>Cancelled By : '.esc_attr($results[0]->contract_canceled_by).'<b> <br>Contract has been cancelled successfully.Please initiate a Refund of ' . $this->get_currency_symbol() . esc_attr($refundamt).' to the customer.'; 2534 2533 }else if(isset($results[0]->contract_status) && $results[0]->contract_status == '250' && $results[0]->refund_amount !=''){ 2535 2534 echo '<p><button type="button" class="btn button-primary" data-orderId="'.esc_attr($productOrderId).'" data-lineItemID ="'.esc_attr($lineItemId).'" disabled=true style="cursor: not-allowed;">Cancelled '.esc_attr($pnameadmin).'</button></p><b><br>Cancel Request outside the cancel period,Please contract Administrator'; -
afterinc-app/trunk/readme.txt
r2901831 r2903452 7 7 Requires PHP: 7.2 8 8 WC tested up to: 5.6.0 9 Stable tag: 3.5. 59 Stable tag: 3.5.6 10 10 License: GPLv3 11 11 License URI: https://www.afterinc.com
Note: See TracChangeset
for help on using the changeset viewer.