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

add to cart button help

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-15-2006, 05:21 AM
 
lootsale lootsale is offline
 

Member
  
Join Date: Sep 2006
Posts: 24
 

Default add to cart button help

hi guys,

could you tell me that how can i change the link on add to buy button so it would keep me to the same page when i click on add to cart button. it takes me to the basket page which i dont want becuase i have mini basket which appears once you click on add to basket.

you may view the website at www.lootsale.co.uk

Kind Regards,
__________________
iddiboy..
lootsale.co.uk..
x-cart 4.1.3..
Reply With Quote
  #2  
Old 10-15-2006, 05:33 AM
 
balinor balinor is offline
 

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

Default Re: add to cart button help

General Settings/Redirect customer to cart. Uncheck it.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 10-15-2006, 03:38 PM
 
lootsale lootsale is offline
 

Member
  
Join Date: Sep 2006
Posts: 24
 

Default Re: add to cart button help

nice, fanx..
__________________
iddiboy..
lootsale.co.uk..
x-cart 4.1.3..
Reply With Quote
  #4  
Old 02-08-2007, 06:16 AM
 
digitalchild digitalchild is offline
 

Newbie
  
Join Date: Jan 2007
Posts: 7
 

Default Re: add to cart button help

I was looking for the exact same thing, so thanks
__________________
look a bird!
www.outofinkandtoner.com.au
X-Cart version 4.1.3
Reply With Quote
  #5  
Old 06-26-2007, 09:09 PM
 
dub713 dub713 is offline
 

Advanced Member
  
Join Date: May 2007
Posts: 56
 

Default Re: add to cart button help

that checkmark to not redirect is great, but i've just learned that is does not apply when you're in a wishlist and you click add to cart.

in wlbuttons.tpl this is the code...



<td class="ButtonsRow">{include file="buttons/add_to_cart.tpl" href="cart.php?mode=wl2cart&wlitem=`$wlitem_data.w ishlistid`"}</td>

<td class="ButtonsRow">{include file="buttons/add_to_cart.tpl" href="cart.php?mode=wl2cart&fwlitem=`$wlitem_data. wishlistid`&eventid=`$eventid`"}</td>


how would you get the add to cart action to take place, but stay in the wishlist? i've tried messing with the urls, and i can get it to stay put, but i cannot get it to add the item.


***EDIT... i just found this... the call or action is wl2cart. so, go to wishlist.php and this appears to be the chunk of code that controls the action. anyone have any idea how to modify it to not redirect to the cart? or would we not even need to touch the php, and it can be done in the tpl's?

Code:
# # Add to cart product from wish list # if (!empty($eventid)) { $wishlistid = $fwlitem; $login_cond = "event_id='$eventid' AND wishlistid='$fwlitem'"; $wlid = func_query_first_cell("SELECT login FROM $sql_tbl[wishlist] WHERE $login_cond"); $wlid = md5($wlid); $wlid_eventid = $eventid; } else { if ($wlitem) { $wishlistid = $wlitem; $login_cond = "login='$login' AND wishlistid='$wlitem'"; } else { $wishlistid = $fwlitem; $login_cond = "MD5(login)='$wlid' AND wishlistid='$fwlitem'"; } } if (!empty($wlid)) { $giftreg = array("wlid"=>$wlid, "eventid"=>$eventid); $friends_wihlists[] = $giftreg; } $wlproduct = func_query_first("SELECT wishlistid, productid, amount-amount_purchased as amount, options, object FROM $sql_tbl[wishlist] WHERE $login_cond AND (productid='0' OR amount-amount_purchased>0)");
__________________
X-Cart version 4.1.7 - PHP 5.2. - MySQL server 5.0.41-community-nt - MySQL client 5.0.22 - Web server Apache/2.2.4 (Win32) - PHP/5.2.2
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 05:10 AM.

   

 
X-Cart forums © 2001-2020