X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Add to cart button on product listing (https://forum.x-cart.com/showthread.php?t=816)

poboy 04-06-2003 09:48 AM

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?

aussib 04-10-2003 06:19 AM

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 ;)

YuriC 05-27-2003 09:15 AM

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)

BoomBoomBap 06-19-2003 02:31 PM

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

shan 06-19-2003 03:07 PM

suppose we should put this in custom templates :idea:

BoomBoomBap 06-19-2003 03:13 PM

Eh? I dont follow you.
Aren't we already in Custom Templates ?

shan 06-19-2003 03:15 PM

we are now :wink:

BoomBoomBap 06-19-2003 03:16 PM

LOL

I get it...

:oops:

barabbas 06-19-2003 10:55 PM

this isnt working for v 3.4.2

shan 06-20-2003 01:56 AM

use the option to add the "buy now" button that is built into v3.4.x branh


All times are GMT -8. The time now is 05:17 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.