Jump to content
Sevrin

Visitor contact info on order page

Recommended Posts

Hello,

when customer will register his/her account, I see details on order page.

But when customer purchases only as Visitor I see only this:

 

visitor-info.png.1239ab50bad4346124636bf559014040.png

 

I need there some info, at least email, or tel contact, as in case of registered customers. Is that possible? Thanks.

PS 1.6.1.20

Share this post


Link to post
Share on other sites

I got it, I can put at least email address

Open /admin***/themes/default/template/controllers/orders/helpers/view/view.tpl

About row 588 find code

 

                        <div class="col-xs-6">
                            {if ($customer->isGuest())}
                                {l s='This order has been placed by a guest.'}
                                {if (!Customer::customerExists($customer->email))}
                                    <form method="post" action="index.php?tab=AdminCustomers&id_customer={$customer->id}&id_order={$order->id|intval}&token={getAdminToken tab='AdminCustomers'}">
                                        <input type="hidden" name="id_lang" value="{$order->id_lang}" />
                                        <input class="btn btn-default" type="submit" name="submitGuestToCustomer" value="{l s='Transform a guest into a customer'}" />
                                        <p class="help-block">{l s='This feature will generate a random password and send an email to the customer.'}</p>
                                    </form>
                                {else}
                                    <div class="alert alert-warning">
                                        {l s='A registered customer account has already claimed this email address'}
                                    </div>
                                {/if}
                            {else}
                                <dl class="well list-detail">
                                    <dt>{l s='Email'}</dt>
                                        <dd><a href="mailto:{$customer->email}"><i class="icon-envelope-o"></i> {$customer->email}</a></dd>
                                    <dt>{l s='Account registered'}</dt>
                                        <dd class="text-muted"><i class="icon-calendar-o"></i> {dateFormat date=$customer->date_add full=true}</dd>
                                    <dt>{l s='Valid orders placed'}</dt>
                                        <dd><span class="badge">{$customerStats['nb_orders']|intval}</span></dd>
                                    <dt>{l s='Total spent since registration'}</dt>
                                        <dd><span class="badge badge-success">{displayPrice price=Tools::ps_round(Tools::convertPrice($customerStats['total_orders'], $currency), 2) currency=$currency->id}</span></dd>
                                    {if Configuration::get('PS_B2B_ENABLE')}
                                        <dt>{l s='Siret'}</dt>
                                            <dd>{$customer->siret}</dd>
                                        <dt>{l s='APE'}</dt>
                                            <dd>{$customer->ape}</dd>
                                    {/if}
                                </dl>
                            {/if}
                        </div>

Copy this:

<dt>{l s='Email'}</dt>
                                        <dd><a href="mailto:{$customer->email}"><i class="icon-envelope-o"></i> {$customer->email}</a></dd>

right below this code

 

                                    <form method="post" action="index.php?tab=AdminCustomers&id_customer={$customer->id}&id_order={$order->id|intval}&token={getAdminToken tab='AdminCustomers'}">
                                        <input type="hidden" name="id_lang" value="{$order->id_lang}" />
                                        <input class="btn btn-default" type="submit" name="submitGuestToCustomer" value="{l s='Transform a guest into a customer'}" />
                                        <p class="help-block">{l s='This feature will generate a random password and send an email to the customer.'}</p>
                                    </form>

Save and upload.

 

Share this post


Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More