View Single Post
  #18  
Old 01-12-2005, 06:54 AM
 
roccons roccons is offline
 

Member
  
Join Date: Nov 2004
Posts: 16
 

Default

Hi, eliombao
I made the continue shopping implementation based on what I could grabb from your examples.
Instead of using a new $cshopping var I added this line to cart.php:
Code:
$smarty->assign("mode",$mode);
My redirect got like this:
Code:
# # Redirect # if($mode=="add" and $productid) { if($config["General"]["redirect_to_cart"]=="Y") { func_header_location("cart.php?mode=added"); } else { func_header_location("home.php?cat=$cat&page=$page"); } }
In cart.tpl, I added this lines
And, of course, I created the buttons/continue_shopping.tpl file.
It worked nice but I encountered that when you updated the shopping cart (changed quantity or deleted an item) the historyback-2 is not what you as a customer would expect.
So, I tried using a $mode=updated for that cases when you updated your cart after you added a product. It used an historyback-3. It worked great in IE, because one or several reloads of a page is registered in its history as one step, but it doesn't work the same way in Opera.
My next attempt was trying to carry the $cat var to remember the category you were on instead of using the history method, but I faced new problems.
What would you suggest to me?
Should I just dissapear the continue shopping button when you have updated the shopping cart?
Or should I use the historyback-3 solution without worrying about the rather minor Opera (and I guess mozilla) issue?
Or is there a more or less easy way to use something like
Code:
func_header_location("home.php?cat=$cat")
for the continue shopping instead of the history steps?
Any ideas or suggestions are welcome.
__________________
x-cart 3.5.12 (Unix)
Reply With Quote