{ $block->display("core:top_clean") } { $method->exe("product","view") } { if ($method->result == FALSE) } { $block->display("core:method_error") } {else} {foreach from=$product item=product} {if $product.prod_plugin == "1"} Both hosting and product plugins cannot be configured for the same product. {else}
{ if ($list->smarty_array("host_server","provision_plugin", "", "plugin")) } {foreach from=$plugin item=arr} {if $product.host_server_id == $arr.id} {/if} {/foreach} {/if}
{translate module=product} field_host {/translate} { $list->bool("product_host", $product.host, "onchange=\"submit();\"") }
{translate module=product} field_host_server_id {/translate} { $list->menu("no", "product_host_server_id", "host_server", "name", $product.host_server_id, "\" onchange=\"document.product_view.submit();") }
{translate module=product} field_host_allow_domain {/translate} {if $product.host_allow_domain == ""} { $list->bool("product_host_allow_domain", "1", "form_menu") } {else} { $list->bool("product_host_allow_domain", $product.host_allow_domain, "form_menu") } {/if}
{translate module=product} field_host_allow_host_only {/translate} {if $product.host_allow_host_only != ""} { $list->bool("product_host_allow_host_only", $product.host_allow_host_only, "form_menu") } {else} { $list->bool("product_host_allow_host_only", "0", "form_menu") } {/if}
{translate module=product} field_host_discount_tld {/translate} {translate module=product} field_host_discount_tld_amount {/translate}
{ $list->menu_multi($product.host_discount_tld, "product_host_discount_tld", "host_tld", "name", "5", "5", "form_menu") } (example: 0.10 = 10%)
{assign var="afile" value=$arr.provision_plugin} {assign var="ablock" value="host_provision_plugin:plugin_prod_"} {assign var="blockfile" value="$ablock$afile"} { $block->display($blockfile) }
{/if} {/foreach} {/if}