catalog/controller/checkout/checkout.php
(开头部分) 56KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
/**
* @copyright 2019 opencart.cn - All Rights Reserved
* @link http://www.guangdawangluo.com
* @author: Sam Chen <sam.chen@opencart.cn>
* @created: 2017-07-31 11:48:04
* @modified by: Sam Chen <sam.chen@opencart.cn>
* @modified: 2020-01-10 14:25:51
*/
class ControllerCheckoutCheckout extends Controller
{
protected $ADDRESS_FIELDS = array(
'firstname',
'lastname',
'email',
'calling_code',
'telephone',
'company',
'address_1',
'address_2',
'city',
'postcode',
'country_id',
'zone_id',
'city_id',
'county_id',
'custom_field',
);
public function __construct($registry)
{
parent::__construct($registry);
$this->load->language('checkout/cart');
$this->load->language('checkout/coupon');
$this->load->language('checkout/checkout');
$this->load->model('account/activity');
$this->load->model('account/custom_field');
$this->load->model('tool/upload');
$this->load->model('account/address');
$this->load->model('account/customer');
$this->load->model('account/customer_group');
$this->load->model('localisation/country');
$this->load->model('localisation/zone');
$this->load->model('checkout/checkout');
$this->load->model('checkout/order');
}
public function index()
{
if (!$this->isValidCart()) {
$this->log('Cart invalid');
$this->session->data['error'] = t('error_cart_invalid');
$this->response->redirect($this->url->link('checkout/cart'));
return;
}
// Redirect if guest checkout disabled
if (!$this->customer->isLogged() && !$this->isGuestCheckoutEnabled()) {
后面还有 1381 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
