Changeset 2760445
- Timestamp:
- 07/22/2022 07:26:05 PM (4 years ago)
- Location:
- drip-payments/trunk
- Files:
-
- 5 edited
-
drip-payments.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
-
src/DripPaymentsCheckoutRequest.php (modified) (1 diff)
-
src/DripSingleProductBannerAndModal.php (modified) (2 diffs)
-
src/DripUtils.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
drip-payments/trunk/drip-payments.php
r2752702 r2760445 4 4 * Description: Forneça a Drip como opção de pagamento para pedidos do WooCommerce. 5 5 * Author: Drip 6 * Version: 1.4. 36 * Version: 1.4.4 7 7 */ 8 //ini_set('display_errors', '1'); 9 //ini_set('display_startup_errors', '1'); 10 //error_reporting(E_ALL); 8 11 9 12 // need to keep this order for correct functioning … … 17 20 18 21 add_filter('woocommerce_payment_gateways', function ($gateways) { 19 $gateways[] = 'WC_Drip_Gateway'; 22 if (get_locale() == 'pt_BR' && get_woocommerce_currency() == 'BRL') { 23 $gateways[] = 'WC_Drip_Gateway'; 24 } 20 25 return $gateways; 21 26 }, 10, 1); -
drip-payments/trunk/readme.txt
r2752702 r2760445 5 5 Tested up to: 6.0 6 6 Requires PHP: 7.0 7 Stable tag: 1.4. 37 Stable tag: 1.4.4 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
drip-payments/trunk/src/DripPaymentsCheckoutRequest.php
r2746562 r2760445 1 1 <?php 2 2 3 // check if exists guzzle client before require from vendor 4 //if (!class_exists('GuzzleHttp\Client')) { 3 5 require_once dirname(__FILE__) . '/../vendor/autoload.php'; 6 //} 7 4 8 include_once('DripCacheService.php'); 5 9 -
drip-payments/trunk/src/DripSingleProductBannerAndModal.php
r2749285 r2760445 20 20 if ($product == null) return; 21 21 22 $product_price = method_exists($product, 'get_ price') ? $product->get_price() : $product->price;22 $product_price = method_exists($product, 'get_sale_price') ? $product->get_sale_price() : $product->get_price(); 23 23 24 24 $cached_cashback = (array) json_decode(get_option('drip_payments_actual_cashback')); … … 50 50 51 51 // compatibility with WC +3 52 $product_price = method_exists($product, 'get_ price') ? $product->get_price() : $product->price;52 $product_price = method_exists($product, 'get_sale_price') ? $product->get_sale_price() : $product->get_price(); 53 53 54 54 $cached_cashback = (array) json_decode(get_option('drip_payments_actual_cashback')); -
drip-payments/trunk/src/DripUtils.php
r2752702 r2760445 11 11 const DRIP_PAYMENTS_BASE_URI_PRODUCTION = 'https://drip-be.usedrip.com.br/api/'; 12 12 13 const DRIP_PAYMENTS_ACTUAL_PLUGIN_VERSION = '1.4. 3';13 const DRIP_PAYMENTS_ACTUAL_PLUGIN_VERSION = '1.4.4'; 14 14 } 15 15
Note: See TracChangeset
for help on using the changeset viewer.