<div style="display:none;"> <div class="checkbox"> <label for="invoice_address"> <input type="checkbox" name="invoice_address" id="invoice_address"{if (isset($smarty.post.invoice_address) && $smarty.post.invoice_address) || (isset($guestInformations) && isset($guestInformations.invoice_address) && $guestInformations.invoice_address)} checked="checked"{/if} autocomplete="off"/> {l s='Please use another address for invoice'}</label> </div> <div id="opc_invoice_address" class="is_customer_param"> ...</div></div>
Если заказ на одной странице, в шаблоне /themes/default-bootstrap/order-opc-new-account.tpl спрятать блок со вторым адресом и переключателем видимости этого блокаКод: [Выделить]<div style="display:none;"> <div class="checkbox"> <label for="invoice_address"> <input type="checkbox" name="invoice_address" id="invoice_address"{if (isset($smarty.post.invoice_address) && $smarty.post.invoice_address) || (isset($guestInformations) && isset($guestInformations.invoice_address) && $guestInformations.invoice_address)} checked="checked"{/if} autocomplete="off"/> {l s='Please use another address for invoice'}</label> </div> <div id="opc_invoice_address" class="is_customer_param"> ...</div></div>
Какай разница? Шаблон другой, принцип тот-же/themes/default-bootstrap/order-address.tpl
Не получаетса скрыть Правильно понимаю? Скрывать элемент таким образом? <div style="display:none;"> нужный блок div </div> ?