Changeset 2955541
- Timestamp:
- 08/18/2023 07:33:47 PM (3 years ago)
- Location:
- sozlesmeler
- Files:
-
- 10 added
- 2 edited
-
tags/2.2.0 (added)
-
tags/2.2.0/css (added)
-
tags/2.2.0/css/adminstil.css (added)
-
tags/2.2.0/css/stil.css (added)
-
tags/2.2.0/js (added)
-
tags/2.2.0/js/notify.min.js (added)
-
tags/2.2.0/js/woocontracts.js (added)
-
tags/2.2.0/js/woocontractsadmin.js (added)
-
tags/2.2.0/readme.txt (added)
-
tags/2.2.0/woocontracts.php (added)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/woocontracts.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sozlesmeler/trunk/readme.txt
r2944866 r2955541 3 3 Tags: sozlesmeler, woocommerce, sozlesme, contract 4 4 Requires at least: 5.0 5 Tested up to: 6.3 6 Requires PHP: 7. 07 Stable tag: 2. 1.65 Tested up to: 6.3.1 6 Requires PHP: 7.2 7 Stable tag: 2.2.0 8 8 License: GPLv3 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 31 31 32 32 == Changelog == 33 = 2.2.0 = 34 * WP & WC son sürüm uyumluluk 35 * WC HPOS uyumluluk 36 33 37 = 2.1.6 = 34 38 * WP & WC son sürüm uyumluluk -
sozlesmeler/trunk/woocontracts.php
r2944866 r2955541 4 4 * 5 5 * @author Emre Güler 6 * @copyright Copyright (c) 202 2, Emre Güler6 * @copyright Copyright (c) 2023, Emre Güler 7 7 * @license GPL v3 or later 8 8 * … … 11 11 * Plugin URI: https://eguler.net/woocommerce-sozlesmeler-eklentisi/ 12 12 * Description: Woocommerce sitenize mesafeli satış sözleşmesi ve ön bilgilendirme formu gibi yasal metinleri ekleyebileceğiniz sözleşmeler eklentisi 13 * Version: 2. 1.613 * Version: 2.2.0 14 14 * Requires at least: 5.0 15 * Requires PHP: 7. 016 * Tested up to: 6.3 15 * Requires PHP: 7.2 16 * Tested up to: 6.3.1 17 17 * Author: Emre Güler 18 18 * Author URI: https://eguler.net … … 22 22 * 23 23 * 24 * WC tested up to: 7.9.024 * WC tested up to: 8.0.1 25 25 * 26 26 */ … … 30 30 define('WCTR_PATH', plugin_dir_path(__FILE__)); 31 31 define('WCTR_URL', plugin_dir_url(__FILE__)); 32 define('WCTR_VER', '2. 1.6');32 define('WCTR_VER', '2.2.0'); 33 33 34 34 function woocontracts_activated() { … … 232 232 function woocontracts_checkout_field_display_admin_order_meta($order) { 233 233 echo '<div class="address"><p><strong>' . esc_html__('TC Kimlik No', 'sozlesmeler') . ':</strong> '; 234 echo wp_kses_post( get_post_meta($order->get_id(), '_billing_tc', true) . '</p><p><strong>' . __('Vergi Dairesi', 'sozlesmeler') . ':</strong> ');235 echo wp_kses_post( get_post_meta($order->get_id(), '_billing_vergi_dairesi', true) . '</p><p><strong>' . __('Vergi Numarası', 'sozlesmeler') . ':</strong> ');236 echo wp_kses_post( get_post_meta($order->get_id(), '_billing_vergi_no', true) . '</p></div>');234 echo wp_kses_post($order->get_meta('_billing_tc') . '</p><p><strong>' . __('Vergi Dairesi', 'sozlesmeler') . ':</strong> '); 235 echo wp_kses_post($order->get_meta('_billing_vergi_dairesi') . '</p><p><strong>' . __('Vergi Numarası', 'sozlesmeler') . ':</strong> '); 236 echo wp_kses_post($order->get_meta('_billing_vergi_no') . '</p></div>'); 237 237 echo '<div class="edit_address">'; 238 238 woocommerce_wp_text_input(array('id' => '_billing_tc', 'label' => __('TC Kimlik No', 'sozlesmeler'), 'wrapper_class' => '_billing_company_field')); … … 296 296 $fisim = $order->get_formatted_billing_full_name(); 297 297 $kargisim = $order->get_formatted_shipping_full_name(); 298 $tckimlikno = get_post_meta($order->get_id(), '_billing_tc', true);299 $vergidairesi = get_post_meta($order->get_id(), '_billing_vergi_dairesi', true);300 $verginumarasi = get_post_meta($order->get_id(), '_billing_vergi_no', true);298 $tckimlikno = $order->get_meta('_billing_tc'); 299 $vergidairesi = $order->get_meta('_billing_vergi_dairesi'); 300 $verginumarasi = $order->get_meta('_billing_vergi_no'); 301 301 $tarih = $order->get_date_created()->format('d-m-Y'); 302 302 $fil = WC()->countries->states[$order->get_billing_country()][$order->get_billing_state()]; … … 562 562 add_action('admin_notices', 'woocontracts_woocommerce_warning'); 563 563 } 564 add_action( 'before_woocommerce_init', function() { 565 if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) { 566 \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true ); 567 } 568 } ); 564 569 ?>
Note: See TracChangeset
for help on using the changeset viewer.