phy Posted February 27, 2014 Share Posted February 27, 2014 Hello there, I would like to know how can I remove "Register Domain" and "Transfer Domain" links in cart.php? Thank you 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted February 27, 2014 Share Posted February 27, 2014 setup -> general settings -> domains -> Domain Registration Options untick "Allow clients to register domains with you" and "Allow clients to transfer a domain to you". 0 Quote Link to comment Share on other sites More sharing options...
mysmallbizu Posted October 13, 2014 Share Posted October 13, 2014 This stops the registration of domains completely though... I'd like to remove the "Register Domains" from the first time clients cart view. You can hide product groups on the order page but you can't just hide the "register domains" option. I still want clients to be able to register domains I just don't' want it displayed as an option to New clients... Any suggestions 0 Quote Link to comment Share on other sites More sharing options...
mysmallbizu Posted October 13, 2014 Share Posted October 13, 2014 Ended up removing {if $registerdomainenabled}<label><input type="radio" name="gid" onclick="window.location='cart.php?a=add&domain=register'" /> {$LANG.registerdomain}</label> {/if} From the ajaxcart's products.tpl file... 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted October 13, 2014 Share Posted October 13, 2014 wouldn't that remove it for everyone? you could probably use {if $registerdomainenabled and $loggedin} to only show it for logged in users 0 Quote Link to comment Share on other sites More sharing options...
mysmallbizu Posted October 13, 2014 Share Posted October 13, 2014 Only problem is that removes the option for existing clients... Anyway to only have removed for new clients? 0 Quote Link to comment Share on other sites More sharing options...
mysmallbizu Posted October 13, 2014 Share Posted October 13, 2014 thanks works perfectly... any suggestions on how to do this for product groups that are currently hidden. Would be nice to have them available to "logged in clients only? 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted October 13, 2014 Share Posted October 13, 2014 Only problem is that removes the option for existing clients... Anyway to only have removed for new clients? maybe you can try this hook action: Hook - Prevent Domain Only Orders 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted October 13, 2014 Share Posted October 13, 2014 you could try something like this... {if $loggedin and ($group.gid eq 10 or $group.gid eq 4)} <label><input type="radio" name="gid" value="{$group.gid}" onclick="window.location='cart.php?gid={$group.gid}'"{if $group.gid eq $gid} checked{/if} /> {$group.name}</label> {elseif $group.gid neq 10 and $group.gid neq 4} <label><input type="radio" name="gid" value="{$group.gid}" onclick="window.location='cart.php?gid={$group.gid}'"{if $group.gid eq $gid} checked{/if} /> {$group.name}</label> {/if} product groups 10 & 4 are only shown if logged in - if not logged in, 10 & 4 are not shown. 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.