Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Continue Button on Shipping Page


Guest

Recommended Posts

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...

 

button2.jpg

 

button1.jpg

Link to comment
Share on other sites

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

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

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

the conditions page says nothing about it

It does here:

 

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

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

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

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

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

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

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

Archived

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

×
×
  • Create New...