MajesticBridal Posted June 30, 2007 Posted June 30, 2007 Hey all! My husband and I are plugging right along on the website and have figured out how to remove the logo per advice on the forums as well as deleted the manufacturers drop down box (OMG!!!). Now we're onto something else.... I'd like to link a category to an external link, i.e. "Invitations" when clicked, would go directly to another site that I use for previews/ordering/etc, but does not use my OSC site. Do we add the link in the index.php file and if so, where? If we insert this link in another php file, which one? Will something like this work? <a href="http://www.somesite.com" target=_blank">Some link</a> (courtesy of Jack mcs to my husband...) Or do we need to figure out some php code...I'll have to look that up in our handy-dandy reference book! Thanks for any assistance you can provide! :blink:
germ Posted June 30, 2007 Posted June 30, 2007 I think you need the "target" in quotes like this: <a target="_blank" href="http://www.somesite.com">Some'>http://www.somesite.com">Some link</a> You can also add "title" and "alt" attributes: <a target="_blank" href="http://www.somesite.com" title="Click here to visit somesite.com" alt="Click here to visit somesite.com">Some link</a> A link structured like this will open up in a new browser window. If you leave out target="_blank" I think it will open up in the existing browser window. You need to be careful where you insert it in your "index.php" file. If it was going between PHP tags (<?php and ?>) it would need to be different. If you insert it in an HTML portion of the "index.php" file, it would be OK. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
germ Posted June 30, 2007 Posted June 30, 2007 I'd like to link a category to an external link, i.e. "Invitations" when clicked, would go directly to another site that I use for previews/ordering/etc, but does not use my OSC site. Do we add the link in the index.php file and if so, where? If we insert this link in another php file, which one? I may have misunderstood the purpose of the link. The code posted will link to another site, but I don't think you can place orders from the external site and have them show up on your osCommerce site. if that's what you mean. And I could be wrong about that. :blush: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
MajesticBridal Posted June 30, 2007 Author Posted June 30, 2007 Thanks a million for the help! As for the orders from another site...I DO NOT want them to show up with osc at all. They are linked through their own database and website, etc. I will try the add-in later this evening... Thanks again! :thumbsup: :thumbsup:
MajesticBridal Posted June 30, 2007 Author Posted June 30, 2007 I'm still confused. Do I add the link on the index.php file? If so, where. The path that I want to replace is currently: http://majesticbridal.com/MBstore/nfoscomm...ex.php?cPath=55. Any suggestions??
germ Posted July 1, 2007 Posted July 1, 2007 OK... If I understand what you want correctly... The link you posted is arrived at by clicking "Invitations" on the main page. So, when they click "Invitations", you want to display a link to an external web site..... Correct? :unsure: You can put HTML "stuff" in product descriptions. One way would be to create a "product" under "Invitations", give it a price of $0.00, and in the "product description" place the HTML link to the external web site. I believe that would work. I'm not very well versed in all the "mods" available, so there may be a more "elegant" method that I am not aware of. If so, hopefully, someone with that knowlege will read this and point you in that direction. :blush: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
MajesticBridal Posted July 3, 2007 Author Posted July 3, 2007 You can put HTML "stuff" in product descriptions. One way would be to create a "product" under "Invitations", give it a price of $0.00, and in the "product description" place the HTML link to the external web site. I believe that would work. I'm not very well versed in all the "mods" available, so there may be a more "elegant" method that I am not aware of. If so, hopefully, someone with that knowlege will read this and point you in that direction. :blush: Um, yeah. It didn't work at all. :( However, I'm still working on it and I'm going to mess around in the php portion instead of the admin via control panel attempt. If anyone has some guidance, I'd greatly appreciate it. Thanks germ!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.