Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Add multiple products to cart

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #51  
Old 02-10-2007, 09:37 PM
  supervillainess's Avatar 
supervillainess supervillainess is offline
 

Member
  
Join Date: Dec 2004
Location: Nashville
Posts: 11
 

Default Re: Add multiple products to cart

Quote:
Originally Posted by seth@lowel.com
Hope someone still reads this thread. If you saw above i implemented the add all to cart, i am using 4.0.18.
I also added an add to cart button above the products list. I was so happy with the mod, till i i checked in IE. Doesnt add to the cart, and redirects to homepage.

In Firefox works perfectly redirect to cart showing all the additions.

Any ideas anyone


-

Hi Seth!

Was having this same problem - it's related to the submit button fix posted earlier in the thread: http://forum.x-cart.com/showpost.php?p=67357&postcount=34 That fixes it. Internet Explorer seems to be a little touchier about handling javascript than Firefox.
__________________
Version 4.1.8
Reply With Quote
  #52  
Old 03-09-2007, 08:06 AM
 
pdheady pdheady is offline
 

Advanced Member
  
Join Date: Mar 2007
Location: West Palm Beach, FL
Posts: 36
 

Default Funkydunk's add multiple items to cart redirect

This is for those folks that don't want to redirect to the cart.php page but want to be taken back to the same page they are on.

When it redirected it did not grab the cat id it was setting it to zero since the cat wasn't being posted, this will fix it. Make sure the back office admin redirect to cart is not selected. I am working on a little pop up that will show a minicart window that will allow you to continue shopping, edit cart, or checkout. I will post it when I get it working.

add_multiple_to_cart.tpl

<form action="add_multiple.php?cat={$cat}&page={$page}" method ="post" name="orderform">
<input type="hidden" name="mode" value="add">

add_multiple.php


#
# Redirect
#

if($mode=="add" and $productid) {
if($config["General"]["redirect_to_cart"]=="Y")
func_header_location("cart.php");
else
func_header_location("home.php?cat=$cat&page=$page ");
}
__________________
Xcart 4.0.19
Reply With Quote
  #53  
Old 03-09-2007, 08:45 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Add multiple products to cart

pdheady I'm moving this to the actual thread that deals with the mod.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 04:37 PM.

   

 
X-Cart forums © 2001-2020