Guest Posted February 11, 2009 Share Posted February 11, 2009 I changed the buttons on my site but for some reason the continue button to return to the home page on the Shipping page, Privacy page, and Conditions page have not changed. On the contact us page it has been updated to the new button. I have been trying to figure it out for awhile but I can't seem to find what controls it. Here are some pictures of what I mean... Link to comment Share on other sites More sharing options...
Guest Posted February 18, 2009 Share Posted February 18, 2009 can anyone help with this? this is also happening to my "buy now" buttons Link to comment Share on other sites More sharing options...
Guest Posted February 20, 2009 Share Posted February 20, 2009 anyone??? Link to comment Share on other sites More sharing options...
germ Posted February 20, 2009 Share Posted February 20, 2009 The continue button on the conditions page doesn't use an image: <div class="cssButton"> Continue </div> (from the HTML source of your site) I suspect this is the same for the other pages where the buttons haven't changed as well. :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 > Link to comment Share on other sites More sharing options...
Guest Posted February 20, 2009 Share Posted February 20, 2009 how would I go about changing it so that it does use an image? Link to comment Share on other sites More sharing options...
germ Posted February 20, 2009 Share Posted February 20, 2009 This is "stock" osC code for that area of the conditions page: <?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?> 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 > Link to comment Share on other sites More sharing options...
Guest Posted February 20, 2009 Share Posted February 20, 2009 what file do I need to go to to edit that? the conditions page says nothing about it. When you click on a category and it brings up all the products, the buy now button is the same way. The change address button on the checkout_shipping.php page is the same way. When I went to that page to edit it, there's nothing about the button there either. Link to comment Share on other sites More sharing options...
germ Posted February 20, 2009 Share Posted February 20, 2009 the conditions page says nothing about it It does here: http://www.yoursite.com/catalog/conditions.php So either you're looking in the wrong file or just don't recognize the existing code you need to change. :blush: The code I posted would be something close to what you code needs to be to use an image. Since the code you have now is "non-standard code" I have no clue what the existing code looks like. :huh: 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 > Link to comment Share on other sites More sharing options...
Guest Posted February 20, 2009 Share Posted February 20, 2009 ok now I'm really lost. I actually was on the wrong page originally but when I went to the catalog/conditions.php page I did a find for the the "stock" code and it was an exact match to what is in that file for my site. :( Link to comment Share on other sites More sharing options...
germ Posted February 20, 2009 Share Posted February 20, 2009 If you're using STS then the file you need to edit would be somewhere else. 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 > Link to comment Share on other sites More sharing options...
Guest Posted February 20, 2009 Share Posted February 20, 2009 I am using the Basic Design Pack contribution (http://www.oscommerce.com/community/contributions,3570) I never had a problem with the buttons before now though Link to comment Share on other sites More sharing options...
germ Posted February 20, 2009 Share Posted February 20, 2009 I didn't make the soup, I can only tell you what's in it (from looking at the HTML source). :blink: 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 > Link to comment Share on other sites More sharing options...
Guest Posted February 20, 2009 Share Posted February 20, 2009 yeah I understand. Sometimes I wish I had just paid someone to build it for me haha. Link to comment Share on other sites More sharing options...
germ Posted February 20, 2009 Share Posted February 20, 2009 I think you hit the proverbial nail on the head! :lol: I downloaded the latest version of basic design pack and it looks like it's coded to NOT USE IMAGES FOR BUTTONS. It uses this in the stylesheet: .cssButton { background: #f0f0ff; color: #000080; height: 20px; vertical-align: top; font-weight: normal; font-family: Tahoma, Verdana, Arial, sans-serif; font-size: 12px; cursor: pointer; text-align: center; text-decoration: none; border: 1px; border-style: solid; border-color: #000080; border-spacing: 1px; line-height: 22px; } Although that piece of code is lacking in your stylesheet (for better or for worse). :( 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 > Link to comment Share on other sites More sharing options...
Guest Posted February 20, 2009 Share Posted February 20, 2009 yeah, I got rid of that part of it a few months ago to use a nicer button. I'm going to do some experimentation and add it back in to see what happens. Link to comment Share on other sites More sharing options...
Guest Posted February 20, 2009 Share Posted February 20, 2009 I don't really understand why half of my buttons don't work. Half of them do, half of them don't. I give up. :huh: Link to comment Share on other sites More sharing options...
germ Posted February 21, 2009 Share Posted February 21, 2009 So what version of osC do you have? :unsure: I was looking at the basic design pack contrib code and it alters the code that displays the buttons. The button code in it looks like this: //// // Output a function button in the selected language // BEGIN: CSS Buttons Everywhere function tep_image_button($image, $value = '-AltValue-', $parameters = '') { global $language; $width = round((strlen($value) * 5.8),0) + 38; $image = '<div class="cssButton" style="width: '.$width.'px;"> ' . tep_output_string($value) . ' </div>'; return $image; } // END: CSS Buttons Everywhere Whereas "standard" osC is: //// // Output a function button in the selected language function tep_image_button($image, $alt = '', $parameters = '') { global $language; return tep_image(DIR_WS_LANGUAGES . $language . '/images/buttons/' . $image, $alt, '', '', $parameters); } (Code from osC 2.2RC2A, source file: /includes/functions/html_output.php) 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 > Link to comment Share on other sites More sharing options...
Guest Posted February 25, 2009 Share Posted February 25, 2009 I was busy with some other things and didn't get on here but I just saw your post and changed that... problem solved! THANK YOU!!!!!!!!!!!!!!!!!!! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.