whatuwant Posted February 7, 2009 Share Posted February 7, 2009 hey all. I'm only selling 1 product and therefore what to remove the 'category' selection on cart.php. is this possible? TIA 0 Quote Link to comment Share on other sites More sharing options...
jackgordon Posted February 8, 2009 Share Posted February 8, 2009 Yes, you can edit the template to remove that. If you tell us which template you are using, I am sure someone can point you to the exact file. 0 Quote Link to comment Share on other sites More sharing options...
whatuwant Posted February 8, 2009 Author Share Posted February 8, 2009 I'm just using an adapted default template. (copied default folder and then changed css etc so no structural changes) 0 Quote Link to comment Share on other sites More sharing options...
jackgordon Posted February 8, 2009 Share Posted February 8, 2009 Before you listen to me, BACKUP! I am barely qualified to make this advice. But I think if you go to templates>orderforms>default>products.tpl and remove the following code, you'll get the result you are looking for. <form method="post" action="{$smarty.server.PHP_SELF}"><p>{$LANG.ordercategories}: <select name="gid" onchange="submit()"> {foreach key=num item=productgroup from=$productgroups} <option value="{$productgroup.gid}"{if $gid eq $productgroup.gid} selected="selected"{/if}>{$productgroup.name}</option> {/foreach} {if $loggedin}<option value="addons">{$LANG.cartproductaddons}</option>{/if} {if $registerdomainenabled}<option value="domains">{$LANG.orderdomainregonly}</option>{/if} </select></p> </form> Hopefully someone else can tell us if I am steering you wrong. 0 Quote Link to comment Share on other sites More sharing options...
whatuwant Posted February 8, 2009 Author Share Posted February 8, 2009 Hi jack. Thanks for the reply. I tried this, please see my other thread! http://forum.whmcs.com/showthread.php?t=17769 0 Quote Link to comment Share on other sites More sharing options...
jackgordon Posted February 9, 2009 Share Posted February 9, 2009 I did the same exact thing, but with my singlepage template, and it works flawlessly. Hopefully, someone else here can point out where the problem is. Good luck! 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.