Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

continue shopping button


blr044

Recommended Posts

Posted

I am really sorry about this, but am pulling my hair out.

 

After product has been added to shopping cart, the continue shopping button does not do what i want to to. I have edit my script in shopping_cart.php over with dozen or so which I grabbed from this forum and others by looking through google search.

 

Version I am running at this location is osCommerce 2.2-MS2

 

Here is the script at present time:

 

<?php
   $back = sizeof($navigation->path)-2;
   if (isset($navigation->path[$back])) {
?>
             <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><?php
   }
?>

 

Also I have tried this:

<td class="main"><?php 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>'; ?></td>

I have tried changing the path using 1 - 2 - and 3

 

Using ( 1 ) takes me a blank add product page

Using ( 2 ) takes me back to shopping page again

Using ( 3 ) there is no continue shopping button.

 

Even settings in admin for display cart is set at true

 

I would like it so one can go back to product listing from where on came from.

 

So if there is a solution out there, i would appreciate hearing you.

 

My site is located here.

 

Thank you.

 

blr044

Posted

Maybe this code:

 

				<td class="main"><?php 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>'; ?></td>

In place of:

 

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

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 >

Posted
Maybe this code:

 

				<td class="main"><?php 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>'; ?></td>

In place of:

 

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

 

 

Sorry, but that did not help. In fact changing path number: 2 and 3 there is no continue button and when set at 1, it points back to shopping cart.

 

blr044

Posted

It must have something to do with one of the MOD's you've installed.

 

I have the exact code I posted, and it takes me back from whence I came...

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

Posted

I did a compare of the two files. My present shopping_cart.php and from a fresh osCommerce 2.2-MS2 061807 without any mods.

 

The only difference is where I added mad to adjust left and right column and this text was added to header:

 

<meta name="robots" content="noindex,nofollow">

<meta name="Description" content="Put your description here - match it to what is on the page">

<meta name="Keywords" content="Put your keywords here - match to keywords on the page">

<meta name="Author" content="Put Copyright notice here">

Posted

I was thinking more along the lines of the STS or SEO URLS ( I can't tell them apart :blush: )

 

All your links are "blah blah.html" instead of "filename.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 >

Posted

I did install the friendly url back earlier part of the year. I guess I might have look at some of my older backups or remove friendly url to see if that's the problem. Really hate to have to that!

 

blr044

Posted

You might look thru the support thread for the one you installed.

 

It might have something to offer.

:unsure:

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 >

  • 2 weeks later...
Posted
Maybe this code:

 

				<td class="main"><?php 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>'; ?></td>

In place of:

 

Hi,

I would like to send the person back to the category and not page/ product they had added to their shopping cart.

 

Would I insert 'category' instead of page? or is it something more complex?

 

thanks

Posted

I think to go back that far, a small change a little sooner in the code.

 

Try changing this:

 

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

to:

 

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

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 >

Archived

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

×
×
  • Create New...