Skip to content

Commit

Permalink
Smart Button : Minicart styling issues, ref #1072
Browse files Browse the repository at this point in the history
  • Loading branch information
kcppdevelopers committed Apr 2, 2018
1 parent 02f2f9e commit 6a225db
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ public function __construct($version) {
add_action('woocommerce_after_checkout_validation', array($this, 'angelleye_paypal_express_checkout_redirect_to_paypal'), 99, 2);
}
}
add_action('wp_head', array($this, 'angelleye_add_header_meta'), 0);
add_action('woocommerce_add_to_cart_redirect', array($this, 'add_to_cart_redirect'));
add_action('woocommerce_checkout_billing', array($this, 'ec_set_checkout_post_data'));
add_action('woocommerce_available_payment_gateways', array($this, 'ec_disable_gateways'));
Expand Down Expand Up @@ -1183,5 +1184,12 @@ public function angelleye_is_product_already_in_cart($product_id = 0, $quantity
}
return false;
}

public function angelleye_add_header_meta() {
if ($this->enable_in_context_checkout_flow === 'yes' && $this->enabled == 'yes' ) {
echo '<meta http-equiv="X-UA-Compatible" content="IE=edge" />';
echo '<meta name="viewport" content="width=device-width, initial-scale=1">';
}
}

}
4 changes: 2 additions & 2 deletions assets/css/single.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
#paypal_ec_paypal_credit_button, #paypal_ec_button, .paypal_ec_textbutton {
position: relative;
}
.single_add_to_cart_button.disabled {
opacity: 0.2;
.angelleye_button_single.disabled {
opacity: 0.4;
cursor: not-allowed;
display: none;
}
Expand Down
2 changes: 1 addition & 1 deletion assets/js/angelleye-in-context-checkout.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jQuery(function ($) {
'wc-paypal_express-new-payment-method': $("#wc-paypal_express-new-payment-method").is(':checked'),
'is_cc': '',
'product_id': $("input[name=add-to-cart]").val(),
'variation_id': $("input[name=variation_id").val(),
'variation_id': $("input[name=variation_id]").val(),
'request_from': 'JSv4',
'express_checkout' : 'true'
};
Expand Down

0 comments on commit 6a225db

Please sign in to comment.