![]() Server : Apache/2.4.52 (Ubuntu) System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64 User : www-data ( 33) PHP Version : 8.1.2-1ubuntu2.21 Disable Function : NONE Directory : /var/www/theprintave/wp-content/plugins/dokan-lite/templates/orders/ |
<?php if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } ?> <div class="tax_row" data-order_item_id="<?php echo esc_attr( $item_id ); ?>"> <p class="wide"> <label><?php esc_html_e( 'Tax Rate:', 'dokan-lite' ); ?></label> <select name="order_taxes_rate_id[<?php echo esc_attr( $item_id ); ?>]"> <option value=""><?php esc_html_e( 'N/A', 'dokan-lite' ); ?></option> <?php foreach ( $tax_codes as $tax_id => $tax_code ) : ?> <option value="<?php echo esc_attr( $tax_id ); ?>" <?php selected( $tax_id, isset( $item['rate_id'] ) ? $item['rate_id'] : '' ); ?>><?php echo esc_html( $tax_code ); ?></option> <?php endforeach; ?> </select> <input type="hidden" name="order_taxes_id[<?php echo esc_attr( $item_id ); ?>]" value="<?php echo esc_attr( $item_id ); ?>"/> </p> <p class="first"> <label><?php esc_html_e( 'Sales Tax:', 'dokan-lite' ); ?></label> <input type="number" step="any" min="0" name="order_taxes_amount[<?php echo esc_attr( $item_id ); ?>]" placeholder="0.00" value="<?php echo isset( $item['tax_amount'] ) ? esc_attr( $item['tax_amount'] ) : ''; ?>"/> </p> <p class="last"> <label><?php esc_html_e( 'Shipping Tax:', 'dokan-lite' ); ?></label> <input type="number" step="any" min="0" name="order_taxes_shipping_amount[<?php echo esc_attr( $item_id ); ?>]" placeholder="0.00" value="<?php echo isset( $item['shipping_tax_amount'] ) ? esc_attr( $item['shipping_tax_amount'] ) : ''; ?>"/> </p> <a href="#" class="delete_tax_row">×</a> <div class="clear"></div> </div>