Hello,
On my products page, next to the stock, the picture and name of the brand of the product is displayed. I want to link to this brand area, but I could not. In fact, the mouse cursor changes when I hover over it, but it does not go to the link and when I hover over it, instead of the link in the left corner of the browser, "javascript void();" is writing. Is there a place where I can assign a link from the admin panel?
Also the brand link works on my homepage and category page. I'm just having this problem on the products page.
I would be glad if you could help.
My Opencart Version: 3.0.3.2
On my products page, next to the stock, the picture and name of the brand of the product is displayed. I want to link to this brand area, but I could not. In fact, the mouse cursor changes when I hover over it, but it does not go to the link and when I hover over it, instead of the link in the left corner of the browser, "javascript void();" is writing. Is there a place where I can assign a link from the admin panel?
Also the brand link works on my homepage and category page. I'm just having this problem on the products page.
I would be glad if you could help.
My Opencart Version: 3.0.3.2
Last edited by fguzels on Wed Oct 28, 2020 7:31 pm, edited 1 time in total.
Link to your site?fguzels wrote: ↑Tue Oct 27, 2020 4:45 pmHello,
On my products page, next to the stock, the picture and name of the brand of the product is displayed. I want to link to this brand area, but I could not. In fact, the mouse cursor changes when I hover over it, but it does not go to the link and when I hover over it, instead of the link in the left corner of the browser, "javascript void();" is writing. Is there a place where I can assign a link from the admin panel?
Also the brand link works on my homepage and category page. I'm just having this problem on the products page.
I would be glad if you could help.
My Opencart Version: 3.0.3.2
Backup and learn how to recover before you make any changes!
link to the manufacturer page exists in controller
insert {{ manufacturers }} instead of javascript:void(0); in your template
insert {{ manufacturers }} instead of javascript:void(0); in your template
Best All in One Remarketing And Ecommerce Tracking Solution for Opencart. Free Install and Setup
Your link to the brand area uses something like in this example at the moment:
This is basically a dead link, or a bug with the Javascript.
You are using the Journal3 framework, which is not a standard-compliant OpenCart theme. Hence, you should get in touch with the Journal support, or find a professional developer from the commercial support section of this forum. Or you could use another proper standard-compliant OpenCart web theme.
Code: Select all
<a href="javascript:void(0);">
<img src="https://www.anatolihome.com/image/cache/catalog/Logo/anatolihome-logo2-70x70w.png" srcset="https://www.anatolihome.com/image/cache/catalog/Logo/anatolihome-logo2-70x70w.png 1x, https://www.anatolihome.com/image/cache/catalog/Logo/anatolihome-logo2-140x140w.png 2x" alt="ANATOLI">
<span>ANATOLI</span>
</a>
You are using the Journal3 framework, which is not a standard-compliant OpenCart theme. Hence, you should get in touch with the Journal support, or find a professional developer from the commercial support section of this forum. Or you could use another proper standard-compliant OpenCart web theme.
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
Code: Select all
{% if manufacturer and j3.settings.get(stylePrefix ~ 'ProductManufacturer') and (j3.settings.get(stylePrefix ~ 'ProductManufacturerDisplay') == 'image') %}
<div class="brand-image product-manufacturer">
<a href="{{ manufacturers }}">
{% if manufacturer_image %}
<img src="{{ manufacturer_image }}" {% if manufacturer_image2x %}srcset="{{ manufacturer_image }} 1x, {{ manufacturer_image2x }} 2x"{% endif %} alt="{{ manufacturer }}"/>
{% endif %}
<span>{{ manufacturer }}</span>
</a>
</div>
{% endif %}
You are right. My problem is most likely due to the lack of javascript code. When I examined the codes, I did not see any script written for this area.JNeuhoff wrote: ↑Tue Oct 27, 2020 6:29 pmYour link to the brand area uses something like in this example at the moment:
This is basically a dead link, or a bug with the Javascript.Code: Select all
<a href="javascript:void(0);"> <img src="https://www.anatolihome.com/image/cache/catalog/Logo/anatolihome-logo2-70x70w.png" srcset="https://www.anatolihome.com/image/cache/catalog/Logo/anatolihome-logo2-70x70w.png 1x, https://www.anatolihome.com/image/cache/catalog/Logo/anatolihome-logo2-140x140w.png 2x" alt="ANATOLI"> <span>ANATOLI</span> </a>
You are using the Journal3 framework, which is not a standard-compliant OpenCart theme. Hence, you should get in touch with the Journal support, or find a professional developer from the commercial support section of this forum. Or you could use another proper standard-compliant OpenCart web theme.
Thank you for your advice.
source code is right

but js replace link
source code for replace here


but js replace link
source code for replace here

Best All in One Remarketing And Ecommerce Tracking Solution for Opencart. Free Install and Setup
Legendary Member
Thank you all for your comments.
I solved the problem.
In the admin panel, under the journal tab, under the system> settings section, it doesn't work because there are the following codes in custom js.
"$ (". manufacturer-thumb> .image a "). attr (" href "," javascript: void (0); ");
$ (". brand-image a"). attr ("href", javascript: void (0); ); "
When I deleted these codes, it started working automatically.
Thank you for your help. Especially because you said there was a problem with the theme.
I solved the problem.
In the admin panel, under the journal tab, under the system> settings section, it doesn't work because there are the following codes in custom js.
"$ (". manufacturer-thumb> .image a "). attr (" href "," javascript: void (0); ");
$ (". brand-image a"). attr ("href", javascript: void (0); ); "
When I deleted these codes, it started working automatically.
Thank you for your help. Especially because you said there was a problem with the theme.
Glad to hear you got it to work now.
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
Who is online
Users browsing this forum: No registered users and 4 guests