help

General ShopSite user discussion

help

Postby Harvey » Fri Mar 10, 2006 6:53 pm

Hi,

How do I convert these two line into shopsite code?
<link rel="stylesheet" type="text/css" href="ihome.css"></link>
<script language="JavaScript" type="text/javascript"
src="ihome.js"></script>

I just want to link to these files.

Harvey
Harvey
 

Re: help

Postby jim » Fri Mar 10, 2006 11:22 pm

No need to convert them if the files are located in the output directory
of your store (where your html pages get put). If you upload them to
the same directory as your images you would need to have a media/ in
front of the file names like this src="media/ihome.js"

Jim


Harvey wrote:
Hi,

How do I convert these two line into shopsite code?
link rel="stylesheet" type="text/css" href="ihome.css"></link
script language="JavaScript" type="text/javascript"
src="ihome.js"></script

I just want to link to these files.

Harvey

jim
 

Re: help

Postby jim » Sat Mar 11, 2006 8:04 am

After I sent the last message it occurred to me that if the files are to
be accessed from the shopping cart screens you will need to include the
full url for them. This is because the shopping cart pages (and search
results) are being displayed by a cgi and are not in the stores output
directory so a relative path won't work.

Jim

jim wrote:
No need to convert them if the files are located in the output directory
of your store (where your html pages get put). If you upload them to
the same directory as your images you would need to have a media/ in
front of the file names like this src="media/ihome.js"

Jim


Harvey wrote:
Hi,

How do I convert these two line into shopsite code?
link rel="stylesheet" type="text/css" href="ihome.css"></link
script language="JavaScript" type="text/javascript"
src="ihome.js"></script

I just want to link to these files.

Harvey
jim
 

Re: help

Postby Harvey » Sat Mar 11, 2006 10:51 am

Hi Jim,

I want to put these files in my shopping cart, customer template include
files, so I could modfy it anytime. Could you show me the code to include
the full url for these files as I coldn't figure it out?

After I sent the last message it occurred to me that if the files are to
be accessed from the shopping cart screens you will need to include the
full url for them. This is because the shopping cart pages (and search
results) are being displayed by a cgi and are not in the stores output
directory so a relative path won't work.

Jim

jim wrote:
No need to convert them if the files are located in the output directory
of your store (where your html pages get put). If you upload them to the
same directory as your images you would need to have a media/ in front of
the file names like this src="media/ihome.js"

Jim


Harvey wrote:
Hi,

How do I convert these two line into shopsite code?
link rel="stylesheet" type="text/css" href="ihome.css"></link
script language="JavaScript" type="text/javascript"
src="ihome.js"></script

I just want to link to these files.

Harvey
Harvey
 

Re: help

Postby jim » Sat Mar 11, 2006 5:50 pm

You still haven't said where the files are located on your server. Are
they with the store html pages or with the images?

If they are in the same directory as the html pages then used this code
in your custom template
<link rel="stylesheet" type="text/css" href="[-- OUTPUT_DIRECTORY_URL
--]/ihome.css"></link>
<script language="JavaScript" type="text/javascript"
src="[-- OUTPUT_DIRECTORY_URL --]/ihome.js"></script>

If they are in the media directory with the images use this
<link rel="stylesheet" type="text/css" href="[-- OUTPUT_DIRECTORY_URL
--]/media/ihome.css"></link>
<script language="JavaScript" type="text/javascript"
src="[-- OUTPUT_DIRECTORY_URL --]/media/ihome.js"></script>


Jim

Harvey wrote:
Hi Jim,

I want to put these files in my shopping cart, customer template include
files, so I could modfy it anytime. Could you show me the code to include
the full url for these files as I coldn't figure it out?

After I sent the last message it occurred to me that if the files are to
be accessed from the shopping cart screens you will need to include the
full url for them. This is because the shopping cart pages (and search
results) are being displayed by a cgi and are not in the stores output
directory so a relative path won't work.

Jim

