Close

Disable Ship to same address Checkbox

usrs
6 years ago
#14567 Quote
Avatar
  • 7
How do I disable the "Ship to same address" checkbox on checkout? I disabled it in the Admin section, but it is still showing (after clearing my cache.)

Want to ensure any shipping is always done to the Billing Address.
hristian.dimov
6 years ago
#14570 Quote
Avatar
  • Moderator
  • 386
usrs wrote:
How do I disable the "Ship to same address" checkbox on checkout? I disabled it in the Admin section, but it is still showing (after clearing my cache.)

Want to ensure any shipping is always done to the Billing Address.


Hi,

The setting you mentioned is not taken into account into the OnePageCheckout plugin. It is working only with the default checkouts.

In the OnePageCheckout plugin, you can either hide it with CSS:

.ship-to-same-address {
    display: none !important;
}

or you can completely remove this code:

<div class="options ship-to-same-address" ng-hide="vm.configData.shipToSameAddressDisabled">
  <input type="checkbox" id="shipToSameAddress" name="shipToSameAddress" ng-model="vm.shipToSameAddress" value="{{vm.shipToSameAddress}}" />
  <label for="shipToSameAddress"> @T("SevenSpikes.RealOnePageCheckout.Public.ShipToSameAddress")</label>
</div>

from the Plugins\SevenSpikes.Nop.Plugins.RealOnePageCheckout\Views\RealOnePageCheckout\BillingAddress.cshtml file.

Hope this helps!
Regards,
Hristian Dimov
Nop-Templates.com
usrs
6 years ago
#14571 Quote
Avatar
  • 7
I just went ahead and commented out the code and that worked fine. Thanks! Jim