顧客がログインしているかどうかにかかわらず、1つのフォームを表示および非表示にする必要があります。
私はこのヘルパーを持っています:
<?php
if ($this->helper('customer')->isLoggedIn() ) {
echo "Hide Form";
} else {
echo "<form id="form1" name="form1" method="post" action="post.php">
<input name="Type your name" type="text" value="name" />
<label>
<input type="submit" name="send" id="send" value="Submit" />
</label>
</form>";
}
?>
ありがとう