Checkout Billing Field alwa

If you require the My billing address is different from shipping address checkbox to be ticked in by default, you can make the following:

  1. Create the app/addons/my_changes/controllers/frontend/checkout.post.php file with the following content:
<?php

defined('BOOTSTRAP') or die('Access denied');

if ($mode === 'checkout') {
    $view = Tygh::$app['view'];
    $user_data = $view->getTemplateVars('user_data');;

    $user_data['ship_to_another'] = true;
    $view->assign('user_data', $user_data);
}
  1. Install and enable the My changes add-on.

I hope it will help you.

1 Like