knott Posted December 3, 2007 Posted December 3, 2007 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.
knott Posted December 3, 2007 Author Posted December 3, 2007 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.
knott Posted December 3, 2007 Author Posted December 3, 2007 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)
knott Posted December 4, 2007 Author Posted December 4, 2007 Day 2 - still not managed to work out what's going on... please can someone help
knott Posted June 14, 2008 Author Posted June 14, 2008 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?
Jan Zonjee Posted June 14, 2008 Posted June 14, 2008 It would seem that the error is being caused in functions/navigation history Are you sure it is not a combination of this bug in product_listing.php and SEO url's?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.