pjs32 Posted January 28, 2021 Share Posted January 28, 2021 Hi, Is it possible to remove the Grace period and Redemption period columns and data from the domain pricing table so it doesn't show? https://yourwhmcs.com/domain/pricing 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted January 28, 2021 Share Posted January 28, 2021 it should be a variation on the CSS I posted yesterday.... table#tableDomainPricing td:nth-child(6), table#tableDomainPricing td:nth-child(7), table#tableDomainPricing th:nth-child(6), table#tableDomainPricing th:nth-child(7) {display: none;} 0 Quote Link to comment Share on other sites More sharing options...
pjs32 Posted January 28, 2021 Author Share Posted January 28, 2021 38 minutes ago, brian! said: Thank you Brian that worked. And do you know if it is possible to show FREE when the Transfer is free rather that it showing - it should be a variation on the CSS I posted yesterday.... table#tableDomainPricing td:nth-child(6), table#tableDomainPricing td:nth-child(7), table#tableDomainPricing th:nth-child(6), table#tableDomainPricing th:nth-child(7) {display: none;} 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted January 29, 2021 Share Posted January 29, 2021 20 hours ago, pjs32 said: And do you know if it is possible to show FREE when the Transfer is free rather that it showing - the quick way would be to edit domain-pricing.tpl and change... {foreach $data.transfer as $years => $price} <td> {if $price >= 0} {$price}<br> <small>{$years} {if $years > 1}{lang key="orderForm.years"}{else}{lang key="orderForm.year"}{/if}</small> {else} <small>{lang key="domainregnotavailable"}</small> {/if} </td> {break} {foreachelse} to... {foreach $data.transfer as $years => $price} <td> {if $price >= 0} {if $price->toNumeric() eq '0.00'}{lang key="orderfree"}{else}{$price}{/if}<br> <small>{$years} {if $years > 1}{lang key="orderForm.years"}{else}{lang key="orderForm.year"}{/if}</small> {else} <small>{lang key="domainregnotavailable"}</small> {/if} </td> {break} {foreachelse} the longer way would be to do more or less the same thing in a hook, but you would need to loop through the transfer array, check if the value is 0 and if so, edit the value to use the language string for "FREE!" instead. 0 Quote Link to comment Share on other sites More sharing options...
carolinef.pl Posted January 19, 2022 Share Posted January 19, 2022 Hello! I'm having trouble seeing my free transfer in the first year. The template automatically shows the price for the second year. My code looks like this: Quote <div class="col-md-8"> <div class="row"> <div class="col-xs-4 col-4 text-center"> {if isset($price.register) && current($price.register) > 0} {current($price.register)}<br> <small>{key($price.register)} {if key($price.register) > 1}{lang key="orderForm.years"}{else}{lang key="orderForm.year"}{/if}</small> {elseif isset($price.register) && current($price.register) == 0} <small>{lang key='orderfree'}</small> {else} <small>{lang key='na'}</small> {/if} </div> <div class="col-xs-4 col-4 text-center"> {if isset($price.renew) && current($price.renew) > 0} {current($price.renew)}<br> <small>{key($price.renew)} {if key($price.register) > 1}{lang key="orderForm.years"}{else}{lang key="orderForm.year"}{/if}</small> {elseif isset($price.renew) && current($price.renew) == 0} <small>{lang key='orderfree'}</small> {else} <small>{lang key='na'}</small> {/if} </div> <div class="col-xs-4 col-4 text-center"> {if isset($price.transfer) && current($price.transfer) > 0} {current($price.transfer)}<br> <small>{key($price.transfer)} {if key($price.register) > 1}{lang key="orderForm.years"}{else}{lang key="orderForm.year"}{/if}</small> {elseif isset($price.transfer) && current($price.transfer) == 0} <small>{lang key='orderfree'}</small> {else} <small>{lang key='na'}</small> {/if} </div> </div> 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.