Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

HELP! Buy now buttons all have same prod_id after continue shopping pressed


knott

Recommended Posts

Posted

Hi,

 

 

found a problem where if you add an item to your basket, then click continue shopping it returns to the list of products you were last viewing, fine....

 

but if you try and order one, it adds the same item you have already put in your cart. I've looked at the buttons and they all end up with the same products_id value.

 

any clues where I need to start looking?

 

Thank you.

Posted

UPDATE:-

 

This only occurs when the first item added to the cart has no attributes. Tested on 4 installs so far and found all have the same bug.

Posted

UPDATE:- Tested on a clean install and no problems so it must be one of the contribs installed...

 

ultimate seo urls

header tags

 

(can't see it being either of these 2 as loads of people use them & nothing reported)

 

discount coupons

 

 

the error seems to originate from

shopping_cart.php

 

as the continue shopping button contains the url http://mydomain.co.uk/catalogue/lights-c-1...products_id=205

 

 

(products_id=205 would be the id of the product that was last ordered & it makes all the buy now buttons in the category it returns to have that id)

  • 6 months later...
Posted

Months later and I've still not fixed this properly....

 

It is something to do with...

 

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

 

so for now I found a sort of fix from another post...

 

<?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.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td>
<?php
   //}
?>

 

but that just goes back to the home page.

 

It would seem that the error is being caused in functions/navigation history

But I'm not really sure how.

 

Can anyone help?

Archived

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

×
×
  • Create New...