vespaman Posted January 22, 2013 Share Posted January 22, 2013 para master tolong dibantu dong, bagaimana cara membuat tampilan attribut seperti ini, ag.bmp ada yang tahu ga??? Link to comment Share on other sites More sharing options...
prestanesia Posted January 23, 2013 Share Posted January 23, 2013 convert jadi jpg om. 1.25 mb kegedean Link to comment Share on other sites More sharing options...
vespaman Posted January 23, 2013 Author Share Posted January 23, 2013 ini scsnya om.... tolong bantu ya. Link to comment Share on other sites More sharing options...
gonebdg - webindoshop.com Posted January 25, 2013 Share Posted January 25, 2013 Kurang lebih seperti berikut ini, tinggal disesuaikan dengan versi prestashop-nya: {foreach from=$groups key=id_attribute_group item=group} {if $id_attribute_group == a || $id_attribute_group == b || $id_attribute_group == c} <div id="Baris1"> <label>Name of Groups attribute baris ke-1</label> <!-- Proses pilihan atttribut dalam group a b, c disini : foreach loop --> </div> {elseif $id_attribute_group == x || $id_attribute_group == y || $id_attribute_group == z} <div id="Baris2"> <label>Name of Groups attributes baris ke-2</label> <!-- Proses pilihan atttribut dalam group x, y, z disini: foreach loop --> </div> {/if} {/foreach} Link to comment Share on other sites More sharing options...
vespaman Posted January 26, 2013 Author Share Posted January 26, 2013 (edited) udah bisa cuman listnya masih vertical mas.. kalau dibuat jadi horizontal bisa ga??? jadi untuk kategori A list attribut vertical yang lain horizontal... {if $id_attribute_group == 9 || $id_attribute_group == 10 || $id_attribute_group == 11} <div id="Baris1" style="float:left" > <label>kanan</label> {if $group.attributes|@count > 1} <label class="attribute_label" for="label">:</label> <select name="{$groupName}" id="group_{$id_attribute_group|intval}" class="attribute_select" onchange="findCombination();getProductAttribute();{if $colors|@count > 0}$('#wrapResetImages').show('slow');{/if};"> {foreach from=$group.attributes key=id_attribute item=group_attribute} <option value="{$id_attribute|intval}"{if (isset($smarty.get.$groupName) && $smarty.get.$groupName|intval == $id_attribute) || $group.default == $id_attribute} selected="selected"{/if} title="{$group_attribute|escape:'htmlall':'UTF-8'}">{$group_attribute|escape:'htmlall':'UTF-8'}</option> {/foreach} </select> {elseif $group.attributes|@count <= 1} <label class="attribute_label" for="label">:</label> {foreach from=$group.attributes key=id_attribute item=group_attribute} <input name="{$groupName}" id="group_{$id_attribute_group|intval}" value="{$id_attribute|intval}" type="hidden" class="attribute_select" onload="findCombination();getProductAttribute();{if $colors|@count > 0}$('#wrapResetImages').show('slow');{/if};"> {$group_attribute|escape:'htmlall':'UTF-8'} {/foreach} {/if}<!-- Proses pilihan atttribut dalam group a b, c disini : foreach loop --> </div> {elseif $id_attribute_group == 14 || $id_attribute_group == 15 || $id_attribute_group == 11} <div id="Baris2" style="float:right"> <label>kiri</label> {if $group.attributes|@count > 1} <label class="attribute_label" for="label">:</label> <select name="{$groupName}" id="group_{$id_attribute_group|intval}" class="attribute_select" onchange="findCombination();getProductAttribute();{if $colors|@count > 0}$('#wrapResetImages').show('slow');{/if};"> {foreach from=$group.attributes key=id_attribute item=group_attribute} <option value="{$id_attribute|intval}"{if (isset($smarty.get.$groupName) && $smarty.get.$groupName|intval == $id_attribute) || $group.default == $id_attribute} selected="selected"{/if} title="{$group_attribute|escape:'htmlall':'UTF-8'}">{$group_attribute|escape:'htmlall':'UTF-8'}</option> {/foreach} </select> {elseif $group.attributes|@count <= 1} <label class="attribute_label" for="label">:</label> {foreach from=$group.attributes key=id_attribute item=group_attribute} <input name="{$groupName}" id="group_{$id_attribute_group|intval}" value="{$id_attribute|intval}" type="hidden" class="attribute_select" onload="findCombination();getProductAttribute();{if $colors|@count > 0}$('#wrapResetImages').show('slow');{/if};"> {$group_attribute|escape:'htmlall':'UTF-8'} {/foreach} {/if}<!-- Proses pilihan atttribut dalam group x, y, z disini: foreach loop --> </div>{else} {if $group.attributes|@count > 1} <label class="attribute_label" for="label">:</label> <select name="{$groupName}" id="group_{$id_attribute_group|intval}" class="attribute_select" onchange="findCombination();getProductAttribute();{if $colors|@count > 0}$('#wrapResetImages').show('slow');{/if};"> {foreach from=$group.attributes key=id_attribute item=group_attribute} <option value="{$id_attribute|intval}"{if (isset($smarty.get.$groupName) && $smarty.get.$groupName|intval == $id_attribute) || $group.default == $id_attribute} selected="selected"{/if} title="{$group_attribute|escape:'htmlall':'UTF-8'}">{$group_attribute|escape:'htmlall':'UTF-8'}</option> {/foreach} </select> {elseif $group.attributes|@count <= 1} <label class="attribute_label" for="label">:</label> {foreach from=$group.attributes key=id_attribute item=group_attribute} <input name="{$groupName}" id="group_{$id_attribute_group|intval}" value="{$id_attribute|intval}" type="hidden" class="attribute_select" onload="findCombination();getProductAttribute();{if $colors|@count > 0}$('#wrapResetImages').show('slow');{/if};"> {$group_attribute|escape:'htmlall':'UTF-8'} {/foreach} {/if} Edited January 27, 2013 by vespaman (see edit history) Link to comment Share on other sites More sharing options...
gonebdg - webindoshop.com Posted January 27, 2013 Share Posted January 27, 2013 Kalau soal itu tinggal kamu rubah di file css-nya, bila perlu buat id atau class baru. Punya firefox + firebugs kan ? Hint : class attribute_select Link to comment Share on other sites More sharing options...
vespaman Posted January 27, 2013 Author Share Posted January 27, 2013 (edited) kalau different layout per kategory gimana cssnya mas??? misal kategory A display vertikal selain itu horizontal.. trus untuk nampilin group attribut satu satu gimana mas?? misal tabel kolom A group attribut 1 kolom B grup attribut 2 kolom C grup attribut 3.. udah tak coba malah tampil semua list grup bukan 1 nama grup.. pengennya tiap kolom tampil 1 nama grup.. Edited January 27, 2013 by vespaman (see edit history) Link to comment Share on other sites More sharing options...
vespaman Posted January 29, 2013 Author Share Posted January 29, 2013 udah jadi mas... ternyata cuman copy css trus modif di product.css aja udah beres... makasih banyak.... sekali lagi makasih... Link to comment Share on other sites More sharing options...
gonebdg - webindoshop.com Posted January 31, 2013 Share Posted January 31, 2013 kalau sudah beres, silahkan Anda rubah Topik thread dari [Help] menjadi [solved] Link to comment Share on other sites More sharing options...
Lightyear Posted April 4, 2013 Share Posted April 4, 2013 ikut nyimak ya agan - agan yang baik,, nambah ilmu nih infonya makasih Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now