get_parent_id(); if($parent_id == '0'){ $image = wp_get_attachment_url( $product->get_image_id()); $product_url = $product->get_permalink(); $name = $product->get_title(); } else{ $variation = wc_get_product($product_id); $product_url = $variation->get_permalink(); $name = $variation->get_name(); $product_id.= ' -variation-'; $image = wp_get_attachment_url( $variation->get_image_id()); } }else{ return; } } $theme_color = ambisn_get_setting('email_theme_color'); if(empty($theme_color)){ $theme_color = '#333333'; } $logo = ambisn_get_setting('store_logo'); if(empty($logo)){ $logo = esc_url( wp_get_attachment_image_src( get_theme_mod( 'custom_logo' ), 'full' )[0] ); if(empty($logo)){ $logo = AMBISN_URL.'assets/images/wp-logo.png'; } } ?> New Subscription Alert

Hello,

You have a new subscription on your store!


Subscriber's email:

Sent by AdMail