Changeset 1179092
- Timestamp:
- 06/11/2015 04:49:22 PM (10 years ago)
- Location:
- paypal-currency-converter-basic-for-woocommerce/trunk
- Files:
-
- 1 deleted
- 3 edited
-
Readme.txt (modified) (2 diffs)
-
assets/js/ppcc_script.js (modified) (2 diffs)
-
paypalcc-basic.php (modified) (3 diffs)
-
proxy.php (deleted)
Legend:
- Unmodified
- Added
- Removed
-
paypal-currency-converter-basic-for-woocommerce/trunk/Readme.txt
r1090665 r1179092 90 90 * Tested with WooCommerce 2.3.2 91 91 92 = 1.4 = 93 * Vulnerability, due to google currency lookup removed 94 92 95 == Upgrade Notice == 93 96 … … 108 111 * trial version 109 112 * Tested with WooCommerce 2.3.2 113 114 = 1.4 = 115 * Vulnerability, due to google currency lookup removed -
paypal-currency-converter-basic-for-woocommerce/trunk/assets/js/ppcc_script.js
r849430 r1179092 1 1 jQuery(document).ready(function() { 2 2 jQuery( ".settings-error" ).hide(); 3 get_ajax("#gc");4 var googlerate=jQuery('#currency_converter_result span.bld').text().replace(/[^\d\.]/g, '');5 googlerate = Math.round(googlerate * 1000) / 1000000;6 //jQuery("#gc").html(currency()+' ***'+php_data.target_currency+'/'+php_data.source_currency);7 //jQuery("#gc").html(googlerate + ' ***' + php_data.target_currency + '/' + php_data.source_currency);8 3 9 4 jQuery('#selected_currency').val(currency() + ' ' + php_data.target_currency + '/' + php_data.source_currency); … … 50 45 return currate; 51 46 } 52 53 function get_ajax(my_target){54 var answer = jQuery.get(php_data.proxy,{ requrl: php_data.requrl},55 function(data) {56 jQuery(my_target).html(data);57 jQuery('#selected_currency').val(currency()+' '+php_data.target_currency+'/'+php_data.source_currency);58 if (jQuery('#cr').val()==currency()){59 jQuery('#cr').css('color', 'green');60 }else{61 jQuery('#cr').css('color', 'red');62 jQuery( ".settings-error" ).show();63 }64 }65 );66 } -
paypal-currency-converter-basic-for-woocommerce/trunk/paypalcc-basic.php
r1090665 r1179092 3 3 * Plugin URI: http://www.intelligent-it.asia 4 4 * Description: Convert any currency to allowed PayPal currencies for PayPal's Payment Gateway within WooCommerce 5 * Version: 1. 35 * Version: 1.4 6 6 * Author: Intelligent-IT.asia 7 7 * Author URI: http://www.intelligent-it.asia … … 189 189 190 190 $data = array( 191 'proxy' => plugins_url( 'proxy.php', __FILE__ ),192 191 'source_currency' => get_woocommerce_currency(), 193 192 'target_currency' => $options['target_currency'], 194 193 'amount'=>$exrdata, 195 'requrl'=>'https://www.google.com/finance/converter?a=1&from='.get_woocommerce_currency().'&to='.$options['target_currency'],196 194 ); 197 195 … … 248 246 <td class="forminp">'. $currency_selector .'</td> 249 247 </tr> 250 <tr valign="top">251 <th class="titledesc" scope="row"><label >'. __('Google\'s conversion rate','PPAC').':</label >252 <img class="help_tip" data-tip="'.__('For informational purpose, only 4 digits accuracy (not used for calculations).','PPAC').'" src="'.plugins_url().'/woocommerce/assets/images/help.png" height="16" width="16" />253 </th>254 255 <td class="forminp">256 <a href="https://www.google.com/finance?q='. $fromto .'" title="Google Finance"><div id="gc"><img src="' . plugins_url() . '/woocommerce/assets/images/ajax-loader.gif" alt="loading..." /></div></a>257 <img src="https://www.google.com/finance/chart?q=CURRENCY:'. $fromto .'&tkr=1&p=5Y&chst=vkc&chs=400x140"></img><br/>258 </td>259 </tr>260 261 248 <tr valign="top"> 262 249 <th class="titledesc" scope="row">
Note: See TracChangeset
for help on using the changeset viewer.