Post by fguzels » Tue Oct 27, 2020 4:45 pm

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
Last edited by fguzels on Wed Oct 28, 2020 7:31 pm, edited 1 time in total.

Newbie

Posts

Joined
Sat Oct 17, 2020 2:35 am

Post by sw!tch » Tue Oct 27, 2020 4:57 pm

fguzels wrote:
Tue Oct 27, 2020 4:45 pm
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
Link to your site?

Backup and learn how to recover before you make any changes!


Active Member

Posts

Joined
Sat Apr 28, 2012 2:32 pm

Post by fguzels » Tue Oct 27, 2020 5:05 pm

sw!tch wrote:
Tue Oct 27, 2020 4:57 pm
Link to your site?
https://www.anatolihome.com/

Newbie

Posts

Joined
Sat Oct 17, 2020 2:35 am

Post by spectreav » Tue Oct 27, 2020 6:21 pm

link to the manufacturer page exists in controller
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


New member

Posts

Joined
Sun Oct 25, 2020 7:24 pm

Post by JNeuhoff » Tue Oct 27, 2020 6:29 pm

Your link to the brand area uses something like in this example at the moment:

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>
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.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by fguzels » Tue Oct 27, 2020 6:34 pm

spectreav wrote:
Tue Oct 27, 2020 6:21 pm
link to the manufacturer page exists in controller
insert {{ manufacturers }} instead of javascript:void(0); in your template

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 %}
My codes are already like this

Newbie

Posts

Joined
Sat Oct 17, 2020 2:35 am

Post by fguzels » Tue Oct 27, 2020 6:39 pm

JNeuhoff wrote:
Tue Oct 27, 2020 6:29 pm
Your link to the brand area uses something like in this example at the moment:

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>
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.
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.
Thank you for your advice.

Newbie

Posts

Joined
Sat Oct 17, 2020 2:35 am

Post by spectreav » Tue Oct 27, 2020 6:49 pm

source code is right

Image

but js replace link

source code for replace here

Image

Best All in One Remarketing And Ecommerce Tracking Solution for Opencart. Free Install and Setup


New member

Posts

Joined
Sun Oct 25, 2020 7:24 pm

Post by paulfeakins » Tue Oct 27, 2020 7:06 pm

fguzels wrote:
Tue Oct 27, 2020 4:45 pm
I would be glad if you could help.
https://support.journal-theme.com/

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by fguzels » Wed Oct 28, 2020 4:44 pm

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.

Newbie

Posts

Joined
Sat Oct 17, 2020 2:35 am

User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by fguzels » Wed Oct 28, 2020 10:45 pm

JNeuhoff wrote:
Wed Oct 28, 2020 7:49 pm
Glad to hear you got it to work now.
Thank you.

Newbie

Posts

Joined
Sat Oct 17, 2020 2:35 am
Who is online

Users browsing this forum: No registered users and 4 guests