Backups Created:
/home/japatmex/public_html/wp-content/edit-wolf.php
Savvy
W
olf -
MANAGER
Edit File: stripe_payments.php
<?php class ModelPaymentStripePayments { public function getMethod($address, $total) { $CI =& get_instance(); $CI->lang->load('payment/stripe_payments'); $query = $CI->db->query("SELECT * FROM " . DB_PREFIX . "zone_to_geo_zone WHERE geo_zone_id = '" . (int)$CI->config->item('stripe_payments_geo_zone_id') . "' AND country_id = '" . (int)$address['country_id'] . "' AND (zone_id = '" . (int)$address['zone_id'] . "' OR zone_id = '0')"); if ($CI->config->item('stripe_payments_total') > 0 && $CI->config->item('stripe_payments_total') > $total) { $status = false; } elseif (!$CI->config->item('stripe_payments_geo_zone_id')) { $status = true; } elseif ($query->num_rows) { $status = true; } else { $status = false; } $method_data = array(); if ($status) { $method_data = array( 'code' => 'stripe_payments', 'title' => $CI->lang->line('text_title'), 'terms' => '', 'sort_order' => $CI->config->item('stripe_payments_sort_order') ); } return $method_data; } } ?>