jim wrote:
No need to convert them if the files are located in the output directory
of your store (where your html pages get put). If you upload them to the
same directory as your images you would need to have a media/ in front of
the file names like this src="media/ihome.js"

Jim


Harvey wrote:
Hi,

How do I convert these two line into shopsite code?
link rel="stylesheet" type="text/css" href="ihome.css"></link
script language="JavaScript" type="text/javascript"
src="ihome.js"></script

I just want to link to these files.

Harvey


jim
 

Re: help

Postby Harvey » Sat Mar 11, 2006 9:56 pm

I create these files from the customer template in shppping cart's
merchanding tools.

"jim" <jstavast@xmission.com> wrote in message
news:duvno1$b1h$1@eval.shopsite.com...
You still haven't said where the files are located on your server. Are
they with the store html pages or with the images?

If they are in the same directory as the html pages then used this code in
your custom template
link rel="stylesheet" type="text/css" href="[--
OUTPUT_DIRECTORY_URL --]/ihome.css"></link
script language="JavaScript" type="text/javascript"
src="[-- OUTPUT_DIRECTORY_URL --]/ihome.js"></script

If they are in the media directory with the images use this
link rel="stylesheet" type="text/css" href="[--
OUTPUT_DIRECTORY_URL --]/media/ihome.css"></link
script language="JavaScript" type="text/javascript"
src="[-- OUTPUT_DIRECTORY_URL --]/media/ihome.js"></script


Jim

Harvey wrote:
Hi Jim,

I want to put these files in my shopping cart, customer template include
files, so I could modfy it anytime. Could you show me the code to include
the full url for these files as I coldn't figure it out?

After I sent the last message it occurred to me that if the files are to
be accessed from the shopping cart screens you will need to include the
full url for them. This is because the shopping cart pages (and search
results) are being displayed by a cgi and are not in the stores output
directory so a relative path won't work.

Jim

jim wrote:
No need to convert them if the files are located in the output
directory of your store (where your html pages get put). If you upload
them to the same directory as your images you would need to have a
media/ in front of the file names like this src="media/ihome.js"

Jim


Harvey wrote:
Hi,

How do I convert these two line into shopsite code?
link rel="stylesheet" type="text/css" href="ihome.css"></link
script language="JavaScript" type="text/javascript"
src="ihome.js"></script

I just want to link to these files.

Harvey

Harvey
 

Re: help

Postby jim » Sun Mar 12, 2006 12:14 am

So you edit ihome.js and ihome.css from the Merchandising > Custom
Templates > screen in the Include Files section? If that is the case
then you will not be able to use the method you specified. You will
have to have your actual javascript and css code in those files and use
the ShopSite tag [-- include ihome.js process --] and [-- ihome.css
process --] (you may need to include the "process" option if those files
contain any ShopSite template tags. If there are no ShopSite tags you
can leave that out.)

The files from the templates area of the store are not accessable from
the web except when accessed by a cgi as is the case when you edit them.
When ShopSite generates your html pages it will put the actual content
of the file into the html file so it will be accessable from a browser.
If the files were located in the output directory (or a subdirectory
of it like media) where your html files are located then you could use
the method you originally proposed.

Jim

Harvey wrote:
I create these files from the customer template in shppping cart's
merchanding tools.

"jim" <jstavast@xmission.com> wrote in message
news:duvno1$b1h$1@eval.shopsite.com...
You still haven't said where the files are located on your server. Are
they with the store html pages or with the images?

If they are in the same directory as the html pages then used this code in
your custom template
link rel="stylesheet" type="text/css" href="[--
OUTPUT_DIRECTORY_URL --]/ihome.css"></link
script language="JavaScript" type="text/javascript"
src="[-- OUTPUT_DIRECTORY_URL --]/ihome.js"></script

If they are in the media directory with the images use this
link rel="stylesheet" type="text/css" href="[--
OUTPUT_DIRECTORY_URL --]/media/ihome.css"></link
script language="JavaScript" type="text/javascript"
src="[-- OUTPUT_DIRECTORY_URL --]/media/ihome.js"></script


