Jump to content

creating an account does not work


fkaus

Recommended Posts

There is a problem with theme it need to have main container with id  center_column, because javascript 

code use that id to add sign-up form. This code is probably in header.tpl , so class content needs id center_column

<div id="center_column" class="content" style="margin: 50px auto 20px;">
Link to comment
Share on other sites

Hi @razaro, can you please be more specific. Here is the code for the header.tpl

 

{*
* 2007-2015 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author PrestaShop SA <[email protected]>
*  @copyright  2007-2015 PrestaShop SA
*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*}
<!DOCTYPE HTML>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="{$language_code|escape:'html':'UTF-8'}"><![endif]-->
<!--[if IE 7]><html class="no-js lt-ie9 lt-ie8 ie7" lang="{$language_code|escape:'html':'UTF-8'}"><![endif]-->
<!--[if IE 8]><html class="no-js lt-ie9 ie8" lang="{$language_code|escape:'html':'UTF-8'}"><![endif]-->
<!--[if gt IE 8]> <html class="no-js ie9" lang="{$language_code|escape:'html':'UTF-8'}"><![endif]-->
<html lang="{$language_code|escape:'html':'UTF-8'}">
    <head>
        <meta charset="utf-8" />
        <title>{$meta_title|escape:'html':'UTF-8'}</title>
        {if isset($meta_description) AND $meta_description}
            <meta name="description" content="{$meta_description|escape:'html':'UTF-8'}" />
        {/if}
        {if isset($meta_keywords) AND $meta_keywords}
            <meta name="keywords" content="{$meta_keywords|escape:'html':'UTF-8'}" />
        {/if}
        <meta name="generator" content="PrestaShop" />
        <meta name="robots" content="{if isset($nobots)}no{/if}index,{if isset($nofollow) && $nofollow}no{/if}follow" />
        <meta name="viewport" content="width=device-width, minimum-scale=0.25, maximum-scale=1.6, initial-scale=1.0" />
        <meta name="apple-mobile-web-app-capable" content="yes" />
        <link rel="icon" type="image/vnd.microsoft.icon" href="{$favicon_url}?{$img_update_time}" />
        <link rel="shortcut icon" type="image/x-icon" href="{$favicon_url}?{$img_update_time}" />


        <link href='http://fonts.googleapis.com/css?family=Roboto:400,100,700' rel='stylesheet' type='text/css'/>
        <link href='http://fonts.googleapis.com/css?family=Oswald:300,400' rel='stylesheet' type='text/css'>
        {if isset($css_files)}
            {foreach from=$css_files key=css_uri item=media}
                <link rel="stylesheet" type="text/css" href="{$css_uri}">
            {/foreach}
        {/if}
        
        <script type="text/javascript">
            var baseDir = '{$content_dir|addslashes}';
            var baseUri = '{$base_uri|addslashes}';
            var static_token = '{$static_token|addslashes}';
            var token = '{$token|addslashes}';
            var priceDisplayPrecision = {$priceDisplayPrecision*$currency->decimals};
            var priceDisplayMethod = {$priceDisplay};
            var roundMode = {$roundMode};
            var isLogged={$is_logged|intval}
            var loggin_required = '{l s='You must be logged in to manage your wishlist.' mod='blockwishlist' js=1}';
            var hasDeliveryAddress='{(isset($cart->id_address_delivery) && $cart->id_address_delivery)}';
            var toBeDetermined = '{l s='To be determined' mod='blockcart' js=1}';
            var added_to_wishlist = '{l s='The product was successfully added to your wishlist.' mod='blockwishlist' js=1}';
        </script>
        
        
        
    </head>
    <body>
        <div class="header">
            <div class="top-header">
                <div class="rassurance-header">
                    <div class="top-rassurance">
                        <ul>
                            <li>
                                <a href="{$link->getCMSLink('6', 'comment-ca-marche')}">
                                    <img src="{$img_dir}icon/white/question.png" border="0" alt="" />
                                </a>
                            </li>
                            <li class="bg-red">
                                <a href="{$link->getCMSLink('7', 'nos-engagements')}">
                                    <img src="{$img_dir}icon/white/diploma.png" border="0" alt="" />
                                </a>
                            </li>
                            <li>
                                <a href="{$link->getCMSLink('9', 'qui-sommes-nous')}">
                                <img src="{$img_dir}icon/white/map-fr.png" border="0" alt="" /></li>
                            </a>
                            </li>
                            <li class="bg-red">
                                <a href="{$link->getCMSLink('12', 'ecoute-et-reactivite')}">
                                <img src="{$img_dir}icon/white/call.png" border="0" alt="" /></li>
                            </a>
                            </li>
                            <li>
                                <a href="{$link->getCMSLink('10', 'livraison-48h')}">
                                    <img src="{$img_dir}icon/white/car.png" border="0" alt="" />
                                </a>
                            </li>
                            <li class="bg-red">
                                <a href="{$link->getCMSLink('11', 'livraison-internationale')}">
                                    <img src="{$img_dir}icon/white/earth.png" border="0" alt="" />
                                </a>
                            </li>
                        </ul>
                    </div>
                    <div class="top-search">
                        {hook h="displayTop" mod="blocksearch"}
                    </div>
                    <div class="top-header-menu">
                        <ul>
                            <li class="hidden-tab-desk"><a href="#"><span class="glyphicon glyphicon-search"></a></li>
                            <li><a href="index.php"><span class="glyphicon glyphicon-home"></span><span class="top-header-menu-text">ACCUEIL</span></a></li>
                            <li><a href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'}"><span class="glyphicon glyphicon-user"></span><span class="top-header-menu-text">MON COMPTE</span></a></li>
                            <li><a href="{$link->getModuleLink('blockwishlist', 'mywishlist', array(), true)|escape:'html':'UTF-8'}"><span class="glyphicon glyphicon-heart"></span><span class="top-header-menu-text">MES FAVORIS</span></a></li>
                        </ul>
                    </div>
                </div>
            </div>


            <div class="logo-cart">
                <div class="logo-container">
                    <!--<img class="logo" src="{$img_dir}logo.png" border="0" alt="" />-->
                </div>
                <div class="cart-container">
                    {hook h="displayTop" mod="blockcart"}
                </div>
            </div>


            <div class="menu">
                {hook h="displayTop" mod="blocktopmenu"}
            </div>




        </div>
        {if isset($HOOK_HOME)}
            {hook h="displayTopColumn" mod="homeslider"}
        {/if}
        <div class="content" {if ! isset($HOOK_HOME)} style="margin: 50px auto 20px;" {/if}>
            {if $page_name !='index' && $page_name !='pagenotfound'}
                {include file="$tpl_dir./breadcrumb.tpl"}
            {/if}
Link to comment
Share on other sites

Change last part 

<div class="content" {if ! isset($HOOK_HOME)} style="margin: 50px auto 20px;" {/if}>
            {if $page_name !='index' && $page_name !='pagenotfound'}
                {include file="$tpl_dir./breadcrumb.tpl"}
            {/if}

to

<div id="center_column" class="content" {if ! isset($HOOK_HOME)} style="margin: 50px auto 20px;" {/if}>
            {if $page_name !='index' && $page_name !='pagenotfound'}
                {include file="$tpl_dir./breadcrumb.tpl"}
            {/if}

that should be enough.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...