Skip to content

Commit

Permalink
Merge pull request #1394 from angelleye/PFW-526
Browse files Browse the repository at this point in the history
WP 5.3 Compatibility, PFW-526
  • Loading branch information
kcppdevelopers committed Nov 26, 2019
2 parents e670af1 + 2763be2 commit 687be65
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -664,13 +664,12 @@ public function ec_enqueue_scripts_product_page($is_mini_cart = false) {
$this->testmode = AngellEYE_Utility::angelleye_paypal_for_woocommerce_is_set_sandbox_product();
}
$js_value = array('is_page_name' => '', 'enable_in_context_checkout_flow' => ( $this->enable_in_context_checkout_flow == 'yes' ? 'yes' : 'no'));
if ( 'checkout' === get_post_meta( $post->ID, 'wcf-step-type', true ) ) {
if ( isset($post->ID) && 'checkout' === get_post_meta( $post->ID, 'wcf-step-type', true ) ) {
$is_cartflow = "yes";
} else {
$is_cartflow = "no";
}
$pre_checkout_offer = get_post_meta( $post->ID, 'wcf-pre-checkout-offer', true );
if ( 'yes' == $pre_checkout_offer ) {
if( isset($post->ID) && 'yes' == get_post_meta( $post->ID, 'wcf-pre-checkout-offer', true ) ) {
$pre_checkout_offer = "yes";
} else {
$pre_checkout_offer = "no";
Expand Down

0 comments on commit 687be65

Please sign in to comment.