hoverdave Posted January 12, 2009 Share Posted January 12, 2009 I need to add links to my store. Links that would go next to my cart or something that would direct people to other web pages outside of my store. Is there anyone that can show me how to do this or is this even possible?? Thanks Link to comment Share on other sites More sharing options...
FIMBLE Posted January 12, 2009 Share Posted January 12, 2009 yes this is no problems to do, where did you want the links to show? Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions Link to comment Share on other sites More sharing options...
Guest Posted January 12, 2009 Share Posted January 12, 2009 yes you can. I find it easier to use HTML inside of a php file. this table is added to my footer for a tracking service and 4 links to html files. <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td align="center"><b><a href="http://forum.madduckoutdoors.com/phpbb2/index.php">Message Board</a> - <a href="../public_hunting.htm">Public Hunting</a> - <a href="../links.htm">Links</a> - <a href="../developement/index.htm">Products under Development</a></b> <br> <br> <!-- 100 Top Sites Code Start : Do not modify --> <A HREF="http://www.hitsunlimited.com/cgi-bin/100topbirds/100top.cgi?ID=551" target="_blank"> <img SRC="http://www.hitsunlimited.com/cgi-bin/100topbirds/100top.cgi?IDimg=551" BORDER=0 height=28 width=98 alt="image linking to 100 Top Birds and Waterfowl Sites"></A> <!-- 100 Top Sites Code End --></td> </tr> </table> I also made just made a "resource box" which added links and other pages right in php to they view links, articles and other thing right in your store. then they see your store also, not just an html file outside of your store. look here. Visit My link page Link to comment Share on other sites More sharing options...
hoverdave Posted January 12, 2009 Author Share Posted January 12, 2009 I need to add links to my store. Links that would go next to my cart or something that would direct people to other web pages outside of my store. Is there anyone that can show me how to do this or is this even possible?? Thanks I want them to show in the header. Probably to the left of "my account", "Cart Contents". Link to comment Share on other sites More sharing options...
FIMBLE Posted January 12, 2009 Share Posted January 12, 2009 that will be no problem, how many and where you want the links to go to ? Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions Link to comment Share on other sites More sharing options...
Guest Posted January 12, 2009 Share Posted January 12, 2009 I want them to show in the header. Probably to the left of "my account", "Cart Contents". You're not going to fit much in there. How many? You can add GIF's to the header file like they have on the basic setup that mimic those same links. Link to comment Share on other sites More sharing options...
hoverdave Posted January 12, 2009 Author Share Posted January 12, 2009 that will be no problem, how many and where you want the links to go to ?Nic I need to add 7 links to the top. I was going to put them left of the "My Account" link on top. But maybe more to the center.. Link to comment Share on other sites More sharing options...
hoverdave Posted January 12, 2009 Author Share Posted January 12, 2009 You're not going to fit much in there. How many? You can add GIF's to the header file like they have on the basic setup that mimic those same links. How do I do that? Link to comment Share on other sites More sharing options...
hoverdave Posted January 12, 2009 Author Share Posted January 12, 2009 yes you can. I find it easier to use HTML inside of a php file. this table is added to my footer for a tracking service and 4 links to html files. <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td align="center"><b><a href="http://forum.madduckoutdoors.com/phpbb2/index.php">Message Board</a> - <a href="../public_hunting.htm">Public Hunting</a> - <a href="../links.htm">Links</a> - <a href="../developement/index.htm">Products under Development</a></b> <br> <br> <!-- 100 Top Sites Code Start : Do not modify --> <A HREF="http://www.hitsunlimited.com/cgi-bin/100topbirds/100top.cgi?ID=551" target="_blank"> <img SRC="http://www.hitsunlimited.com/cgi-bin/100topbirds/100top.cgi?IDimg=551" BORDER=0 height=28 width=98 alt="image linking to 100 Top Birds and Waterfowl Sites"></A> <!-- 100 Top Sites Code End --></td> </tr> </table> Where would I place this code?? in the index.php??? I also made just made a "resource box" which added links and other pages right in php to they view links, articles and other thing right in your store. then they see your store also, not just an html file outside of your store. look here. Visit My link page Link to comment Share on other sites More sharing options...
Guest Posted January 13, 2009 Share Posted January 13, 2009 You can add it to the english pages to have it on a page Like index or add it to the footer like I did. The header would be above the myaccount area. if you still have the basic head you can see where they added the "my account" gif and replace it with text links. Just save the old file you edit before up upload the new one. One mistake and the entire store will not load. Replace the old file and it will work again. Where you want it depends on what file you edit. Are these link exchanges or link you your sites html pages? Link to comment Share on other sites More sharing options...
hoverdave Posted January 13, 2009 Author Share Posted January 13, 2009 I added the code to the header in the english.php page. It doesn't work but I know i did it wrong. Here's what it looks like. I added the html right on top of the .php. If you could let me know what I did wrong. Thanks // header text in includes/header.php <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td align="center"><b><a href="http://www.bowmandisplays.com/DealerSite/services.html#Photo">Photography</a> - <a href="">Public Hunting</a> <br> <br> <!-- 100 Top Sites Code Start : Do not modify --> <!-- 100 Top Sites Code End --></td> </tr> </table> define('HEADER_TITLE_CREATE_ACCOUNT', 'Create an Account'); define('HEADER_TITLE_MY_ACCOUNT', 'My Account'); define('HEADER_TITLE_CART_CONTENTS', 'Cart Contents'); define('HEADER_TITLE_CHECKOUT', 'Checkout'); define('HEADER_TITLE_TOP', ''); define('HEADER_TITLE_CATALOG', 'Catalog'); define('HEADER_TITLE_LOGOFF', 'Log Off'); define('HEADER_TITLE_LOGIN', 'Log In'); Link to comment Share on other sites More sharing options...
hoverdave Posted January 13, 2009 Author Share Posted January 13, 2009 that will be no problem, how many and where you want the links to go to ?Nic Hey Nic do you have any answers to my question?? Link to comment Share on other sites More sharing options...
Guest Posted January 13, 2009 Share Posted January 13, 2009 I added the code to the header in the english.php page. It doesn't work but I know i did it wrong.... you need to add it to the catalog/includes/lang/english/index.php insert it in this area after what I showed. I find it easier to use tables, but that is how I like to do html also. define('TEXT_MAIN', ' Warning: All text under the header name on the center page is on that file. engilsh.php under lanuage defines box and header name and names for box links Link to comment Share on other sites More sharing options...
hoverdave Posted January 13, 2009 Author Share Posted January 13, 2009 I added this code to my includes/languages/english/index.php but it still isnt working. Check it out and make sure I have it right. define('TEXT_MAIN', '<table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td align="center"><b><a href="http://www.bowmandisplays.com/DealerSite/services.html#Photo">Photography</a> </td> </tr> </table>'); Link to comment Share on other sites More sharing options...
Guest Posted January 13, 2009 Share Posted January 13, 2009 What is your site? The is no closing tag for BOLD, install </b> such as <td align="center"><b><a href="http://www.bowmandisplays.com/DealerSite/services.html#Photo">Photography</a>[</b> not sure why. The link or the page is not working? Did you delete anything else? Link to comment Share on other sites More sharing options...
Guest Posted January 13, 2009 Share Posted January 13, 2009 Are you bowmandesign? I don't see a store. Link to comment Share on other sites More sharing options...
hoverdave Posted January 13, 2009 Author Share Posted January 13, 2009 http://www.bowmandisplays.com/DealerSite/c...ex.php?cPath=22 this is the store but i think there is security code to access so I dont think you will be able to get in. Link to comment Share on other sites More sharing options...
hoverdave Posted January 13, 2009 Author Share Posted January 13, 2009 here is how it looks exactly in my index.php. remember its in the includes/languages/english/index.php let me know if it looks right. <?php /* $Id: index.php 1739 2007-12-20 00:52:16Z hpdl $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2007 osCommerce Released under the GNU General Public License */ define('TEXT_MAIN',''); define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s'); define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products'); define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected'); define('TEXT_MAIN', '<table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td align="center"><b><a href="http://www.bowmandisplays.com/DealerSite/services.html#Photo">Photography</a></b> </td> </tr> </table>'); if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) { define('HEADING_TITLE', ''); define('TABLE_HEADING_IMAGE', ''); define('TABLE_HEADING_MODEL', 'Model'); define('TABLE_HEADING_PRODUCTS', 'Product Name'); define('TABLE_HEADING_MANUFACTURER', 'Manufacturer'); define('TABLE_HEADING_QUANTITY', 'Quantity'); define('TABLE_HEADING_PRICE', 'Price'); define('TABLE_HEADING_WEIGHT', 'Weight'); define('TABLE_HEADING_BUY_NOW', 'Buy Now'); define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.'); define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.'); define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: '); define('TEXT_SHOW', '<b>Show:</b>'); define('TEXT_BUY', 'Buy 1 \''); define('TEXT_NOW', '\' now'); define('TEXT_ALL_CATEGORIES', 'All Categories'); define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers'); } elseif ($category_depth == 'Top') { define('HEADING_TITLE', ''); } elseif ($category_depth == 'nested') { define('HEADING_TITLE', ''); } ?> Link to comment Share on other sites More sharing options...
Guest Posted January 13, 2009 Share Posted January 13, 2009 Your index is password protected. Is you admin in the same folder?? I have never seen a store with password protection on the main page. You must have edited that page. It's missing a lot of code like footers, columns. your past me on this. You may need to upload a new index.php file and edit again. Did you back it up? I make a new folder for changes and copy files over into there to be changed. make the changes and upload those files and test it all. if the site crashes I just have to upload the old file in the original folder to make the store work. Link to comment Share on other sites More sharing options...
hoverdave Posted January 13, 2009 Author Share Posted January 13, 2009 Is there any way you can copy and paste the code you have for your page that has the links on it. Just copy and paste it in so i can view it and see exactly how you have it. It would really help me out. Thanks dave Link to comment Share on other sites More sharing options...
Guest Posted January 14, 2009 Share Posted January 14, 2009 Is there any way you can copy and paste the code you have for your page that has the links on it. Just copy and paste it in so i can view it and see exactly how you have it. It would really help me out. Thanks dave You can make a bunch of new files: to do this and it's very confusing if you are just starting php. You might be better to add a new page later and just add your links on an existing page for now. If you want to add a new page here you go and back everything you plan to change up first!!!!! That way when it goes wrong you can just re upload them, but if the links page fails for a while, so what. 1st catalog/includes/filenames.php add this to the file define('FILENAME_LINKS', 'links.php'); 2nd catalog/shipping.php or a similar file. Copy it and rename it links.php. Edit all the shipping.php to links.php 3rd catalog/includes/languages/english.php add this to the information box unde this area // information box text in includes/boxes/information.php Add this define('BOX_INFORMATION_LINKS', 'Links'); 4th catalog/includes/languages/english/ coppy the shipping.php file and rename it links.php Edit this page with your links Make sure you never use ' on any page in english or it will fail to load. There are others and I just can not remember them right now. 5th catalog/includes/boxes/information.php edit this to say $info_box_contents = array(); $info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' . '<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a> [MAD DUCK WROTE]add this ------------->>> '<a href="' . tep_href_link(FILENAME_LINKS) . '">' . BOX_INFORMATION_LINKS . '</a>'); Now, I think I got it all down for you. You need all this to add one link and one page. This is why you need to keep all you base file as backups so you can reload them when you screw up, and you will, believe me. I am still screwing it up. :blush: That is how you add a page. Link to comment Share on other sites More sharing options...
Guest Posted January 14, 2009 Share Posted January 14, 2009 This is the total code for the table added on my links page <table style="width: 650px"> <tr> <td style="width: 631px; text-align: center; background-color: gainsboro;"><span style="font-size: 16pt"><b>General Links</b></span> </td> </tr <tr> <td style="width: 631px; text-align: center;"><a href="http://www.wudyaget.com"><img border="0" src="http://www.wudyaget.com/assets/images/468x60_standard.jpg" width="468" height="60"></a> </td> </tr> <tr> <td style="width: 631px; text-align: center;"><a href="http://www.teamflyers.com/" target="_blank"><img src="http://www.teamflyers.com/ducksign.png" alt="Visit Team Flyers Outdoor Productions" border=0 width=200 height=180></a> <br><br></td> </tr> <tr> <td style="width: 631px; text-align: center;"><a href="http://www.huntingworldtop100.com" target="_blank"><b>The Hunting Directory</b></a><br> Hunting place, hunting lodges and hunting animals information <br><br></td> </tr> <tr> <td style="width: 631px; text-align: center; background-color: gainsboro;"><span style="font-size: 16pt"><b>Manufacturers</b></span> </td> </tr> <tr> <td style="width: 631px; text-align: center;"><a href="http://www.avalanchedecoys.com/"><span style="font-size: 12pt; text-decoration: underline"></span><img border="0" src="http://www.madduckoutdoors.com/Images/Linkpics/Avalanche_Decoys.JPG" style="font-weight: bold" alt="Visit Avalanche Decoys" /></a> <a href="http://www.crawdadmotors.com"><img alt="Visit Crawdad Motors" border="0" src="http://www.crawdadmotors.com/logo.jpg" style="width: 233px; height: 152px" /></a> </td> </tr> <tr> <td style="width: 631px; text-align: center;"><a href="http://scavengerbackwater.com"><img src="http://scavengerbackwater.com/pic/smallbanner.jpg" border=0 alt="Visit Scavenger Backwater Motors"></a> <br><br></td> </tr <tr> <td style="width: 631px; text-align: center; background-color: gainsboro;"><span style="font-size: 16pt"><b>Guides & Outfitters</b></span> </td> </tr> <tr> <td style="width: 631px; text-align: center;"><a href="http://www.prairieoutdoors.com"><img border="0" src="http://www.prairieoutdoors.com/outdoors/images/pologo2004small.gif" width="150" height="125" alt="PrairieOutdoors.com, hunting fishing and camping in Alberta Saskatchewan and Manitoba"></a> <a href="http://www.littleriverpheasanthunts.com/" target="_blank"><img src="http://www.littleriverpheasanthunts.com/miniLOG.gif" alt="Visit Little River Pheasant Hunts" border=0 width=245 height=112></a> <a href="http://www.onlineguidefinder.com"><img src="http://www.onlineguidefinder.com/Logos/OGF6_33.gif" width="195" height="145" border="0"></a> </td> </tr> <tr> <td style="width: 631px; text-align: center;"><a href="http://goosehavencanada.com/" target="_blank"><img src=" http://goosehavencanada.com//Links/linkbanner.jpg " alt="Goose haven Outfitters" border=0 width=402 height=60></a> </td> </tr> <tr> <td style="width: 631px; text-align: center;"><a href="http://nomadkennels.com/" target="_blank"><img src="http://www.madduckoutdoors.com/Images/Linkbanners/nomad.gif" alt="Nomad Kennals and Outfitters" border=0 width=468 height=60></a> <br><br></td> </tr> <tr> <td style="width: 631px; text-align: center;">Get your Code here!!!!! </td> </tr> <tr> <td style="width: 631px; text-align: center; background-color: teal;"><span style="font-size: 24pt"><b>Trade Links with us</b></span> </td> </tr> <tr> <td style="width: 631px; text-align: center;">Choose one of the below codes to paste into your website to trade links with us. Send us your code to put on this page. If you do not have a code contact usand we will help you write one. <br><br></td> </tr> <tr> <td style="width: 631px; text-align: center;"><img src="http://www.madduckoutdoors.com/Images/MadDuck_logo_Small.jpg" /><br /> <strong>Copy the text below to use this image.</strong><center> <span class="text"><span style="font-size: 14px; line-height: 17px"><a href="http://www.madduckoutdoors.com/" target="_blank"><?xml namespace="" ns="urn:schemas-microsoft-com:office:office" prefix="o" ?> <o:p></o:p><p class="MsoNormal" style="margin: 0in 0in 0pt"> <span class="text"><span style="font-size: 10.5pt"><img src="http://www.madduckoutdoors.com/images/MadDuck_logo_Small.jpg"<br> alt="Visit Mad Duck Outdoors" border=0 width=211 height=199></a> </span></span> <br><br></td> </tr> <tr> <td style="width: 631px; text-align: center;"><img src="http://www.madduckoutdoors.com/images/banner.jpg" /><br /> <strong>Copy the text below to use this image.</strong><center> <span class="text"><span style="font-size: 14px; line-height: 17px"><a href="http://www.madduckoutdoors.com/" target="_blank"><?xml namespace="" ns="urn:schemas-microsoft-com:office:office" prefix="o" ?><o:p></o:p><p class="MsoNormal" style="margin: 0in 0in 0pt"> <span class="text"><span style="font-size: 10.5pt"><img src="http://www.madduckoutdoors.com/images/banner.jpg"<br> alt="Visit Mad Duck Outdoors" border=0 width=468 height=60></a> </span></span> </td> </tr> </table> Link to comment Share on other sites More sharing options...
Guest Posted January 14, 2009 Share Posted January 14, 2009 this is more like what you need to add in your 'text' section. this will give you 5 section to work with. vary the number of <br> to make the spaces between codes what you want. More is wider and none is tight together. <table style="width: 650px"> <tr> <td style="width: 631px; text-align: center;">Add your Code here!!!!! <br><br></td> </tr> <tr> <td style="width: 631px; text-align: center;">Add your Code here!!!!! <br><br></td> </tr> <tr> <td style="width: 631px; text-align: center;">Add your Code here!!!!! <br><br></td> </tr> <tr> <td style="width: 631px; text-align: center;">Add your Code here!!!!! <br><br></td> </tr> <tr> <td style="width: 631px; text-align: center;">Add your Code here!!!!! <br><br></td> </tr> </table> Link to comment Share on other sites More sharing options...
Guest Posted January 14, 2009 Share Posted January 14, 2009 I have added links to HTML pages I created myself with Kompozer. I put the links in my column_left.php file. I just used my site background and header, then added the info I wanted. Of course, some of my backgrounds aren't showing up on the outside pages, but that's my fault, not the fault of using Kompozer to accomplish this. I just haven't gone back and fixed them. It's really easy and no php code hacking. You can add those links virtually anywhere you wish. You can see how I did this on my main page here: http://www.clearcreekscraps.com. Of course, if you do it in your column left or column right, they are going to show up on every page. If you just want it to correspond with each item, in your catalog when you enter your product description, there is a place for the product's URL. You can do the same thing there. Create your doc in Kompozer, save it, publish it and then add the link to that page. Hope this helps some. Chelle Link to comment Share on other sites More sharing options...
Guest Posted January 14, 2009 Share Posted January 14, 2009 How, or where, did you add them to the column. I tried to enter paypal verified into the right column and it make the file not load. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.