thumbnails on order page
This commit is contained in:
parent
f24b34aaba
commit
effe09e910
|
@ -266,9 +266,9 @@ function woocommerce_order_items_meta_box($post) {
|
|||
<table cellpadding="0" cellspacing="0" class="woocommerce_order_items">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="product-id" width="1%"><?php _e('ID', 'woocommerce'); ?></th>
|
||||
<th class="thumb" width="1%"><?php _e('Item', 'woocommerce'); ?></th>
|
||||
<th class="sku"><?php _e('SKU', 'woocommerce'); ?></th>
|
||||
<th class="name"><?php _e('Item', 'woocommerce'); ?></th>
|
||||
<th class="name"><?php _e('Name', 'woocommerce'); ?></th>
|
||||
<?php do_action('woocommerce_admin_order_item_headers'); ?>
|
||||
|
||||
<th class="tax_class"><?php _e('Tax Class', 'woocommerce'); ?> <a class="tips" data-tip="<?php _e('Tax class for the line item', 'woocommerce'); ?>." href="#">[?]</a></th>
|
||||
|
@ -300,12 +300,12 @@ function woocommerce_order_items_meta_box($post) {
|
|||
endif;
|
||||
?>
|
||||
<tr class="item" rel="<?php echo $loop; ?>">
|
||||
<td class="product-id">
|
||||
<img class="tips" data-tip="<?php
|
||||
<td class="thumb">
|
||||
<a href="<?php echo esc_url( admin_url('post.php?post='. $_product->id .'&action=edit') ); ?>" class="tips" data-tip="<?php
|
||||
echo '<strong>'.__('Product ID:', 'woocommerce').'</strong> '. $item['id'];
|
||||
echo '<br/><strong>'.__('Variation ID:', 'woocommerce').'</strong> '; if ($item['variation_id']) echo $item['variation_id']; else echo '-';
|
||||
echo '<br/><strong>'.__('Product SKU:', 'woocommerce').'</strong> '; if ($_product->sku) echo $_product->sku; else echo '-';
|
||||
?>" src="<?php echo $woocommerce->plugin_url(); ?>/assets/images/tip.png" />
|
||||
?>"><?php echo $_product->get_image(); ?></a>
|
||||
</td>
|
||||
<td class="sku" width="1%">
|
||||
<?php if ($_product->sku) echo $_product->sku; else echo '-'; ?>
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -623,7 +623,7 @@ table.wc_status_table {
|
|||
.name {
|
||||
min-width: 200px;
|
||||
}
|
||||
.center, .variation-id, .product-id {
|
||||
.center, .variation-id {
|
||||
text-align: center;
|
||||
}
|
||||
.cost, .tax, .quantity, .line_total, .line_subtotal, .tax_class {
|
||||
|
@ -674,6 +674,20 @@ table.wc_status_table {
|
|||
}
|
||||
}
|
||||
}
|
||||
.thumb {
|
||||
text-align: center;
|
||||
a {
|
||||
display: block;
|
||||
}
|
||||
img {
|
||||
padding: 2px;
|
||||
margin: 0;
|
||||
border: 1px solid #dfdfdf;
|
||||
vertical-align: middle;
|
||||
width: 46px;
|
||||
height: 46px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -169,6 +169,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc
|
|||
* Tweak - Separate sections for each shipping method, due to the volume of data being posted upon save.
|
||||
* Tweak - Removed shortcode wrappers/cache for main pages since they are only ever called once per page load
|
||||
* Tweak - woocommerce_after_cart_item_quantity_update action sends cart item key instead of object
|
||||
* Tweak - Product images on orders page
|
||||
* Fix - Product cat sortable when item cannot be moved.
|
||||
* Fix - Do not show the Additional Information tab on product single page if contents are hidden or not existing.
|
||||
* Fix - nofollow add to cart links to prevent indexing
|
||||
|
|
|
@ -683,14 +683,14 @@ function woocommerce_add_order_item() {
|
|||
endif;
|
||||
?>
|
||||
<tr class="item" rel="<?php echo $index; ?>">
|
||||
<td class="product-id">
|
||||
<img class="tips" data-tip="<?php
|
||||
<td class="thumb">
|
||||
<a href="<?php echo esc_url( admin_url('post.php?post='. $_product->id .'&action=edit') ); ?>" class="tips" data-tip="<?php
|
||||
echo '<strong>'.__('Product ID:', 'woocommerce').'</strong> '. $_product->id;
|
||||
echo '<br/><strong>'.__('Variation ID:', 'woocommerce').'</strong> '; if (isset($_product->variation_id) && $_product->variation_id) echo $_product->variation_id; else echo '-';
|
||||
echo '<br/><strong>'.__('Product SKU:', 'woocommerce').'</strong> '; if ($_product->sku) echo $_product->sku; else echo '-';
|
||||
?>" src="<?php echo $woocommerce->plugin_url(); ?>/assets/images/tip.png" />
|
||||
?>"><?php echo $_product->get_image(); ?></a>
|
||||
</td>
|
||||
<td class="sku">
|
||||
<td class="sku" width="1%">
|
||||
<?php if ($_product->sku) echo $_product->sku; else echo '-'; ?>
|
||||
<input type="hidden" class="item_id" name="item_id[<?php echo $index; ?>]" value="<?php echo esc_attr( $_product->id ); ?>" />
|
||||
<input type="hidden" name="item_name[<?php echo $index; ?>]" value="<?php echo esc_attr( $_product->get_title() ); ?>" />
|
||||
|
|
Loading…
Reference in New Issue