Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
And if you need to quick bulk edit statuses - look on free extension EnableDisable Products
Isn't that what I just indicated above?AlexDW wrote:Just use Status->Enabled in Product list
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Sorry, but English is not my native language, some time need on translatestraightlight wrote:Isn't that what I just indicated above?AlexDW wrote:Just use Status->Enabled in Product list
In admin/view/template/catalog/product_list.php file,
replace with:
Code: Select all
<select name="filter_status" id="input-status" class="form-control">
<option value="*"></option>
<?php if ($filter_status) { ?>
<option value="1" selected="selected"><?php echo $text_enabled; ?></option>
<?php } else { ?>
<option value="1"><?php echo $text_enabled; ?></option>
<?php } ?>
<?php if (!$filter_status && !is_null($filter_status)) { ?>
<option value="0" selected="selected"><?php echo $text_disabled; ?></option>
<?php } else { ?>
<option value="0"><?php echo $text_disabled; ?></option>
<?php } ?>
</select>
Code: Select all
<select name="filter_status" id="input-status" class="form-control">
<option value="1" selected="selected"><?php echo $text_enabled; ?></option>
</select>
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
in file admin\controller\common\menu.php
find line
Code: Select all
$data['product'] = $this->url->link('catalog/product', 'token=' . $this->session->data['token'], 'SSL');
Code: Select all
$data['product'] = $this->url->link('catalog/product', 'token=' . $this->session->data['token'] . '&filter_status=1', 'SSL');
and don't forget refresh modification cache after replacement
With this method you can continue to choose the status, and by default it will be enabled
By using this method, any users would be able to change the value on the URL which the select form would be able to handle both methods since the array would still pull the one being last inputed into the URL as the status value while my method above forces the issue on using specifically the enabled feature on the list.AlexDW wrote:I think better use this method:
in file admin\controller\common\menu.php
find lineand replace toCode: Select all
$data['product'] = $this->url->link('catalog/product', 'token=' . $this->session->data['token'], 'SSL');
(for version 2200 instead of 'SSL' here is true)Code: Select all
$data['product'] = $this->url->link('catalog/product', 'token=' . $this->session->data['token'] . '&filter_status=1', 'SSL');
and don't forget refresh modification cache after replacement
With this method you can continue to choose the status, and by default it will be enabled
Both methods would be a good approach, I presume.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Users browsing this forum: Mike Guenther and 228 guests