в php плохо разбираюсь но как понял это отвечает за скидку на самовывоз и как сделать тут исключение на некоторые позиции?
if ($status) {
$quote_data = array();
$cost = $this->cart->getSubTotal() - ($this->cart->getSubTotal() * 0.8);
$quote_data['pickup'] = array(
'code' => 'pickup.pickup',
'title' => $this->language->get('text_description'),
'cost' => -$cost,
'tax_class_id' => $this->config->get('total_shipping_tax_class_id'),
'text' => '( - ' . $this->currency->format($cost, $this->session->data['currency']) . ')',
);
$method_data = array(
'code' => 'pickup',
'title' => $this->language->get('text_title'),
'quote' => $quote_data,
'sort_order' => $this->config->get('pickup_sort_order'),
'error' => false
);
}