fatheeym Posted August 7, 2016 Share Posted August 7, 2016 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 1 Link to comment Share on other sites More sharing options...
rocky Posted August 8, 2016 Share Posted August 8, 2016 You can't disable the billing address, but you can modify your theme to hide it. See my post here. Link to comment Share on other sites More sharing options...
fatheeym Posted August 8, 2016 Author Share Posted August 8, 2016 thank you but iam not using one page to check out :/ Link to comment Share on other sites More sharing options...
rocky Posted August 9, 2016 Share Posted August 9, 2016 The code changes should work with five-page checkout too, not just one-page checkout. Link to comment Share on other sites More sharing options...
fatheeym Posted August 9, 2016 Author Share Posted August 9, 2016 i think the file name order-opcopc stand for One Page Checkout Link to comment Share on other sites More sharing options...
rocky Posted August 9, 2016 Share Posted August 9, 2016 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. 2 Link to comment Share on other sites More sharing options...
fatheeym Posted August 9, 2016 Author Share Posted August 9, 2016 thank you it worked fine 1 Link to comment Share on other sites More sharing options...
Grindelf Posted September 7, 2016 Share Posted September 7, 2016 Worked for me too... Link to comment Share on other sites More sharing options...
Sadiq6210 Posted February 2, 2017 Share Posted February 2, 2017 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 More sharing options...
Sadiq6210 Posted February 5, 2017 Share Posted February 5, 2017 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now