jdelgado Posted June 9, 2003 Posted June 9, 2003 Hi, I've seen some nice OSC websites with personalised user interfaces on their header.php but I don't really know how I have to code mine. I paste below a link to the GIF file that contains all the buttons that I want to use. It's in spanish but I give you a translation below this words. (Of course I also have all the buttons cut with Fireworks but I guess it is easier to show it to you in just one GIF file). All I need to know is how I must code the link for the different button so they you'll take my visitors to the right pages without lossing track of the session ID or the cart content The buttons, from left to right, in the GIF file are: - Default (when they click on the Logo) - Best Sellers - New Products - Gallery (it's a category inside my products) - Products on Sale - Ayuda(Help / information page) - Contactar (Contact form) - Banner (loaded from the banner admin) - Mi Cuenta (My account) - Ir a Caja (Checkout) (Below those buttons comes a brown line that has on the left side the words "Catalog >> New Products" and on the right a gif showing the telephone number of my company. I don't need help for this line cause I already learned how to make the right links.) Here is the link to the GIF that I'm talking about: http://www.railowsky.com/tienda/header_test.gif Note: Remember that what I need is the code for every button or a link where someone has explained how to do this easily. If there is a Contribution that makes this easily I would appreciate to know about it too. An example where someone has done the same would be of much help. If you want to see how my website is looking right now visit: http://www.railowsky.com/tienda/ THANKS IN ADVANCE! Jose Delgado - - - - - - - - - - - - "I wish I were smart enough so I could end all my posts with one of those famous and brillant phrases!" J. Delgado, amateur philosopher (2003)
Midnght Posted June 9, 2003 Posted June 9, 2003 Well if you tell me where i can add my own header like you did I'll certainly figure out your request it's not hard i'm sure just have to look at the navbar code then utilize the same values for your images. But As I am new to this cart I have no clue where to even modify my header let alone find he navbar php file. If you help me out i'll share my knowledge. As I am quite used to modifying phpbb already modifying this cart won't be hard either it's just a matter of figuring out where the hell everything is at without any documentation.
Guest Posted June 9, 2003 Posted June 9, 2003 The header is in catalog/includes/header.php & the navbar is contained within that. documentation - http://wiki.oscommerce.com further help - http://www.oscommerce.com/forums/search.php jdelgado, having looked at your image, would it not be easier to break the image into separate buttons & put them in a table to control the layout?[/url]
jdelgado Posted June 9, 2003 Author Posted June 9, 2003 Hi my blonde Power Puff Girl friend! Is it Butter cup? Is it Bubbles? Or is that the other one that I never remember the name? :lol: Anyway, thanks for your info Lydia. I'll take it a look to those info pages in a moment. But from your question I guess I didn't explain myself well, so I'll try to put it clear in case someone else wants to give me a hand on this: YES, I DO have that image perfectly cut and prepared to be used as separate buttons inside a beautiful Table (layout) that I've coded using Adobe Fireworks. It's all coded as a Table without links so I needed to know how to integrate in that table the right links to the images (buttons). Some are easy (like the link to default.php) but others aren't so obvious as for instance those that come with OSC by default as text links and that I want now as image links (My Account, Checkout) or those "new" ones that OSC don't have and that I want to create as the one to "Gallery" which is just a concrete category inside my products list for instance. Get what I mean? Thanks again, Jose Delgado - - - - - - - - - - - - "I wish I were smart enough so I could end all my posts with one of those famous and brillant phrases!" J. Delgado, amateur philosopher (2003)
Guest Posted June 9, 2003 Posted June 9, 2003 tis Bubbles :D Now I understand! I thought you were wanting to do an image map or something advanced like that! Each cell of your table should look something like <td><a href="link here"><img src="image.jpg"></a></td> for the links like logoff, my account etc you should just use <a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"> in place of the regular link. bfn :D
jdelgado Posted June 9, 2003 Author Posted June 9, 2003 I gotta say that I preffer the one with brown hair but your are cute too Bubbles! :lol: Ok, I've seen that you now got what I meant... but I forgot to say that I'm such a dummy when it comes to php so I really need a step-by-step explanation, like a detailed list of the right link for every single button that I told you. I don't want to disturb you or take much of your time, that's why I asked for a link to some "How To" page or so ... but I must say that I couldn't find what I was looking for at the Wiki pages nor at the OSC Forums. :cry: But I've seen headers like mine in many OSC websites so I'm sure many of you out there know how to make this, right? Please, give me a hand on this guys and gals ... no matter if you're blonde or redheaded!! :P Any thought, comment, idea, suggestion or advice will be wellcome! :wink: Regards! Jose Delgado - - - - - - - - - - - - "I wish I were smart enough so I could end all my posts with one of those famous and brillant phrases!" J. Delgado, amateur philosopher (2003)
Midnght Posted June 9, 2003 Posted June 9, 2003 Well some of the links you seek are here. <td class="headerNavigation"> <?php echo $breadcrumb->trail(' » '); ?></td> <td align="right" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a> | <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a> | <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a> | <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a> </td> This is a snippit form the header.php file Bubbles suggested. This on a normal oscommerce cart is the right hand side of the cart containing My Account | Cart Contents | Checkout So you will want to utilize this code fro those buttons. What other buttons do you have?
jdelgado Posted June 9, 2003 Author Posted June 9, 2003 Thanks Michael! The other ones I wnat are the following: - Best Sellers - New Products (link to products_new.php) - Gallery (that it's a specific category inside my products categories, actually is cPath=24) - Products on Sale (link to specials.php) - Help (it will be an information page with links to conditions, privacy and shipping.php) - Contact (so its a link to contact_us.php) That's all I think. All will be links used for image buttons and don't forget that I must keep track of the session ID (that's the main thing I don't know how to code). Thanks in advance for your time and patience! Regards, Jose Delgado - - - - - - - - - - - - "I wish I were smart enough so I could end all my posts with one of those famous and brillant phrases!" J. Delgado, amateur philosopher (2003)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.