Skip to content

Commit

Permalink
disabled order editing option when the order status is cancelled or r…
Browse files Browse the repository at this point in the history
…efunded
  • Loading branch information
saimon-test committed Oct 2, 2017
1 parent 9afc457 commit e4e243f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/orders/details.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@
<span><?php _e( 'Order Status:', 'dokan-lite' ); ?></span>
<label class="dokan-label dokan-label-<?php echo dokan_get_order_status_class( dokan_get_prop( $order, 'status' ) ); ?>"><?php echo isset( $statuses[dokan_get_prop( $order, 'status' )] ) ? $statuses[dokan_get_prop( $order, 'status' )] : dokan_get_prop( $order, 'status' ); ?></label>

<?php if ( dokan_get_option( 'order_status_change', 'dokan_selling', 'on' ) == 'on' ) {?>
<?php if ( dokan_get_option( 'order_status_change', 'dokan_selling', 'on' ) == 'on' && $order->get_status() !== 'cancelled' && $order->get_status() !== 'refunded' ) {?>
<a href="#" class="dokan-edit-status"><small><?php _e( '&nbsp; Edit', 'dokan-lite' ); ?></small></a>
<?php } ?>
</li>
Expand Down

0 comments on commit e4e243f

Please sign in to comment.