Jump to content

How to edit new v6 cart templates


jmginer

Recommended Posts

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}

Link to comment
Share on other sites

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...

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated