blob: bd7271af26a486265db97b2ad279e10ee88361ab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
<?php
class ControllerExtensionModulePilibabaButton extends Controller {
public function index() {
$status = true;
if (!$this->cart->hasProducts() || (!$this->cart->hasStock() && !$this->config->get('config_stock_checkout'))) {
$status = false;
}
if ($status) {
$data['payment_url'] = $this->url->link('extension/payment/pilibaba/express', '', true);
return $this->load->view('extension/module/pilibaba_button', $data);
}
}
}
|