Changeset 3425970
- Timestamp:
- 12/23/2025 08:52:57 AM (3 months ago)
- Location:
- rd-wc-order-modifier/trunk
- Files:
-
- 4 edited
-
changelog.txt (modified) (1 diff)
-
classes/class.rdwcom-manager.php (modified) (7 diffs)
-
rd-wc-order-modifier.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
rd-wc-order-modifier/trunk/changelog.txt
r3232864 r3425970 1 1 *** RD Order Modifier for WooCommerce Changelog *** 2 3 = 1.1.4 = 4 Release Date – 23 December 2025 5 6 *Compatibility update 7 *Add rdwcom_enable_includes_tax_edit filter hook to override per line item whether to apply tax modifier 8 9 = 1.1.3 = 10 Release Date – 13 September 2025 11 12 *Compatibility update 2 13 3 14 = 1.1.2 = -
rd-wc-order-modifier/trunk/classes/class.rdwcom-manager.php
r3361101 r3425970 649 649 $options = self::get_options(); 650 650 if ( 'yes' == $options['activate_includes_tax_modifier'] ) : 651 $enable_inc_tax_edit = true; 652 //Add filter to override inc tax editing 653 $enable_inc_tax_edit = apply_filters( 'rdwcom_enable_includes_tax_edit', $enable_inc_tax_edit, $product, $item, $item_id ); 651 654 if ( 'line_item' == $item->get_type() ) : 652 655 $order = wc_get_order( $item->get_order_id() ); … … 683 686 ?> 684 687 </div> 685 <?php if ( 'item_single' == $options['includes_tax_modifier_edit_mode'] ) : ?> 688 <?php if ( 'item_single' == $options['includes_tax_modifier_edit_mode'] ) : 689 if ( $enable_inc_tax_edit ) : ?> 686 690 <div class="edit" style="display: none;"> 687 691 <div class="split-input"> … … 699 703 <input type="text" name="refund_line_incl_cost[<?php echo absint( $item_id ); ?>]" placeholder="<?php echo esc_attr( wc_format_localized_price( 0 ) ); ?>" data-inc-price="<?php echo esc_attr( wc_format_localized_price( $total_inc_price ) ); ?>" class="rdwcom_refund_line_total wc_input_price" /> 700 704 </div> 701 <?php endif; ?> 705 <?php 706 endif; 707 endif; ?> 702 708 <?php if ( 'no' == $options['show_includes_tax_modifier_total_column'] ) : ?> 703 <?php if ( 'item_total' == $options['includes_tax_modifier_edit_mode'] ) : ?> 709 <?php if ( 'item_total' == $options['includes_tax_modifier_edit_mode'] ) : 710 if ( $enable_inc_tax_edit ) : ?> 704 711 <div class="edit" style="display: none;"> 705 712 <div class="split-input"> … … 717 724 <input type="text" name="refund_line_incl_cost[<?php echo absint( $item_id ); ?>]" placeholder="<?php echo esc_attr( wc_format_localized_price( 0 ) ); ?>" data-inc-price="<?php echo esc_attr( wc_format_localized_price( $total_inc_price ) ); ?>" class="rdwcom_refund_line_total wc_input_price" /> 718 725 </div> 726 <?php endif; ?> 719 727 <?php endif; ?> 720 728 <?php endif; ?> … … 742 750 </div> 743 751 <?php if ( 'no' == $options['show_includes_tax_modifier_cost_column'] ) : ?> 744 <?php if ( 'item_single' == $options['includes_tax_modifier_edit_mode'] ) : ?> 752 <?php if ( 'item_single' == $options['includes_tax_modifier_edit_mode'] ) : 753 if ( $enable_inc_tax_edit ) : ?> 745 754 <div class="edit" style="display: none;"> 746 755 <div class="split-input"> … … 758 767 <input type="text" name="refund_line_incl_cost[<?php echo absint( $item_id ); ?>]" placeholder="<?php echo esc_attr( wc_format_localized_price( 0 ) ); ?>" data-inc-price="<?php echo esc_attr( wc_format_localized_price( $total_inc_price ) ); ?>" class="rdwcom_refund_line_total wc_input_price" /> 759 768 </div> 769 <?php endif; ?> 760 770 <?php endif; ?> 761 771 <?php endif; ?> 762 772 <?php if ( 'item_total' == $options['includes_tax_modifier_edit_mode'] ) : ?> 773 <?php if ( $enable_inc_tax_edit ) : ?> 763 774 <div class="edit" style="display: none;"> 764 775 <div class="split-input"> … … 776 787 <input type="text" name="refund_line_incl_cost[<?php echo absint( $item_id ); ?>]" placeholder="<?php echo esc_attr( wc_format_localized_price( 0 ) ); ?>" data-inc-price="<?php echo esc_attr( wc_format_localized_price( $total_inc_price ) ); ?>" class="rdwcom_refund_line_total wc_input_price" /> 777 788 </div> 789 <?php endif; ?> 778 790 <?php endif; ?> 779 791 </td> -
rd-wc-order-modifier/trunk/rd-wc-order-modifier.php
r3361101 r3425970 3 3 Plugin URI: 4 4 Description: Allows editing order items pricing inclusive of tax. 5 Version: 1.1. 35 Version: 1.1.4 6 6 Author: Robot Dwarf 7 7 Author URI: https://www.robotdwarf.com 8 8 WC requires at least: 4.7.2 9 WC tested up to: 10. 1.29 WC tested up to: 10.4.3 10 10 Requires PHP: 7.2 11 11 Requires at least: 5.0 … … 30 30 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 31 31 32 Copyright 2010-202 3Robot Dwarf.32 Copyright 2010-2025 Robot Dwarf. 33 33 */ 34 34 … … 37 37 } 38 38 39 define( 'RDWCOM_VERSION', '1.1. 3' );39 define( 'RDWCOM_VERSION', '1.1.4' ); 40 40 define('RDWCOM_URL', plugin_dir_url( __FILE__ ) ); 41 41 define( 'RDWCOM_PATH', plugin_dir_path( __FILE__ ) ); -
rd-wc-order-modifier/trunk/readme.txt
r3361101 r3425970 3 3 Tags: woocommerce, tax, vat, orders, order editing 4 4 Requires at least: 5.0 5 Tested up to: 6. 8.26 Stable tag: 1.1. 35 Tested up to: 6.9 6 Stable tag: 1.1.4 7 7 Requires PHP: 7.2 8 8 License: GPLv2 or later … … 68 68 == Changelog == 69 69 70 = 1.1.4 = 71 Release Date – 23 December 2025 72 *Compatibility update 73 *Add rdwcom_enable_includes_tax_edit filter hook to override per line item whether to apply tax modifier 74 70 75 = 1.1.3 = 71 76 Release Date – 13 September 2025
Note: See TracChangeset
for help on using the changeset viewer.