Yesterday I wrote about creating customer login block in our free html block module. The main disadvantage of this method is fact, that login form don't disappear after login. Now i want to show you little workaround. To achieve this you have to edit the html.tpl file located in the html box module directory.
Open this file, you've got there only one variable:
{$htmlboxbody}
change this code to:
{if !$logged}
{$htmlboxbody}
{/if}
then save changes to this file. What code above mean? It mean that if user isn't logged - the script will show the content that you pasted into "code" field in the html block module configuration page. That's all!
Article written byMilosz Myszczuk, PrestaShop expert. CEO and founder of the VEKIA interactive agency. Learn more.
If you like this article, support our work!

Omnibus Directive Pro module for PrestaShop. It records price history and displays the lowest 30-day...
39.99 €

Free PrestaShop addon for EU Omnibus compliance. It automatically records price history and shows th...

Show trusted product specialists on every PrestaShop product page. Assign them by product, category,...
49.99 €

Keep “Add to cart” visible on long product pages! Sticky Cart Bar FREE shows a slim, sticky stri...