Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Place this code in the foxyshop-single-product.php template file immediate after this line:
- //while (have_posts()) : the_post();
- //Check For Post Required
- if (post_password_required()) {
- ?>
- <form method="post" action="<?php bloginfo("wpurl"); ?>/wp-login.php?action=postpass">
- <p>This product is password protected. To view it please enter your password below:</p>
- <label for="pwbox-531">Password: </label>
- <input type="password" size="20" id="pwbox-531" name="post_password"/>
- <input type="submit" value="Submit" name="Submit" class="foxyshop_button" style="float: none;" />
- </form>
- <?php
- break;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement