Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

link in header


surya

Recommended Posts

I'm really new at this (coded perl many years ago). Someone else installed my store; its not quite finished and I really want to get it finished this weekend, without having the help of the folks who installed it.

 

At the top of the store is my logo, and it isn't functioning as a link.

In the header.php file, it sort of looks like it should be a link, but I don't understand it: here is the table cell that contains the image:

 

<td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'store_logo.png', STORE_NAME) . '</a>'; ?></td>

 

the image IS contained within an <a href ... but I simply want it to link to

http://www.threetrusts.com to provide the link to the home page of the main site.

 

Any ideas?

Link to comment
Share on other sites

your template is not using this file

 

The code generated is

 

<table width="800" border="0" cellspacing="0" cellpadding="0">

<tr valign="top">

 

<td width="196" rowspan="3" bgcolor="#6d983f"><img src="images/threetrusts_logo.gif" width="196" height="98" alt="Three Trusts, Inc." />

<table width="100%" border="0" cellspacing="0" cellpadding="4">

<tr valign="top">

<td> </td>

</tr>

 

So my "guess" was wrong,

 

But when I book a course and you are in the osc part of the site the code is

 

<table border="0" width="100%" cellspacing="0" cellpadding="10">

<tr class="header">

<td width="24%" valign="middle"><a href="http://www.threetrusts.com"><img src="../../../../images/threetrusts_logo.gif" border=0 alt="Help for divorced parents"/></a>

<p><font color="#FFFFFF"><strong><font size="4" face="Arial, Helvetica, sans-serif">Call Today: 303-278-8136</font></strong></font></p></td>

<td width="76%" align=left><a href="http://www.threetrusts.com"><img border="0" src="images/store_logo.png"></a> </td>

</tr>

</table>

 

 

The link work from there but not the rest of the site.

 

See http://www.w3schools.com/html/tryit.asp?fi...tryhtml_imglink for more info on the command syntax

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Link to comment
Share on other sites

Thanks, Geoffrey. I'm so new at this, I didn't even really understand your reply. haha!

But, thankfully, I just kept poking around and found the files I needed to review.

Now the images on the top link the way I want them to.

 

I did wonder if it outside of ecommerce protocol to provide those links that take you OUT of the store.

It does seem, though, that someone should be able to get out of the store to the underlying main website through an obvious link.

 

(what I finally did, duh, was search on the text of the phone number I wanted to get rid of. that's how I found the file to review)

 

The link work from there but not the rest of the site.

 

See http://www.w3schools.com/html/tryit.asp?fi...tryhtml_imglink for more info on the command syntax

Link to comment
Share on other sites

Yeah, sometimes I am a little obtuse, it is either to get you thinking or just to get you mess with your mind or I pitch it at the wrong level.

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Link to comment
Share on other sites

just so you know.. if your customer leaves the "store" side of the site and goes to the MAIN side, then the customer will loose their oscsid (their session id) and the contents of their cart will be lost when they go BACK.

 

So you either need a warning to have them checkout before htey leave, or turn all your html pages into php pages and add some code to keep the session id.

 

i have yet to figure this out entirely thoug.

 

My issues is that the main site on my website is maintained by my husband who does everything in dreamweaver design mode.. so switching them to php would kill that.. still figuring it out for him

A great place for newbies to start

Road Map to oscommerce File Structure

DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways!

 

HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you

 

Proud Memeber of the CODE BREAKERS CLUB!!

Link to comment
Share on other sites

Good point, Lindsay! So, I'm looking now for the Confirm dialog box to have them click through to leave the store, or cancel to stay within the store. (Also took off the link to the largest graphic, left the link to the home page [outside the store] on the smaller graphic).

 

I'm working in Dreamweaver with .php pages; not sure why your husband wouldn't be able to.

 

I've also got to figure out the basic structure of the page for putting the javascript code in. its been awhile ...

 

just so you know.. if your customer leaves the "store" side of the site and goes to the MAIN side, then the customer will loose their oscsid (their session id) and the contents of their cart will be lost when they go BACK.

 

So you either need a warning to have them checkout before htey leave, or turn all your html pages into php pages and add some code to keep the session id.

 

i have yet to figure this out entirely thoug.

 

My issues is that the main site on my website is maintained by my husband who does everything in dreamweaver design mode.. so switching them to php would kill that.. still figuring it out for him

Link to comment
Share on other sites

you cant work in design mode with php pages though, right?? I guess i havent tried it, but if the entire .php page is all html except for the code to keep the session id, then it MIGHT show the design part. I havent tried it.. when you work with those php pages in dreamweaver, can you see the design mode??

 

If you CAN do that, and i CAN get the design mode to work in dreamweaver.. then i will work on some code to put in out MOSTLY html .php pages so that it will keep the session id and you dont need the popup.

A great place for newbies to start

Road Map to oscommerce File Structure

DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways!

 

HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you

 

Proud Memeber of the CODE BREAKERS CLUB!!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...