Changeset 3011172
- Timestamp:
- 12/18/2023 07:01:45 AM (2 years ago)
- Location:
- hfd-epost-integration/trunk
- Files:
-
- 4 edited
-
class/Admin.php (modified) (3 diffs)
-
hfd-woocommerce-epost.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
-
templates/admin/setting.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
hfd-epost-integration/trunk/class/Admin.php
r2768357 r3011172 24 24 // add_filter('woocommerce_admin_order_actions', array($this, 'registerHfdButton'), 10, 2); 25 25 26 add_filter('manage_edit-shop_order_columns', array($this, 'registerHfdColumn')); 27 add_action( 'manage_shop_order_posts_custom_column', array($this, 'renderHfdActions'), 10, 2); 26 add_filter( 'manage_edit-shop_order_columns', array( $this, 'registerHfdColumn' ) ); 27 add_action( 'manage_shop_order_posts_custom_column', array( $this, 'renderHfdActions' ), 10, 2 ); 28 add_filter( 'manage_woocommerce_page_wc-orders_columns', array( $this, 'registerHfdColumn' ) ); 29 add_action( 'manage_woocommerce_page_wc-orders_custom_column', array( $this, 'renderHfdActions' ), 10, 2 ); 30 28 31 add_action('admin_menu', array($this, 'registerSettingMenu')); 29 32 add_action('admin_post_save_epost_setting', array($this, 'saveSetting')); … … 363 366 public function registerHfdColumn($columns) 364 367 { 365 if (is_array($columns)){368 if( is_array( $columns ) && !isset( $columns['hfd_actions'] ) ){ 366 369 $columns['hfd_actions'] = esc_html( __( 'HFD Actions', 'hfd-integration' ) ); 367 370 } … … 370 373 } 371 374 372 public function renderHfdActions( $column, $orderId)373 { 374 if ($column !== 'hfd_actions'){375 public function renderHfdActions( $column, $orderId ) 376 { 377 if( $column !== 'hfd_actions' ){ 375 378 return; 376 379 } -
hfd-epost-integration/trunk/hfd-woocommerce-epost.php
r3004105 r3011172 4 4 Plugin URI: 5 5 Description: Add shipping method of ePost, allowing the user on the checkout, to select the pickup location point from a google map popup. Also allows to synch the order to HFD API after the order is created. 6 Version: 1.5. 26 Version: 1.5.3 7 7 Author: HFD 8 8 Author URI: https://www.hfd.co.il -
hfd-epost-integration/trunk/readme.txt
r3004105 r3011172 5 5 Requires at least: 4.0 6 6 Tested up to: 6.4 7 Stable tag: 1.5. 27 Stable tag: 1.5.3 8 8 Requires PHP: 5.4 9 9 License: GPLv2 or later -
hfd-epost-integration/trunk/templates/admin/setting.php
r2768357 r3011172 81 81 <th scope="row"><?php esc_html_e( 'Company name', 'hfd-integration' ); ?></th> 82 82 <td> 83 <input type="text" name="betanet_epost_hfd_sender_name" class="regular-text" 84 maxlength="8" 85 value="<?php echo esc_html( $setting->get( 'betanet_epost_hfd_sender_name' ) ); ?>"/> 83 <input type="text" name="betanet_epost_hfd_sender_name" class="regular-text" value="<?php echo esc_html( $setting->get( 'betanet_epost_hfd_sender_name' ) ); ?>" /> 86 84 </td> 87 85 </tr>
Note: See TracChangeset
for help on using the changeset viewer.