Running Opencart v3.0.3.9 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.
No, because your details are too vague to be of a useful help.any idea why links in information page are no longer dynamic for multistores?
For a start, what exact links are you talking about, on what information page? OpenCart version? Any other extensions? Any URL?
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
As I already said, I am using v3 ( v3.0.3.2 as stated in my signature to be exact), and creating links on an info page. The sample URL is in my original post too so not sure what you were reading.JNeuhoff wrote: ↑Sat Aug 01, 2020 9:37 pmNo, because your details are too vague to be of a useful help.any idea why links in information page are no longer dynamic for multistores?
For a start, what exact links are you talking about, on what information page? OpenCart version? Any other extensions? Any URL?
Running Opencart v3.0.3.9 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.
Your links shouldn't be auto-prefixed with the 'https://' nor 'http://' when you want relative URLs.
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
Running Opencart v3.0.3.9 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.
Edit file admin/view/javascript/summernote/summernote.js
Find around line 4342:
Code: Select all
$.each(anchors, function (idx, anchor) {
// if url doesn't match an URL schema, set http:// as default
linkUrl = /^[A-Za-z][A-Za-z0-9+-.]*\:[\/\/]?/.test(linkUrl) ?
linkUrl : 'http://' + linkUrl;
$(anchor).attr('href', linkUrl);
if (isNewWindow) {
$(anchor).attr('target', '_blank');
} else {
$(anchor).removeAttr('target');
}
});
Replace with:
Code: Select all
$.each(anchors, function(idx, anchor) {
// if url doesn't match an URL schema, set http:// as default
// only if onCreateLink callback not specified.
if (options.onCreateLink) {
linkUrl = options.onCreateLink(linkUrl);
} else {
linkUrl = /^[A-Za-z][A-Za-z0-9+-.]*\:[\/\/]?/.test(linkUrl) ?
linkUrl : 'http://' + linkUrl;
}
$(anchor).attr('href', linkUrl);
if (isNewWindow) {
$(anchor).attr('target', '_blank');
} else {
$(anchor).removeAttr('target');
}
});
Running Opencart v3.0.3.9 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.
Don't forget to add [SOLVED] to the beginning then.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Users browsing this forum: No registered users and 20 guests