Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…into dev
  • Loading branch information
Andrew Angell committed May 12, 2017
2 parents 56cb2f9 + 17a2df5 commit b32fb94
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -350,19 +350,19 @@ public function ec_order_received_text($text, $order) {

public function ec_enqueue_scripts_product_page() {
try {
wp_enqueue_style('angelleye-express-checkout-css', PAYPAL_FOR_WOOCOMMERCE_ASSET_URL . '/assets/css/angelleye-express-checkout.css', array(), $this->version, 'all');
wp_enqueue_style('angelleye-express-checkout-css', PAYPAL_FOR_WOOCOMMERCE_ASSET_URL . 'assets/css/angelleye-express-checkout.css', array(), $this->version, 'all');
if (is_checkout()) {
wp_enqueue_script('angelleye-express-checkout-js', PAYPAL_FOR_WOOCOMMERCE_ASSET_URL . '/assets/js/angelleye-express-checkout.js', array(), $this->version, 'all');
wp_enqueue_script('angelleye-express-checkout-custom', PAYPAL_FOR_WOOCOMMERCE_ASSET_URL . '/assets/js/angelleye-express-checkout-custom.js', array(), $this->version, 'all');
wp_enqueue_script('angelleye-express-checkout-js', PAYPAL_FOR_WOOCOMMERCE_ASSET_URL . 'assets/js/angelleye-express-checkout.js', array(), $this->version, 'all');
wp_enqueue_script('angelleye-express-checkout-custom', PAYPAL_FOR_WOOCOMMERCE_ASSET_URL . 'assets/js/angelleye-express-checkout-custom.js', array(), $this->version, 'all');
wp_localize_script('angelleye-express-checkout-js', 'is_page_name', 'checkout_page');
wp_localize_script('angelleye-express-checkout-custom', 'is_page_name', 'checkout_page');
}
if (is_product()) {
wp_enqueue_script('angelleye-express-checkout-custom', PAYPAL_FOR_WOOCOMMERCE_ASSET_URL . '/assets/js/angelleye-express-checkout-custom.js', array(), $this->version, 'all');
wp_enqueue_script('angelleye-express-checkout-custom', PAYPAL_FOR_WOOCOMMERCE_ASSET_URL . 'assets/js/angelleye-express-checkout-custom.js', array(), $this->version, 'all');
wp_localize_script('angelleye-express-checkout-custom', 'is_page_name', 'single_product_page');
}
if (is_cart()) {
wp_enqueue_script('angelleye-express-checkout-custom', PAYPAL_FOR_WOOCOMMERCE_ASSET_URL . '/assets/js/angelleye-express-checkout-custom.js', array(), $this->version, 'all');
wp_enqueue_script('angelleye-express-checkout-custom', PAYPAL_FOR_WOOCOMMERCE_ASSET_URL . 'assets/js/angelleye-express-checkout-custom.js', array(), $this->version, 'all');
wp_localize_script('angelleye-express-checkout-custom', 'is_page_name', 'cart_page');
}
return true;
Expand Down

0 comments on commit b32fb94

Please sign in to comment.