| Server IP : 62.72.47.131 / Your IP : 216.73.217.34 Web Server : Apache/2.4.66 (Debian) System : Linux 975cdb959a49 5.14.0-611.55.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 19 15:19:29 EDT 2026 x86_64 User : ( 501) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/html/wp-content/plugins/woocommerce/templates/single-product/ |
Upload File : |
<?php
/**
* Back in Stock Form
*
* Shows the additional form fields on the product page.
*
* This template can be overridden by copying it to yourtheme/woocommerce/single-product/back-in-stock-form.php.
*
* HOWEVER, on occasion WooCommerce will need to update template files and you
* (the theme developer) will need to copy the new files to your theme to
* maintain compatibility. We try to do this as little as possible, but it does
* happen. When this occurs the version of the template file will be bumped and
* the readme will list any important changes.
*
* @see https://woocommerce.com/document/template-structure/
* @package WooCommerce\Templates
* @version 10.2.0
*/
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<div class="wc_bis_form<?php echo $is_visible ? '' : ' hidden'; ?>" data-bis-product-id="<?php echo absint( $product_id ); ?>">
<h3 id="wc_bis_form_heading_<?php echo absint( $product_id ); ?>">
<?php echo wp_kses_post( __( 'Want to be notified when this product is back in stock?', 'woocommerce' ) ); ?>
</h3>
<form method="post" novalidate aria-labelledby="wc_bis_form_heading_<?php echo absint( $product_id ); ?>">
<div class="wc_bis_form__form-row">
<?php if ( $show_email_field ) : ?>
<label for="wc_bis_email_<?php echo absint( $product_id ); ?>" class="screen-reader-text"><?php echo esc_html_x( 'Email address to be notified when this product is back in stock', 'back in stock form', 'woocommerce' ); ?></label>
<input
type="email"
name="wc_bis_email"
class="wc_bis_form__input"
placeholder="<?php echo esc_attr_x( 'Enter your e-mail', 'back in stock form', 'woocommerce' ); ?>"
id="wc_bis_email_<?php echo absint( $product_id ); ?>"
required
aria-required="true"
/>
<?php endif; ?>
<button
type="submit"
name="wc_bis_register"
class="<?php echo esc_attr( $button_class ); ?>"
>
<?php echo esc_html( __( 'Notify me', 'woocommerce' ) ); ?>
</button>
</div>
<?php if ( $show_checkbox ) : ?>
<label for="wc_bis_opt_in_<?php echo absint( $product_id ); ?>" class="wc_bis_form__checkbox">
<input
type="checkbox"
name="wc_bis_opt_in"
id="wc_bis_opt_in_<?php echo absint( $product_id ); ?>"
/>
<?php echo wp_kses_post( wc_replace_policy_page_link_placeholders( wc_get_privacy_policy_text( 'registration' ) ) ); ?>
</label>
<?php endif; ?>
<?php wp_nonce_field( 'wc_bis_signup', 'wc_bis_nonce' ); ?>
<input type="hidden" name="wc_bis_product_id" value="<?php echo absint( $product_id ); ?>" />
</form>
</div>