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

"Add to Cart" button for Related Products

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-19-2008, 10:09 AM
  tqualizerman's Avatar 
tqualizerman tqualizerman is offline
 

X-Adept
  
Join Date: Jun 2008
Posts: 392
 

Default "Add to Cart" button for Related Products

Has anyone successfully implemented an 'Add to Cart' button to the Related Products/Upselling module?
__________________
- www.nerdseven.com - Gadgets & Gizmos from Out of This World
- Sound Sensitive T-Shirts That Flash to the Beat of Music (http://www.tqualizer.com)


X-Cart Version 4.1.10
Reply With Quote
  #2  
Old 06-26-2008, 12:42 AM
  Yurij's Avatar 
Yurij Yurij is offline
Banned
 

X-Adept
  
Join Date: Jan 2008
Posts: 486
 

Default Re: "Add to Cart" button for Related Products

Quote:
Originally Posted by tqualizerman
Has anyone successfully implemented an 'Add to Cart' button to the Related Products/Upselling module?

You can use the following code (in the file "Related Products/Upselling_Products/related_products.tpl" .

PHP Code:
{include  file="buttons/button.tpl" button_title="Add to Cart" href="cart.php?mode=add&productid=`$product_links[cat_num].productid`&amount=1"  style="button"
Reply With Quote
  #3  
Old 04-23-2009, 07:49 AM
 
TanyaG TanyaG is offline
 

Advanced Member
  
Join Date: Nov 2007
Posts: 94
 

Default Re: "Add to Cart" button for Related Products

Quote:
Originally Posted by Yurij
You can use the following code (in the file "Related Products/Upselling_Products/related_products.tpl" .

PHP Code:
{include file="buttons/button.tpl" button_title="Add to Cart" href="cart.php?mode=add&productid=`$product_links[cat_num].productid`&amount=1" style="button"

Hi Yurij, thanks so much for a code. Only one thing, I have disabled ⌠redirect to cart■ and by adding related product it sends me to home page. Do you know how it can be fixed?

Many thanks, Tanya
__________________
Tanya

x-cart version: 4.1.7 4.1.9. 4.2
Reply With Quote
  #4  
Old 11-02-2009, 09:45 PM
 
lash lash is offline
 

Senior Member
  
Join Date: Oct 2006
Posts: 138
 

Default Re: "Add to Cart" button for Related Products

Bump. I would like to know this as well
__________________
4.1.9
www.lash.se
Reply With Quote
  #5  
Old 02-22-2012, 09:10 AM
 
Royt Royt is offline
 

Advanced Member
  
Join Date: Sep 2008
Location: Guildford, UK
Posts: 49
 

Default Re: "Add to Cart" button for Related Products

What is the code for 4.4.4 and 4.4.5 to place the "add to cart" button onrelated products.
Regards
Roy
__________________
X-Cart 4.4.4 (upgraded to 4.4.5)-Lusira
X-Cart 4.1.9 - Wickedtickles
DSEFU - Wickedtickles
AOM - Wickedtickles
Checkout One - Wickedtickles
Power Filter and Megadropmenu - Lusira
Reply With Quote
  #6  
Old 08-16-2012, 02:24 AM
 
philrisk philrisk is offline
 

X-Adept
  
Join Date: Jul 2009
Location: Newcastle upon Tyne, UK
Posts: 412
 

Default Re: "Add to Cart" button for Related Products

I can get this to work as link in 4.5.1 but I need to know how to activate the add-to-cart popup.

<a href="cart.php?mode=add&productid={$product.produc tid}&amount=1">Add to Cart</a>

Anyone got any ideas?
__________________
Live with Gold 4.5.1
Dedicated Linux server
MaxCDN 4 pull zones
Dedicated SSL

Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 11:45 AM.

   

 
X-Cart forums © 2001-2020