Jump to content

How remove Optional Create account on order page


mati7716

Recommended Posts

  • 1 year later...

Hi,
You have to modify theme Template Files
Locate the checkout or order template file in your theme. Typically, these files are in the following directory:
themes/your-theme/templates/checkout/_partials/
Look for a file like customer-form.tpl or checkout-personal-information.tpl.
Open the file and locate the section responsible for the "Create an account" fields. You can either comment out the HTML code for this section or remove it

Link to comment
Share on other sites

13 minutes ago, Knowband Plugins said:

Hi,
You have to modify theme Template Files
Locate the checkout or order template file in your theme. Typically, these files are in the following directory:
themes/your-theme/templates/checkout/_partials/
Look for a file like customer-form.tpl or checkout-personal-information.tpl.
Open the file and locate the section responsible for the "Create an account" fields. You can either comment out the HTML code for this section or remove it

{block "form_field"}
  {if $field.name === 'password' and $guest_allowed}
      <p class="form-informations">
        <span class="font-weight-bold form-informations-title">{l s='Create an account' d='Shop.Theme.Checkout'}</span> <span class="font-italic form-informations-option">{l s='(optional)' d='Shop.Theme.Checkout'}</span>
        <br>
        <span class="text-muted form-informations-subtitle">{l s='And save time on your next order!' d='Shop.Theme.Checkout'}</span>
      </p>
      {$smarty.block.parent}
  {else}
    {$smarty.block.parent}
  {/if}
{/block}


{block "form_buttons"}
    <button
      class="continue btn btn-primary pull-xs-right"
      name="continue"
      data-link-action="register-new-customer"
      type="submit"
      value="1"
    >
        {l s='Continue' d='Shop.Theme.Actions'}
    </button>
{/block}
 

 

I have this, if a delet the first part, remain only password field, where is the error?

Link to comment
Share on other sites

Hi,

As per our understanding, you want to disable the Guest Checkout option so that the Password field will be mandatory.

If so, then you can simply disable the Guest Checkout in the Admin.

Go to Shop Parameters -> order Settings.
Screenshot:- https://prnt.sc/vnYfjxOGEZnG

And then Disable the Enable Guest Checkout.
Screenshot- https://prnt.sc/gJXlLta4vlgi

This will disable the guest checkout option.

Regards.

Link to comment
Share on other sites

1 hour ago, Knowband Plugins said:

Hi,

As per our understanding, you want to disable the Guest Checkout option so that the Password field will be mandatory.

If so, then you can simply disable the Guest Checkout in the Admin.

Go to Shop Parameters -> order Settings.
Screenshot:- https://prnt.sc/vnYfjxOGEZnG

And then Disable the Enable Guest Checkout.
Screenshot- https://prnt.sc/gJXlLta4vlgi

This will disable the guest checkout option.

Regards.

No, i will Able Guest Checkout, i will Hide the possibility to create Also account in Order page

Ca12312354645ttura.PNG

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