Plugin Directory

Changeset 2866252


Ignore:
Timestamp:
02/16/2023 10:09:09 AM (3 years ago)
Author:
aftercommerce
Message:

update the description on pdp page.

Location:
afterinc-app/trunk
Files:
3 edited

Legend:

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

    r2865938 r2866252  
    44Plugin URI: https://www.afterinc.com/contact/
    55Description: Plugin allows merchants to sell After Plan’s product protection plans for wide variety of products.
    6 Version: 3.8.9
     6Version: 3.9.0
    77Author: After Inc.
    88Author URI: https://www.afterinc.com
     
    933933        $warranty[$i]['description'] = $value->description;
    934934        $warranty[$i]['price'] = (float) ($value->price / 100);
    935         $warranty[$i]['priceCurrency'] = $value->priceCurrency;
     935       // $warranty[$i]['priceCurrency'] = $value->priceCurrency;
    936936        $warranty[$i]['term'] = $value->term;
    937937        $warranty[$i]['contractType'] = $value->contractType;
     
    11241124   
    11251125        $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);
    11271128        exit();
    11281129
  • afterinc-app/trunk/assets/js/afterinc-customer.js

    r2865938 r2866252  
    154154            success: function(response) {
    155155              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);
    160157              if(exist.length){
    161158                jQuery('.woocommerce-variation-price .price ins .woocommerce-Price-amount bdi').text("$"+respprice);
  • afterinc-app/trunk/readme.txt

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