button classes, tax rounding etc

This commit is contained in:
Mike Jolley 2011-08-12 11:22:07 +01:00
parent c2d3ec4892
commit 674927d3d5
7 changed files with 18 additions and 18 deletions

View File

@ -303,7 +303,7 @@ function woocommerce_order_items_meta_box($post) {
</table>
</div>
<p class="buttons">
<select name="add_item_id" class="item_id">
<select name="add_item_id" class="add_item_id">
<?php
echo '<option value="">'.__('Choose an item&hellip;', 'woothemes').'</option>';

View File

@ -50,8 +50,8 @@ table.shop_attributes .alt td,table.shop_attributes .alt th{background:#f9f9f9;}
a.button,button.button,input.button,#review_form #submit{color:#fff !important;background:#ff9c07;padding:6px;line-height:1em !important;margin:4px 2px 0 0;float:left;font-size:12px !important;width:auto !important;vertical-align:middle !important;text-align:center;text-decoration:none;border:none;cursor:pointer;font-family:inherit;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;}
a.button:hover,button.button:hover,input.button:hover,#review_form #submit:hover{background:#ff9933;text-decoration:none;}
.cart .button,.cart input.button{float:none;}
.button-alt{color:#fff !important;background:#069bcd;padding:6px;line-height:1em !important;margin:4px 2px 0 0;float:left;font-size:12px !important;width:auto !important;vertical-align:middle !important;text-align:center;text-decoration:none;border:none;cursor:pointer;font-family:inherit;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;}
.button-alt:hover{background:#0588b5;}
.button.alt{color:#fff !important;background:#069bcd;padding:6px;line-height:1em !important;margin:4px 2px 0 0;float:left;font-size:12px !important;width:auto !important;vertical-align:middle !important;text-align:center;text-decoration:none;border:none;cursor:pointer;font-family:inherit;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;}
.button.alt:hover{background:#0588b5;}
#reviews h2 small{float:right;color:#999;font-size:15px;line-height:21px;margin:10px 0 0 0;}#reviews h2 small a{text-decoration:none;color:#999;}
#reviews h3{margin:0;}
#reviews #respond{margin:0;border:0;padding:0;}
@ -87,7 +87,7 @@ a.remove:hover{background-color:#f93;}
.cart th,.cart td{vertical-align:middle;}
td.actions{text-align:right;}td.actions .coupon{float:left;}td.actions .coupon label{display:none;}
td.actions .coupon .input-text{width:80px !important;float:left;margin:1px 6px 0 0 !important;}
td.actions .button-alt{float:right;margin:2px 0 0 6px;}
td.actions .button.alt{float:right;margin:2px 0 0 6px;}
td.product-name dl.variation{margin:0;}td.product-name dl.variation dt{font-weight:bold;display:inline;margin:0 4px 0 0;padding:0;}
td.product-name dl.variation dd{display:inline;margin:0 12px 0 0;padding:0;}
td.quantity{min-width:80px;}
@ -110,7 +110,7 @@ td.quantity{min-width:80px;}
.cart-collaterals .cart_totals table small{display:block;color:#999;}
.cart-collaterals .cart_totals .discount td{color:green;}
.cart-collaterals .cart_totals tr td,.cart-collaterals .cart_totals tr th{border-top:1px solid #E7E7E7;padding:6px 24px;}
.cart-collaterals .cart_totals a.button-alt{width:193px;display:block;font-size:0.92em;}
.cart-collaterals .cart_totals a.button.alt{width:193px;display:block;font-size:0.92em;}
.form-row{overflow:hidden;zoom:1;padding:3px;margin:0 0 6px !important;}.form-row label{display:block;}
.form-row label.hidden{visibility:hidden;}
.form-row select{width:100%;cursor:pointer;margin:0 !important;}

View File

@ -455,7 +455,7 @@ a.button:hover, button.button:hover, input.button:hover, #review_form #submit:ho
float:none;
}
.button-alt {
.button.alt {
color: #fff !important;
background: #069bcd;
padding: 6px;
@ -472,7 +472,7 @@ a.button:hover, button.button:hover, input.button:hover, #review_form #submit:ho
font-family: inherit;
.border_radius(3px);
}
.button-alt:hover {
.button.alt:hover {
background:#0588b5;
}
@ -723,7 +723,7 @@ td.actions {
margin: 1px 6px 0 0 !important;
}
}
.button-alt {
.button.alt {
float: right;
margin:2px 0 0 6px;
}
@ -854,7 +854,7 @@ td.quantity {
border-top: 1px solid #E7E7E7;
padding: 6px 24px;
}
a.button-alt {
a.button.alt {
width: 193px;
display: block;
font-size: 0.92em;

View File

@ -93,9 +93,9 @@ jQuery( function($){
jQuery('button.add_shop_order_item').click(function(){
var item_id = jQuery('select.add_item_id').val();
var add_item_id = jQuery('select.add_item_id').val();
if (item_id) {
if (add_item_id) {
jQuery('table.woocommerce_order_items').block({ message: null, overlayCSS: { background: '#fff url(' + params.plugin_url + '/assets/images/ajax-loader.gif) no-repeat center', opacity: 0.6 } });

View File

@ -236,8 +236,8 @@ class woocommerce_tax {
$tax_amount = $price * ($rate/100);
endif;
// Round up to the nearest pence
$tax_amount = ceil($tax_amount);
// Round to the nearest pence
$tax_amount = round($tax_amount);
$tax_amount = $tax_amount / 100; // Back to pounds

View File

@ -121,7 +121,7 @@ function woocommerce_cart( $atts ) {
<label for="coupon_code"><?php _e('Coupon', 'woothemes'); ?>:</label> <input name="coupon_code" class="input-text" id="coupon_code" value="" /> <input type="submit" class="button" name="apply_coupon" value="<?php _e('Apply Coupon', 'woothemes'); ?>" />
</div>
<?php woocommerce::nonce_field('cart') ?>
<input type="submit" class="button" name="update_cart" value="<?php _e('Update Shopping Cart', 'woothemes'); ?>" /> <a href="<?php echo woocommerce_cart::get_checkout_url(); ?>" class="checkout-button button-alt"><?php _e('Proceed to Checkout &rarr;', 'woothemes'); ?></a>
<input type="submit" class="button" name="update_cart" value="<?php _e('Update Shopping Cart', 'woothemes'); ?>" /> <a href="<?php echo woocommerce_cart::get_checkout_url(); ?>" class="checkout-button button alt"><?php _e('Proceed to Checkout &rarr;', 'woothemes'); ?></a>
</td>
</tr>
</tbody>

View File

@ -246,7 +246,7 @@ if (!function_exists('woocommerce_simple_add_to_cart')) {
?>
<form action="<?php echo $_product->add_to_cart_url(); ?>" class="cart" method="post">
<div class="quantity"><input name="quantity" value="1" size="4" title="Qty" class="input-text qty text" maxlength="12" /></div>
<button type="submit" class="button-alt"><?php _e('Add to cart', 'woothemes'); ?></button>
<button type="submit" class="button alt"><?php _e('Add to cart', 'woothemes'); ?></button>
<?php do_action('woocommerce_add_to_cart_form'); ?>
</form>
<?php
@ -268,7 +268,7 @@ if (!function_exists('woocommerce_downloadable_add_to_cart')) {
?>
<form action="<?php echo $_product->add_to_cart_url(); ?>" class="cart" method="post">
<button type="submit" class="button-alt"><?php _e('Add to cart', 'woothemes'); ?></button>
<button type="submit" class="button alt"><?php _e('Add to cart', 'woothemes'); ?></button>
<?php do_action('woocommerce_add_to_cart_form'); ?>
</form>
<?php
@ -296,7 +296,7 @@ if (!function_exists('woocommerce_grouped_add_to_cart')) {
<?php endforeach; ?>
</tbody>
</table>
<button type="submit" class="button-alt"><?php _e('Add to cart', 'woothemes'); ?></button>
<button type="submit" class="button alt"><?php _e('Add to cart', 'woothemes'); ?></button>
<?php do_action('woocommerce_add_to_cart_form'); ?>
</form>
<?php
@ -334,7 +334,7 @@ if (!function_exists('woocommerce_variable_add_to_cart')) {
<div class="variations_button" style="display:none;">
<div class="quantity"><input name="quantity" value="1" size="4" title="Qty" class="input-text qty text" maxlength="12" /></div>
<button type="submit" class="button-alt"><?php _e('Add to cart', 'woothemes'); ?></button>
<button type="submit" class="button alt"><?php _e('Add to cart', 'woothemes'); ?></button>
</div>
<?php do_action('woocommerce_add_to_cart_form'); ?>
</form>