xxvirusxx wrote: ↑Sat Jun 13, 2020 9:54 pm
In
catalog/controller/account/affiliate.php missing some lines. Getform function
Code: Select all
$this->document->addScript('catalog/view/javascript/jquery/datetimepicker/moment/moment.min.js');
$this->document->addScript('catalog/view/javascript/jquery/datetimepicker/moment/moment-with-locales.min.js');
$this->document->addScript('catalog/view/javascript/jquery/datetimepicker/bootstrap-datetimepicker.min.js');
$this->document->addStyle('catalog/view/javascript/jquery/datetimepicker/bootstrap-datetimepicker.min.css');
If is affiliate controller in account, I don't understand why is another register controller in affiliate folder.
In the catalog/controller/affiliate/register.php file, I don't see the getForm() method. The lines as you described for that controller, however, are already added:
Code: Select all
$this->document->addScript('catalog/view/javascript/jquery/datetimepicker/moment/moment.min.js');
$this->document->addScript('catalog/view/javascript/jquery/datetimepicker/moment/moment-with-locales.min.js');
$this->document->addScript('catalog/view/javascript/jquery/datetimepicker/bootstrap-datetimepicker.min.js');
$this->document->addStyle('catalog/view/javascript/jquery/datetimepicker/bootstrap-datetimepicker.min.css');
As to why there's a separate controller for affiliate registration, I don't agree more than you do on this one. Which is why, one of the reasons to have a features-pre version because affiliates do seem to change a lot between OC versions and the master branch does have different ways to handle affiliates as opposed to the pre-release and previous versions of OC.