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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

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