BAJI26 Posted September 13, 2008 Share Posted September 13, 2008 Is there a way to delete an item from the cart? There should be a "X" or a "delete" function next to each item. 0 Quote Link to comment Share on other sites More sharing options...
zigzam Posted September 13, 2008 Share Posted September 13, 2008 Yes, have been looking for the same thing. 0 Quote Link to comment Share on other sites More sharing options...
SilverNodashi Posted September 16, 2008 Share Posted September 16, 2008 There's a word [Delete] below each item 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted September 16, 2008 Author Share Posted September 16, 2008 Mine doesn't have any, all I have is "[Edit Configuration]" do you have a screenshot of yours? 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted September 16, 2008 Author Share Posted September 16, 2008 Ok, Matt answered me. The [Delete] is only the cart not the boxes but I've added the [Delete] fuction to the boxes so I'm all set now. 0 Quote Link to comment Share on other sites More sharing options...
ethical Posted May 15, 2009 Share Posted May 15, 2009 how exactly did you add the delete option to the boxes form? and thoughts on why its not been added into future releases? The boxes format is much more well laid out than the cart checkout option.... thanks John 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted May 15, 2009 Author Share Posted May 15, 2009 (edited) If you are using the default cart: Open viewcart.tpl FIND: <link rel="stylesheet" type="text/css" href="templates/orderforms/default/style.css" /> ADD BELOW; <script type="text/javascript" src="includes/jscript/pwstrength.js"></script> {literal} <script language="javascript"> function removeItem(type,num) { var response = confirm("{/literal}{$LANG.cartremoveitemconfirm}{literal}"); if (response) { window.location = 'cart.php?a=remove&r='+type+'&i='+num; } } function emptyCart(type,num) { var response = confirm("{/literal}{$LANG.cartemptyconfirm}{literal}"); if (response) { window.location = 'cart.php?a=empty'; } } </script> {/literal} FIND: <a href="{$smarty.server.PHP_SELF}?a=confproduct&i={$num}" style="color:#009900;">[{$LANG.carteditproductconfig}]</a><br /> REPLACE WITH: <a href="{$smarty.server.PHP_SELF}?a=confproduct&i={$num}" style="color:#009900;">[{$LANG.carteditproductconfig}]</a> <a href="#" onclick="removeItem('p','{$num}');return false" style="color:#cc0000;">[{$LANG.cartremove}]</a><br/> FIND: <p align="center"><input type="button" value="« {$LANG.orderstartover}" onclick="window.location='cart.php?a=startover'" /> <input type="button" value="{$LANG.checkout} »" onclick="window.location='cart.php?a=checkout'"{if $cartitems==0} disabled{/if} /></p> REPLACE WITH: <p width="45%" align="center"><input type="button" value="{$LANG.emptycart}" onclick="emptyCart();return false" /> <input type="button" value="{$LANG.continueshopping}" onclick="window.location='cart.php'" /> <input type="button" value="{$LANG.checkout}" onclick="window.location='cart.php?a=checkout'"{if $cartitems==0} disabled{/if} /> </p> Edited May 15, 2009 by BAJI26 0 Quote Link to comment Share on other sites More sharing options...
hireahit Posted May 25, 2009 Share Posted May 25, 2009 Thanks for the assistance BAJI26... Any idea how to do the same for "Domain Registration" cart items? 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted May 25, 2009 Author Share Posted May 25, 2009 FIND: <a href="{$smarty.server.PHP_SELF}?a=confdomains" style="color:#009900;">[{$LANG.cartconfigdomainextras}]</a> REPLACE IT WITH: <a href="{$smarty.server.PHP_SELF}?a=confdomains" style="color:#009900;">[{$LANG.cartconfigdomainextras}]</a> <a href="#" onclick="removeItem('d','{$num}');return false" style="color:#cc0000;">[{$LANG.cartremove}]</a> 0 Quote Link to comment Share on other sites More sharing options...
swg Posted May 26, 2009 Share Posted May 26, 2009 Nice addition, thank you very much. 0 Quote Link to comment Share on other sites More sharing options...
ethical Posted May 28, 2009 Share Posted May 28, 2009 thanks BAJI but i am using the boxes ordering not default, i thought your post said you were using boxes as well... those lines dont appear to exist in the boxes file... thoughts? 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted May 28, 2009 Author Share Posted May 28, 2009 Its the same for BOXES also! 0 Quote Link to comment Share on other sites More sharing options...
ethical Posted June 2, 2009 Share Posted June 2, 2009 thanks I got it figured out but its NOT the same, the code is a little different in the boxes files (no header tag etc...) thanks for your help! 0 Quote Link to comment Share on other sites More sharing options...
datawebcorp Posted June 14, 2009 Share Posted June 14, 2009 Got it working great for me. Thanks to BAJI26. 0 Quote Link to comment Share on other sites More sharing options...
UH-Matt Posted September 8, 2009 Share Posted September 8, 2009 Thanks for this addition, exactly what was needed. This should definitely be a standard addition - Matt?... 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted September 8, 2009 WHMCS CEO Share Posted September 8, 2009 Thanks for this addition, exactly what was needed. This should definitely be a standard addition - Matt?... This code is from the default templates anyway. We supply 2 with and 2 without so you can choose. cart and web20cart have it by default, default and boxes do not as they act in the format of 1 product at a time orders rather than shopping carts which some prefer. Code can however be copied from one to the other like described here. Matt 0 Quote Link to comment Share on other sites More sharing options...
JofleyUK Posted September 8, 2009 Share Posted September 8, 2009 bump to Matt, this would be nice to see in v4.1 if you had a chance. I know your up to your eyes at the moment. 0 Quote Link to comment Share on other sites More sharing options...
UH-Matt Posted September 8, 2009 Share Posted September 8, 2009 Thanks for the reply Matt, we really appreciate how much help you've been giving us getting our system up to speed. I didnt realise it was in 2 and not the other 2, any reason not to have it by default in all 4? Thanks! 0 Quote Link to comment Share on other sites More sharing options...
deejay Posted January 7, 2010 Share Posted January 7, 2010 I missed that completely. Been trying to hack my install to do this! Plus I only thought there were 2 templates! Should of read more...... Thanks, Dave 0 Quote Link to comment Share on other sites More sharing options...
rozerdom Posted January 16, 2010 Share Posted January 16, 2010 (edited) Just checkmark the Remove box for each item and click Update Cart. You can also just clear your browser cookies if you want to start with a totally "clean slate" for testing your cart. ride on Edited January 16, 2010 by rozerdom spell check 0 Quote Link to comment Share on other sites More sharing options...
hireahit Posted January 16, 2010 Share Posted January 16, 2010 Just checkmark the Remove box for each item and click Update Cart. You can also just clear your browser cookies if you want to start with a totally "clean slate" for testing your cart. ride on The "remove" box isn't available in all themes, at least not by default... 0 Quote Link to comment Share on other sites More sharing options...
cyberneticos Posted March 22, 2010 Share Posted March 22, 2010 Hello, I can't find some of the text to replace for 4.2.1, maybe viewcart.tpl changed ??? Anyone got a fix for 4.2.1 ? 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.