Jump to content

b2b Company info not showing up in order-opc-new-account


cristidam

Recommended Posts

Hi,

 

I just noticed that when a customer creates a new account using the "one page checkout" page(order-opc-new-account.tpl) only the "company" field shows up without SIRET,APE and Website(translated to romanian requirments Siret-CUI/APE-Nr. Reg. comertului/ Website-Cont bancar) like in the defaul registration page(authentication.tpl) so i copied the following lines from "authentication.tpl" to "order-opc-new-account.tpl" to line 506:

 

{if $b2b_enable}
            <div class="account_creation">
                <h3 class="page-subheading">{l s='Your company information'}</h3>
                <p class="form-group">
                    <label for="">{l s='Company'}</label>
                    <input type="text" class="form-control" id="company" name="company" value="{if isset($smarty.post.company)}{$smarty.post.company}{/if}" />
                </p>
                <p class="form-group">
                    <label for="siret">{l s='SIRET'}</label>
                    <input type="text" class="form-control" id="siret" name="siret" value="{if isset($smarty.post.siret)}{$smarty.post.siret}{/if}" />
                </p>
                <p class="form-group">
                    <label for="ape">{l s='APE'}</label>
                    <input type="text" class="form-control" id="ape" name="ape" value="{if isset($smarty.post.ape)}{$smarty.post.ape}{/if}" />
                </p>
                <p class="form-group">
                    <label for="website">{l s='Website'}</label>
                    <input type="text" class="form-control" id="website" name="website" value="{if isset($smarty.post.website)}{$smarty.post.website}{/if}" />
                </p>
            </div>

 

Everything seems to work fine but i am not a coder so i wanted to ask if someone could verify if this workaround is correct or if there is a better solution?

 

Thank You!

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...