Jim

Harvey wrote:
Hi Jim,

I want to put these files in my shopping cart, customer template include
files, so I could modfy it anytime. Could you show me the code to include
the full url for these files as I coldn't figure it out?

After I sent the last message it occurred to me that if the files are to
be accessed from the shopping cart screens you will need to include the
full url for them. This is because the shopping cart pages (and search
results) are being displayed by a cgi and are not in the stores output
directory so a relative path won't work.

Jim

jim wrote:
No need to convert them if the files are located in the output
directory of your store (where your html pages get put). If you upload
them to the same directory as your images you would need to have a
media/ in front of the file names like this src="media/ihome.js"

Jim


Harvey wrote:
Hi,

How do I convert these two line into shopsite code?
link rel="stylesheet" type="text/css" href="ihome.css"></link
script language="JavaScript" type="text/javascript"
src="ihome.js"></script

I just want to link to these files.

Harvey

jim
 

Re: help

Postby Harvey » Wed Mar 15, 2006 4:44 pm

Thanks Jim,

"jim" <jstavast@xmission.com> wrote in message
news:dv0e8j$km5$1@eval.shopsite.com...
So you edit ihome.js and ihome.css from the Merchandising > Custom
Templates > screen in the Include Files section? If that is the case then
you will not be able to use the method you specified. You will have to
have your actual javascript and css code in those files and use the
ShopSite tag [-- include ihome.js process --] and [-- ihome.css
process --] (you may need to include the "process" option if those files
contain any ShopSite template tags. If there are no ShopSite tags you can
leave that out.)

The files from the templates area of the store are not accessable from the
web except when accessed by a cgi as is the case when you edit them. When
ShopSite generates your html pages it will put the actual content of the
file into the html file so it will be accessable from a browser. If the
files were located in the output directory (or a subdirectory of it like
media) where your html files are located then you could use the method you
originally proposed.

Jim

Harvey wrote:
I create these files from the customer template in shppping cart's
merchanding tools.

"jim" <jstavast@xmission.com> wrote in message
news:duvno1$b1h$1@eval.shopsite.com...
You still haven't said where the files are located on your server. Are
they with the store html pages or with the images?

If they are in the same directory as the html pages then used this code
in your custom template
link rel="stylesheet" type="text/css" href="[--
OUTPUT_DIRECTORY_URL --]/ihome.css"></link
script language="JavaScript" type="text/javascript"
src="[-- OUTPUT_DIRECTORY_URL --]/ihome.js"></script

If they are in the media directory with the images use this
link rel="stylesheet" type="text/css" href="[--
OUTPUT_DIRECTORY_URL --]/media/ihome.css"></link
script language="JavaScript" type="text/javascript"
src="[-- OUTPUT_DIRECTORY_URL --]/media/ihome.js"></script


Jim

Harvey wrote:
Hi Jim,

I want to put these files in my shopping cart, customer template
include files, so I could modfy it anytime. Could you show me the code
to include the full url for these files as I coldn't figure it out?

After I sent the last message it occurred to me that if the files are
to be accessed from the shopping cart screens you will need to include
the full url for them. This is because the shopping cart pages (and
search results) are being displayed by a cgi and are not in the stores
output directory so a relative path won't work.

Jim

jim wrote:
No need to convert them if the files are located in the output
directory of your store (where your html pages get put). If you
upload them to the same directory as your images you would need to
have a media/ in front of the file names like this
src="media/ihome.js"

Jim


Harvey wrote:
Hi,

How do I convert these two line into shopsite code?
link rel="stylesheet" type="text/css" href="ihome.css"></link
script language="JavaScript" type="text/javascript"
src="ihome.js"></script

I just want to link to these files.

Harvey

Harvey
 


Return to User Forum

Who is online

Users browsing this forum: No registered users and 67 guests