4

In my localhost/Magento, my theme path is base/default.

I try to edit my PHTML file for Create Account.

Basicly this file came from app/design/frontend/base/default/template/customer/form/register.phtml

but in my case register.phtml file come from app/design/frontend/base/default/template/persistent/customer/form/register.phtml

Why this happening? What is persistent?

7ochem
7,61516 gold badges54 silver badges82 bronze badges
asked Dec 11, 2014 at 12:54

2 Answers 2

6

Starting with version CE-1.6 (I think) there is a new module added to Magento. Mage_Persistent.
This offers a "Remember me" feature when you log in. If this is enabled a cookie is set and the user is allowed to access some personal data (cart, wishlist) without the need to log in.

I don't know why this approach was taken. It would have been easier just to include this functionality directly in the Mage_Customer module.
Maybe this was intended at first to be available only in Enterprise and that's why is a separate module, but I'm just speculating.

The idea is that this module replaces the templates of some blocks in order to make the Remember me functionality available.
The replaced templates are the customer login and register and the checkout login and billing steps.

To see what and how is replaced check /app/design/frontend/base/default/layout/persistent.xml layout file.

Piyush
5,9249 gold badges35 silver badges67 bronze badges
answered Dec 11, 2014 at 13:20
1

Even though the question is old think answering this would help someone searching for this. Creating the register.phtml under our custom (active theme) will be used instead of the presistance template. So the new templates path will be something like this.

frontend\MY_THEME\default\template\persistent\customer\form\register.phtml

Use the register.phtml found on the default path and carry on the changes on your new template.

answered Oct 3, 2016 at 8:05

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.