Post by danscustomworks » Fri Mar 10, 2017 12:46 am

I am setting up my store and want to have customers be able to click on an image or link and have that open in a separate tab or page. Is there a way to do that in Opencart?


Posts

Joined
Sat Oct 03, 2015 8:48 am

Post by drebosio » Fri Mar 10, 2017 4:00 am

This is easy to do, but where are the images going to be at?

All you need to do is set the link of the image which can be done in the html

User avatar
New member

Posts

Joined
Sat Jan 21, 2017 3:51 am

Post by danscustomworks » Fri Mar 10, 2017 4:25 am

I have an image I will put in the slideshow at the top of my page then link it to the new destination but how do I have it open in a new page so that they are both viewable by the person looking. I'm not super with HTML so that is why I am asking. Also having a few issues with setting up a multi store and the images not showing up on the other stores.


Posts

Joined
Sat Oct 03, 2015 8:48 am

Post by paulfeakins » Fri Mar 10, 2017 5:49 pm


For quick, professional OpenCart support please email info@antropy.co.uk


User avatar
Active Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - Reigate, Surrey, United Kingdom

Post by uksitebuilder » Fri Mar 10, 2017 9:07 pm

As this is for the slideshow, I am assuming you will be using the admin - Design - Banners section to add your images and links

The only way to make a link open in a new window using that method would be to add the link as follows:

Code: Select all

javascript:void(window.open('http://www.opencart.com','window_name'));

ImageImageImageImageImage

For Friendly Professional Support - Click Here


User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by kashmir kkit » Sat Mar 11, 2017 1:46 pm

a simple way is putting your link with target e.g
<a href="link here" target="_blank">

New member

Posts

Joined
Wed Nov 23, 2016 1:48 pm

Post by uksitebuilder » Sat Mar 11, 2017 4:34 pm

You cannot put a href in the design banners section link field, hence my post above using javascript

ImageImageImageImageImage

For Friendly Professional Support - Click Here


User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by cyclops12 » Sat Mar 11, 2017 11:49 pm

What OC version are you using ?

Active Member

Posts

Joined
Sun Sep 27, 2015 1:10 am

Post by danscustomworks » Mon Mar 13, 2017 4:03 am

2.0.3.1


Posts

Joined
Sat Oct 03, 2015 8:48 am

Post by kashmir kkit » Mon Mar 13, 2017 5:41 pm

@uksitebuilder... oh actually i skipped to see it is related to design banner module.... :bang:

New member

Posts

Joined
Wed Nov 23, 2016 1:48 pm

Post by cyclops12 » Tue Mar 14, 2017 3:18 am

danscustomworks wrote:
Mon Mar 13, 2017 4:03 am
2.0.3.1
Here you go try this...

Attachments


Active Member

Posts

Joined
Sun Sep 27, 2015 1:10 am

Post by uksitebuilder » Tue Mar 14, 2017 4:05 am

If you are going to make a mod for something that was answered a few posts back, you could at least have added a switch in admin to toggle new window or not. Now all slideshow links will open in new tabs

ImageImageImageImageImage

For Friendly Professional Support - Click Here


User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by cyclops12 » Tue Mar 14, 2017 5:27 am

uksitebuilder wrote:
Tue Mar 14, 2017 4:05 am
Now all slideshow links will open in new tabs
My bad, I didn't realise the OP only wanted one image to open in new tab
uksitebuilder wrote:
Tue Mar 14, 2017 4:05 am
If you are going to make a mod for something that was answered a few posts back, you could at least have added a switch in admin to toggle new window or not.
Hmm something to think about ;) ;D

Active Member

Posts

Joined
Sun Sep 27, 2015 1:10 am

Post by redafawzy201 » Fri Aug 17, 2018 5:11 am

uksitebuilder wrote:
Fri Mar 10, 2017 9:07 pm
As this is for the slideshow, I am assuming you will be using the admin - Design - Banners section to add your images and links

The only way to make a link open in a new window using that method would be to add the link as follows:

Code: Select all

javascript:void(window.open('http://www.opencart.com','window_name'));
where I put this code or add every link with this code

Newbie

Posts

Joined
Sun Apr 08, 2018 1:33 am

Post by redafawzy201 » Fri Aug 17, 2018 5:15 am

Image

I need out link open at my web fram like image

Newbie

Posts

Joined
Sun Apr 08, 2018 1:33 am
Who is online

Users browsing this forum: No registered users and 12 guests