Post by tschiff » Wed Nov 23, 2011 2:44 am

Hey Opencart Community,

I have a problem with the links of the manufacters in my shop. I got their logos on the bottom and put the correct link in the settings under system->design->banners->manufacters .
When clicking on the banner, the link appears in the same window. But i want it to be opened in a new tab.
Is there a way of solving this problem.
thank you in advance.

Tschiff

Newbie

Posts

Joined
Wed Nov 23, 2011 2:36 am

Post by mkc » Wed Nov 23, 2011 3:00 am

You can edit the TPL file. I'm assuming you're using the carousel?

catelog/view/theme/YOURTHEME/template/module/carousel.tpl

FIND AND REPLACE

Code: Select all

<a href="<?php echo $banner['link']; ?>">
WITH

Code: Select all

<a href="<?php echo $banner['link']; ?>" target="_BLANK">

That should do it. Any issues, hit me up.

mkc
New member

Posts

Joined
Sun Nov 06, 2011 11:20 pm

Post by tschiff » Wed Nov 23, 2011 3:23 am

thank you man.

Newbie

Posts

Joined
Wed Nov 23, 2011 2:36 am

Post by alkhattab batik » Tue Aug 07, 2012 4:15 pm

Hi,

How about if i want to insert external links to my banner? Currently, I now can put the internal links ONLY to the banners. I only can directed the cust to go anywhere in my website when they click the banner.

I also have to put the link in this manner : /index.php?route=product/category&path=24 to allow the clickers to certain page of my website.

If let's say, i want the cust to go to other website such www.google.com, i cant. If i put the link www.google.com in banner link, and then i click the banner, there is error, :

Not Found

The requested URL /www.google.com was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Thank you for any assistance


Posts

Joined
Thu May 17, 2012 12:46 pm
Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 19 guests