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

Add to cart button on product listing

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #21  
Old 04-06-2003, 09:48 AM
 
poboy poboy is offline
 

Advanced Member
  
Join Date: Mar 2003
Posts: 59
 

Default Worked good, but my permissions?

I am having trouble with my permissions. When I implemented the new products.tpl, the buttons were on there, but when I clicked add to cart, it said access denied, you do not have permission, what folder should I set to what permissions?
Reply With Quote
  #22  
Old 04-10-2003, 06:19 AM
 
aussib aussib is offline
 

Newbie
  
Join Date: Mar 2003
Posts: 9
 

Default

Is this happening on the live site? Not sure what you mean - but all the permissions needed are listed in the read me files etc. I don't want to tell you what to do cos I am bad with setting wrong permissions then having to reset them
Reply With Quote
  #23  
Old 05-27-2003, 09:15 AM
 
YuriC YuriC is offline
 

Advanced Member
  
Join Date: Mar 2003
Posts: 66
 

Default How about "remove from cart" button

Anyone has an idea how to do it?

I'm making a mod that will display a list of products in the cart right underneath the cart image as such: (2) Product Name ... and when u press add/remove the number inside of parentesis will increase/decrease...


so anyone got remove function.. i'd appreciate if you share (i'll share too)
Reply With Quote
  #24  
Old 06-19-2003, 02:31 PM
  BoomBoomBap's Avatar 
BoomBoomBap BoomBoomBap is offline
 

Senior Member
  
Join Date: Nov 2002
Location: San Francisco
Posts: 184
 

Default

Wow - that was so unbelievably easy to implement I can't believe I didn't do it sooner.

Thanks for the code !

For the record - all that's needed is the addition of this form and button to customer/products.tpl (place where approriate):

Code:
<form name=orderform_{%product.index%} method=post action="cart.php?mode=add"> <a href="javascript: document.orderform_{%product.index%}.submit()"> {include file="buttons/add_to_cart.tpl"}</a> <input type=hidden name=amount value=1> <input type=hidden name=mode value=add> <input type=hidden name=productid value="{$products[product].productid}"> <input type=hidden name=cat value="{$smarty.get.cat}"> <input type=hidden name=page value="{$smarty.get.page}"> <a href=product.php?productid={$products[product].productid}&cat={$cat}&page={$navigation_page}>More info...</a> </form>

Nice.... :P
__________________
Site 1 > XCART LIVE 3.4.12

Site 2 > XCART LIVE 4.0.17
Reply With Quote
  #25  
Old 06-19-2003, 03:07 PM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

suppose we should put this in custom templates
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #26  
Old 06-19-2003, 03:13 PM
  BoomBoomBap's Avatar 
BoomBoomBap BoomBoomBap is offline
 

Senior Member
  
Join Date: Nov 2002
Location: San Francisco
Posts: 184
 

Default

Eh? I dont follow you.
Aren't we already in Custom Templates ?
__________________
Site 1 > XCART LIVE 3.4.12

Site 2 > XCART LIVE 4.0.17
Reply With Quote
  #27  
Old 06-19-2003, 03:15 PM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

we are now
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #28  
Old 06-19-2003, 03:16 PM
  BoomBoomBap's Avatar 
BoomBoomBap BoomBoomBap is offline
 

Senior Member
  
Join Date: Nov 2002
Location: San Francisco
Posts: 184
 

Default

LOL

I get it...

__________________
Site 1 > XCART LIVE 3.4.12

Site 2 > XCART LIVE 4.0.17
Reply With Quote
  #29  
Old 06-19-2003, 10:55 PM
 
barabbas barabbas is offline
 

Advanced Member
  
Join Date: Feb 2003
Posts: 52
 

Default

this isnt working for v 3.4.2
Reply With Quote
  #30  
Old 06-20-2003, 01:56 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

use the option to add the "buy now" button that is built into v3.4.x branh
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


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 07:41 AM.

   

 
X-Cart forums © 2001-2020