X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   creating hyperlinks (https://forum.x-cart.com/showthread.php?t=33235)

twinster 08-13-2007 09:25 PM

creating hyperlinks
 
Hi All
I'm very new at xcart and have been reading forever trying to work things out. I have the latest version.

I need help with Hyperlinks. With my products I want to have the ingredients pop up when you put your cursor over the word ingredient. How do I do this? Including are the ingredients listed in a seperate folder? Please advise simple how to instructions with paths.

Thanks in advance
Twinster

balinor 08-14-2007 04:36 AM

Re: creating hyperlinks
 
Do you have static html files with the ingredients that you want to link to?

twinster 08-14-2007 04:42 AM

Re: creating hyperlinks
 
Do you mean - Have I created 1 complete file with the different product ingredients in it? If so, no. At this stage I have each product with its write up and ingredients in a seperate document. I have been using name editor as I do not know any html code.

Thanks
Twinster

balinor 08-14-2007 04:43 AM

Re: creating hyperlinks
 
I meant what do you want to pop-up when a user clicks on a link? A static html file that resides on the server somewhere?

twinster 08-14-2007 04:46 AM

Re: creating hyperlinks
 
Yes, thats correct

balinor 08-14-2007 05:03 AM

Re: creating hyperlinks
 
I usually use something like this:

<a href="#" onClick="window.open('files/ingredients/{$product.productcode}.html','','scrollbars=no,res izable=no,width=400,height=300,menubar=no,toolbar= no');return false;" target="_blank"> ingredients</a>

That will open a file in the files/ingredients folder that is named for the sku of the product. So if your sku is 100, you would create a file called 100.html and put it in the files/ingredients folder (which you will need to create). Adjust the width and height according to what your html file format is.

twinster 08-14-2007 05:06 AM

Re: creating hyperlinks
 
Ok. I will try. Thanks again

twinster 08-14-2007 05:13 AM

Re: creating hyperlinks
 
It worked...thank you so much.

Twinster


All times are GMT -8. The time now is 06:40 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.