Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Button Reference


7tooz

Recommended Posts

Posted

When I hover over my shopping cart's "Continue Shopping" button is shows the URL of my site + /products_new.php. Where is that defined? I want to change to /index.php instead.

 

Thanks,

 

Kurt

Posted

If its still standard code then its a navigation snapshot, and ahould show the previous page where you came from.

IF you do want to change it then the code is to be found within the actual page the continue ahopping button appears on, also there are some entired for it in yout catalog / application_top.php

Nic

Sometimes you're the dog and sometimes the lamp post

[/url]

My Contributions

Posted

Fimble -

 

 

I appreciate your response back.

 

On my site - you can "add to cart" right from the index page. I did notice that when you hover over the add to cart link it does show the products_new.php so the code is acting according to what you stated.

 

This is the piece from shopping_cart.php that is causing it (I think):

 

$back = sizeof($navigation->path)-2;

if (isset($navigation->path[$back])) {

echo '<a href="' . tep_href_link($navigation->path[$back]['page'], tep_array_to_string($navigation->path[$back]['get'], array('action')), $navigation->path[$back]['mode']) . '">' . tep_image_button('button_continue_shopping.gif', IMAGE_BUTTON_CONTINUE_SHOPPING) . '</a>';

}

 

Is there a way I can change it to go to index.php instead?

 

Thanks,

 

7tooz

Posted

Sure, delete that code from your shopping cart.php and replace it with

<td class="main"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue_shopping.gif', IMAGE_BUTTON_CONTINUE_SHOPPING) . '</a>'; ?></td>

 

This will make it go to the index page every time

Nic

Sometimes you're the dog and sometimes the lamp post

[/url]

My Contributions

Posted

Fimble -

 

I appreciate your response and time. Thanks for the help.

 

Does FILENAME_DEFAULT mean index.php page

 

Thanks,

 

7tooz

Posted

Fimble -

 

I appreciate your response and time. Thanks for the help.

 

Does FILENAME_DEFAULT mean index.php page

 

Thanks,

 

7tooz

 

Yes thats right

Nic

Sometimes you're the dog and sometimes the lamp post

[/url]

My Contributions

Archived

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

×
×
  • Create New...