jmginer Posted December 9, 2015 Share Posted December 9, 2015 Hello, with the old templates, I edit the file configureproduct.tpl and I edit this to remove the ns and password option in forms. How to edit now in v6 templates? Thanks! {if $productinfo.type eq "server"} <h3>{$LANG.cartconfigserver}</h3> <div class="serverconfig"> <table width="100%" cellspacing="0" cellpadding="0" class="configtable"> <tr><td class="fieldlabel">{$LANG.serverhostname}:</td><td class="fieldarea"><input type="text" name="hostname" size="15" value="{$server.hostname}" /> {$LANG.serverhostnameexample}</td></tr> <input type="hidden" name="ns1prefix" size="10" value="ns1" /> <input type="hidden" name="ns2prefix" size="10" value="ns2" /> <input type="hidden" name="rootpw" size="10" value="{php}echo substr(str_shuffle('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789') , 0 , 16 );{/php}" /> </table> </div> {/if} 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted December 9, 2015 Share Posted December 9, 2015 it should work in the same way - just find the {if $productinfo.type eq "server"} block of code in the *order-form template*/configureproduct.tpl and edit as before. 0 Quote Link to comment Share on other sites More sharing options...
jmginer Posted December 9, 2015 Author Share Posted December 9, 2015 it should work in the same way - just find the {if $productinfo.type eq "server"} block of code in the *order-form template*/configureproduct.tpl and edit as before. This file not exist more, the structure on new cart templates is not the same. Check for example the universal_slider template. The only file to edit is products.tpl and not have any line with the text {if $productinfo.type eq "server"} or similar... 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted December 9, 2015 Share Posted December 9, 2015 This file not exist more, the structure on new cart templates is not the same. Check for example the universal_slider template. The only file to edit is products.tpl and not have any line with the text {if $productinfo.type eq "server"} or similar... for these new order form templates, as you say some of them only have products.tpl - but for the other templates, they will use standard_cart - so if you edit standard_cart/configureproduct.tpl, you should be able to remove the section you want to. 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.