Thursday 12 June 2014

When customer not login redirect to create account page

<?php
if (!$this->helper('customer')->isLoggedIn()) {
    header("Location: /customer/account/login/");
    exit();
}
?>

No comments:

Post a Comment