- catalog/controller/account/download.php
- catalog/language/en-gb/account/download.php
- catalog/model/account/download.php
- catalog/view/theme/default/template/account/download.twig
You can either replace those files or use OCMod / VQMod to implement the added codes.
Attachments
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Attachments
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Code: Select all
{{ header }}
<div id="account-download" class="container">
<ul class="breadcrumb">
{% for breadcrumb in breadcrumbs %}
<li><a href="{{ breadcrumb.href }}">{{ breadcrumb.text }}</a></li>
{% endfor %}
</ul>
<div class="row">{{ column_left }}
{% if column_left and column_right %}
{% set class = 'col-sm-6' %}
{% elseif column_left or column_right %}
{% set class = 'col-sm-9' %}
{% else %}
{% set class = 'col-sm-12' %}
{% endif %}
<div id="content" class="{{ class }}">{{ content_top }}
<h2>{{ heading_title }}</h2>
{% if downloads %}
<div class="table-responsive">
<table class="table table-bordered table-hover">
<thead>
<tr>
<td class="text-right">{{ column_order_id }}</td>
<td class="text-left">{{ column_name }}</td>
<td class="text-left">{{ column_size }}</td>
<td class="text-left">{{ column_store }}</td>
<td class="text-left">{{ column_language }}</td>
<td class="text-left">{{ column_date_added }}</td>
<td></td>
</tr>
</thead>
<tbody>
{% for download in downloads %}
<tr>
<td class="text-right">{{ download.order_id }}</td>
<td class="text-left">{{ download.name }}</td>
<td class="text-left">{{ download.size }}</td>
<td class="text-left">{{ download.store_name }}</td>
<td class="text-left">{{ download.language_name }}</td>
<td class="text-left">{{ download.date_added }}</td>
<td><a href="{{ download.href }}" data-toggle="tooltip" title="{{ button_download }}" class="btn btn-primary"><i class="fa fa-cloud-download"></i></a></td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
<div class="row">
<div class="col-sm-6 text-left">{{ pagination }}</div>
<div class="col-sm-6 text-right">{{ results }}</div>
</div>
{% else %}
<p>{{ text_empty }}</p>
{% endif %}
<div class="buttons clearfix">
<div class="pull-right"><a href="{{ continue }}" class="btn btn-primary">{{ button_continue }}</a></div>
</div>
{{ content_bottom }}</div>
{{ column_right }}</div>
</div>
{{ footer }}
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
Attachments
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
In order to avoid this issue, a store disclosure option must be added for every store so that the merchant can either allow or disallow the disclose of the current store towards other stores that he owns. To remind of the applied strategy, this is only a conceptual approach as the following modifications below will not be propagated through the entire unfortunately while it should be, however.
Followed is the modified catalog/model/account/download.php file in the attachment.
Although, the following adjustments would also need to be made in the following files:
- admin/controller/setting/setting.php file:
find:
Code: Select all
$data['return_statuses'] = $this->model_localisation_return_status->getReturnStatuses();
Code: Select all
if (isset($this->request->post['config_store_disclosure'])) {
$data['config_store_disclosure'] = $this->request->post['config_store_disclosure'];
} else {
$data['config_store_disclosure'] = $this->config->get('config_store_disclosure');
}
find:
Code: Select all
if (isset($this->request->post['config_secure'])) {
$data['config_secure'] = $this->request->post['config_secure'];
} elseif (isset($store_info['config_secure'])) {
$data['config_secure'] = $store_info['config_secure'];
} else {
$data['config_secure'] = '';
}
Code: Select all
if (isset($this->request->post['config_store_disclosure'])) {
$data['config_store_disclosure'] = $this->request->post['config_store_disclosure'];
} else {
$data['config_store_disclosure'] = $this->config->get('config_store_disclosure');
}
find:
Code: Select all
$_['entry_status']
Code: Select all
$_['entry_store_disclosure'] = 'Disclose the store to other stores that I own?';
find:
Code: Select all
$_['entry_secure'] = 'Use SSL';
Code: Select all
$_['entry_store_disclosure'] = 'Disclose the store to other stores that I own?';
find:
Code: Select all
</fieldset>
<fieldset>
<legend>{{ text_affiliate }}</legend>
Code: Select all
<div class="form-group">
<label class="col-sm-2 control-label">{{ entry_store_disclosure }}</label>
<div class="col-sm-10">
<label class="radio-inline"> {% if config_store_disclosure %}
<input type="radio" name="config_store_disclosure" value="1" checked="checked" />
{{ text_yes }}
{% else %}
<input type="radio" name="config_store_disclosure" value="1" />
{{ text_yes }}
{% endif %} </label>
<label class="radio-inline"> {% if not config_store_disclosure %}
<input type="radio" name="config_store_disclosure" value="0" checked="checked" />
{{ text_no }}
{% else %}
<input type="radio" name="config_store_disclosure" value="0" />
{{ text_no }}
{% endif %} </label>
</div>
</div>
Attachments
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Attachments
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Users browsing this forum: No registered users and 3 guests