Merge branch 'master' of github.com:woothemes/woocommerce
This commit is contained in:
commit
fcc9542608
|
@ -29,12 +29,12 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
<tr>
|
||||
<td data-export-label="Home URL"><?php _e( 'Home URL', 'woocommerce' ); ?>:</td>
|
||||
<td class="help"><?php echo '<a href="#" class="help_tip" data-tip="' . esc_attr__( 'The URL of your site\'s homepage.', 'woocommerce' ) . '">[?]</a>'; ?></td>
|
||||
<td><?php echo home_url(); ?></td>
|
||||
<td><?php form_option( 'home' ); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td data-export-label="Site URL"><?php _e( 'Site URL', 'woocommerce' ); ?>:</td>
|
||||
<td class="help"><?php echo '<a href="#" class="help_tip" data-tip="' . esc_attr__( 'The root URL of your site.', 'woocommerce' ) . '">[?]</a>'; ?></td>
|
||||
<td><?php echo site_url(); ?></td>
|
||||
<td><?php form_option( 'siteurl' ); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td data-export-label="WC Version"><?php _e( 'WC Version', 'woocommerce' ); ?>:</td>
|
||||
|
|
|
@ -350,7 +350,7 @@ class WC_Coupon {
|
|||
* Ensure coupon amount is valid or throw exception
|
||||
*/
|
||||
private function validate_maximum_amount() {
|
||||
if ( $this->maximum_amount > 0 && wc_format_decimal( $this->minimum_amount ) < wc_format_decimal( WC()->cart->subtotal ) ) {
|
||||
if ( $this->maximum_amount > 0 && wc_format_decimal( $this->maximum_amount ) < wc_format_decimal( WC()->cart->subtotal ) ) {
|
||||
throw new Exception( self::E_WC_COUPON_MAX_SPEND_LIMIT_MET );
|
||||
}
|
||||
}
|
||||
|
|
|
@ -72,6 +72,10 @@ if ( ! comments_open() ) {
|
|||
'comment_field' => ''
|
||||
);
|
||||
|
||||
if ( $account_page_url = wc_get_page_permalink( 'myaccount' ) ) {
|
||||
$comment_form['must_log_in'] = '<p class="must-log-in">' . sprintf( __( 'You must be <a href="%s">logged in</a> to post a review.' ), esc_url( $account_page_url ) ) . '</p>';
|
||||
}
|
||||
|
||||
if ( get_option( 'woocommerce_enable_review_rating' ) === 'yes' ) {
|
||||
$comment_form['comment_field'] = '<p class="comment-form-rating"><label for="rating">' . __( 'Your Rating', 'woocommerce' ) .'</label><select name="rating" id="rating">
|
||||
<option value="">' . __( 'Rate…', 'woocommerce' ) . '</option>
|
||||
|
|
|
@ -62,7 +62,7 @@ global $product, $post;
|
|||
?>
|
||||
</select> <?php
|
||||
if ( sizeof( $attributes ) === $loop ) {
|
||||
echo '<a class="reset_variations" href="#reset">' . __( 'Clear selection', 'woocommerce' ) . '</a>';
|
||||
echo '<a class="reset_variations" href="#">' . __( 'Clear selection', 'woocommerce' ) . '</a>';
|
||||
}
|
||||
?></td>
|
||||
</tr>
|
||||
|
|
Loading…
Reference in New Issue