I`m extension developer for opencart.
The right side menu ( https://www.uploady.com/download/iS9_uS ... xTZkNkhdYq ) on the account page is not good for me, cuz I need to check Order ID.
To resolve this issue I made JS code, this code add Transaction and Sale link to right side menu:
Code: Select all
var token = get_url_value($('.visible-xs:eq(0) > a').attr('href'), 'member_token');
if ($('#opencart-transaction-link').length == 0) {
$('#account-menu .panel-default:eq(1)').append('<a id="opencart-transaction-link" href="https://www.opencart.com/index.php?route=account/transaction&member_token='+token+'" class="list-group-item">Transactions</a>');
}
if ($('#opencart-sale-link').length == 0) {
$('#account-menu .panel-default:eq(1)').append('<a id="opencart-sale-link" href="https://www.opencart.com/index.php?route=account/sale&member_token='+token+'" class="list-group-item">Sales</a>');
}
$('#opencart-sale-link').remove();
function get_url_value(url, type) {
var value = 0;
var arr = url.split("&");
for(var i = 0; i < arr.length; i++){
var value = arr[i].split("=");
if (value[0] === type) {
return value[1];
}
}
}
At result you get this: https://www.uploady.com/download/fL~f~5 ... fZCXzJRkY6