View Single Post
  #1  
Old 04-26-2012, 03:31 PM
 
mcpilot mcpilot is offline
 

Advanced Member
  
Join Date: Dec 2004
Location: Cincinnati
Posts: 68
 

Default Return to same place on page after delete

If you are reading a news website like www.msnbc.com and click a story then click "back", it takes you back to the same place on the page you were before, even if you were scrolled halfway down the page.

I would like my customer cart to work the same way. So in other words, customer has 30 items in the cart and scrolled all th way down and deletes #27, I would like to the cart refresh to return him back to that same spot on teh page,.

Currently, the section of cart.php that is making this happen is here:


func_header_location("cart.php");

where after delete, it just returns the customer to his cart, at the top of the page. Is it possible to modify the func_header_location("cart.php"); in some way to be a "back' function instead of a refresh?

Any hints would be very much appreciated. X-Cart 4.1.8 for the purposes of this discussion
__________________
thebookfarminc.com
Version 4.7.0
Reply With Quote