Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Email auction won with additional content
- *
- * Email template should go to /themes/child-theme/woocommerce/emails/auction_win.php folder. This paste is obsolete since default installation of plugin allready contains this same template.
- *
- */
- if (!defined('ABSPATH')) exit ; // Exit if accessed directly
- $product_data = wc_get_product($product_id);
- ?>
- <?php do_action( 'woocommerce_email_header', $email_heading, $email ); ?>
- <?php if( ( $product_data->get_auction_type() == 'reverse' ) && ( get_option('simple_auctions_remove_pay_reverse') == 'yes') ) { ?>
- <p><?php printf( wp_kses_post( __( "Congratulations. You have won the auction for <a href='%s'>%s</a>. Your bid was: %s.", 'wc_simple_auctions' ) ), get_permalink( $product_id ), $product_data -> get_title(), wc_price( $current_bid ) ); ?></p>
- <?php } else { ?>
- <p><?php printf( wp_kses_post( __( "Congratulations. You have won the auction for <a href='%s'>%s</a>. Your bid was: %s. Please click on this link to pay for your auction %s ", 'wc_simple_auctions' ) ), get_permalink( $product_id ), $product_data -> get_title(), wc_price( $current_bid ), '<a href="' . esc_attr( add_query_arg( "pay-auction",$product_id, $checkout_url ) ). '">' . esc_html__( 'payment', 'wc_simple_auctions' ) . '</a>' ); ?></p>
- <?php } ?>
- <p>
- <?php
- if ( $additional_content ) {
- echo wp_kses_post( wpautop( wptexturize( $additional_content ) ) );
- }
- ?>
- </p>
- <?php do_action( 'woocommerce_email_footer', $email ); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement