Jump to content

Disable billing address option


fatheeym

Recommended Posts

hi

iam using COD payment and the company which deliver the product is the same collect the mony so

icant have two adresses on for billing and the other for delivery

so please i want to Disable billing address option from prestashop

  • Like 1
Link to comment
Share on other sites

I've double-checked on my test site and you're right. I'm surprised PrestaShop didn't try to share the CSS. You'll have to add alternative code at the end of themes/default-bootstrap/css/global.css instead:
.addresses .checkbox.addressesAreEquals div, .addresses .checkbox.addressesAreEquals label, .addresses div:last-child { display: none }
.addresses .checkbox.addressesAreEquals { margin: 0 }

This will hide the checkbox and billing address.

  • Like 2
Link to comment
Share on other sites

  • 5 weeks later...
  • 4 months later...

 

I've double-checked on my test site and you're right. I'm surprised PrestaShop didn't try to share the CSS. You'll have to add alternative code at the end of themes/default-bootstrap/css/global.css instead:
.addresses .checkbox.addressesAreEquals div, .addresses .checkbox.addressesAreEquals label, .addresses div:last-child { display: none }
.addresses .checkbox.addressesAreEquals { margin: 0 }

This will hide the checkbox and billing address.

 

 

If I put this code then "My addresses" will not work, I got blank page 

I am using 1.6

Link to comment
Share on other sites

If I put this code then "My addresses" will not work, I got blank page 

I am using 1.6

 

OK I solved it, if anybody need it in future 

 

Open this file:

themes/default-bootstrap/order-address.tpl

 

Search for:

		<div class="col-xs-12 col-sm-6">
			<ul class="address alternate_item{if $cart->isVirtualCart()} full_width{/if} box" id="address_invoice">
			</ul>
		</div>

Replace it with:

		<div class="col-xs-12 col-sm-6" style="display:none;">
			<ul class="address alternate_item{if $cart->isVirtualCart()} full_width{/if} box" id="address_invoice">
			</ul>
		</div>

Search for:

<p class="checkbox addressesAreEquals"{if $cart->isVirtualCart()} style="display:none;"{/if}>

Replace it with:

<p class="checkbox addressesAreEquals" style="display:none;">

Search for:

<div class="addresses clearfix">
	<div class="row">
		<div class="col-xs-12 col-sm-6">

Replace it with:

<div class="addresses clearfix">
	<div class="row">
		<div class="col-xs-12 col-sm-6" style="margin-bottom: 15px">
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...