Plugin Directory

Changeset 2898736


Ignore:
Timestamp:
04/13/2023 02:49:05 PM (3 years ago)
Author:
aftercommerce
Message:

update the refresh products details page

Location:
afterinc-app/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • afterinc-app/trunk/Custom_app.php

    r2898712 r2898736  
    23092309if(isset($result[0]->contract_status) && $result[0]->contract_status == '200' && $result[0]->refund_amount !=''){
    23102310  $refundtxt = "<b>Cancelled By: <b>".$result[0]->contract_canceled_by."<br> Contract has been Cancelled Successfully ,We have initiated the Refund of ";
    2311   $refundamtqty = $result[0]->refund_amount * $item['quantity']/100;
     2311  //$refundamtqty = $result[0]->refund_amount * $item['quantity']/100;
     2312  $refundamtqty = $result[0]->refund_amount * $item['quantity'];
    23122313   $refundamt = number_format((float)$refundamtqty, 2, '.', '');
    23132314
     
    25042505
    25052506     if(isset($results[0]->contract_status) && $results[0]->contract_status == '200' && $results[0]->refund_amount !=''){
    2506       $refundamtqty = $results[0]->refund_amount * $item['quantity']/100;
     2507      //$refundamtqty = $results[0]->refund_amount * $item['quantity']/100;
     2508       $refundamtqty = $results[0]->refund_amount * $item['quantity'];
    25072509      $refundamt = number_format((float)$refundamtqty, 2, '.', '');
    25082510      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);
  • afterinc-app/trunk/readme.txt

    r2898712 r2898736  
    77Requires PHP: 7.2
    88WC tested up to: 5.6.0
    9 Stable tag: 3.5.0
     9Stable tag: 3.5.1
    1010License: GPLv3
    1111License URI: https://www.afterinc.com
Note: See TracChangeset for help on using the changeset viewer.