Override Prestashop (2027)

public function initToolbar() parent::initToolbar(); $this->toolbar_btn['custom_export'] = [ 'href' => self::$currentIndex.'&token='.$this->token.'&export_custom=1', 'desc' => $this->l('Custom Export', null, null, false), 'class' => 'btn btn-primary' ];

/override/classes/Cart.php

private function computeCustomDiscount($product) override prestashop

Goal: Add a new variable to product page. public function initToolbar() parent::initToolbar()