ani_anisyah Posted February 10, 2011 Share Posted February 10, 2011 rekan - rekan semua ada, yang tau cara nambah button baru atau image di blok categories ? mohon pencerahannya . terimakasih banyak Link to comment Share on other sites More sharing options...
prestanesia Posted February 10, 2011 Share Posted February 10, 2011 produk listing di presta itu pakenya product-list.tpl aja koq, modifnya ...* perhatiin teks BUTTON BARU ama IMAGE DISINI > {if isset($products)} <!-- Products list --> </pre> <ul> {foreach from=$products item=product name=products} getImageLink($product.link_rewrite, $product.id_image, 'home')}" alt="{$product.legend|escape:'htmlall':'UTF-8'}" width="{$homeSize.width}" height="{$homeSize.height}" /> {if $product.new == 1}{l s='new'}{/if}{$product.name|truncate:35:'...'|escape:'htmlall':'UTF-8'} {$product.description_short|truncate:360:'...'|strip_tags:'UTF-8'} IMAGE DISINI {if $product.on_sale} {l s='On sale!'} {elseif ($product.reduction_price != 0 || $product.reduction_percent != 0) && ($product.reduction_from == $product.reduction_to OR ($smarty.now|date_format:'%Y-%m-%d %H:%M:%S' <= $product.reduction_to && $smarty.now|date_format:'%Y-%m-%d %H:%M:%S' >= $product.reduction_from))} {l s='Price lowered!'} {/if} {if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if} {if ($product.allow_oosp OR $product.quantity > 0)}{l s='Available'}{else}{l s='Out of stock'}{/if} {if ($product.allow_oosp OR $product.quantity > 0) && $product.customizable != 2} {l s='Add to cart'} {else} {l s='Add to cart'} {/if} {l s='View'} {l s='BUTTON BARU'} {/foreach} </ul> <br> <!-- /Products list --><br>{/if Link to comment Share on other sites More sharing options...
ani_anisyah Posted February 10, 2011 Author Share Posted February 10, 2011 produk listing di presta itu pakenya product-list.tpl aja koq, modifnya ...* perhatiin teks BUTTON BARU ama IMAGE DISINI> {if isset($products)} <!-- Products list --> </pre> <ul> {foreach from=$products item=product name=products} getImageLink($product.link_rewrite, $product.id_image, 'home')}" alt="{$product.legend|escape:'htmlall':'UTF-8'}" width="{$homeSize.width}" height="{$homeSize.height}" /> {if $product.new == 1}{l s='new'}{/if}{$product.name|truncate:35:'...'|escape:'htmlall':'UTF-8'} {$product.description_short|truncate:360:'...'|strip_tags:'UTF-8'} IMAGE DISINI {if $product.on_sale} {l s='On sale!'} {elseif ($product.reduction_price != 0 || $product.reduction_percent != 0) && ($product.reduction_from == $product.reduction_to OR ($smarty.now|date_format:'%Y-%m-%d %H:%M:%S' <= $product.reduction_to && $smarty.now|date_format:'%Y-%m-%d %H:%M:%S' >= $product.reduction_from))} {l s='Price lowered!'} {/if} {if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if} {if ($product.allow_oosp OR $product.quantity > 0)}{l s='Available'}{else}{l s='Out of stock'}{/if} {if ($product.allow_oosp OR $product.quantity > 0) && $product.customizable != 2} {l s='Add to cart'} {else} {l s='Add to cart'} {/if} {l s='View'} {l s='BUTTON BARU'} {/foreach} </ul> <br> <!-- /Products list --><br>{/if kalau letak file product-list.tpl itu ada dimna ya ?, saya cari di folder module kok ga ada ? atau barang kali bukan di sana. Link to comment Share on other sites More sharing options...
ani_anisyah Posted February 10, 2011 Author Share Posted February 10, 2011 upss. mas udah ketemu .. thanks you. thanks you .. Link to comment Share on other sites More sharing options...
ani_anisyah Posted February 10, 2011 Author Share Posted February 10, 2011 produk listing di presta itu pakenya product-list.tpl aja koq, modifnya ...* perhatiin teks BUTTON BARU ama IMAGE DISINI> {if isset($products)} <!-- Products list --> </pre> <ul> {foreach from=$products item=product name=products} getImageLink($product.link_rewrite, $product.id_image, 'home')}" alt="{$product.legend|escape:'htmlall':'UTF-8'}" width="{$homeSize.width}" height="{$homeSize.height}" /> {if $product.new == 1}{l s='new'}{/if}{$product.name|truncate:35:'...'|escape:'htmlall':'UTF-8'} {$product.description_short|truncate:360:'...'|strip_tags:'UTF-8'} IMAGE DISINI {if $product.on_sale} {l s='On sale!'} {elseif ($product.reduction_price != 0 || $product.reduction_percent != 0) && ($product.reduction_from == $product.reduction_to OR ($smarty.now|date_format:'%Y-%m-%d %H:%M:%S' <= $product.reduction_to && $smarty.now|date_format:'%Y-%m-%d %H:%M:%S' >= $product.reduction_from))} {l s='Price lowered!'} {/if} {if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if} {if ($product.allow_oosp OR $product.quantity > 0)}{l s='Available'}{else}{l s='Out of stock'}{/if} {if ($product.allow_oosp OR $product.quantity > 0) && $product.customizable != 2} {l s='Add to cart'} {else} {l s='Add to cart'} {/if} {l s='View'} {l s='BUTTON BARU'} {/foreach} </ul> <br> <!-- /Products list --><br>{/if mas, kalau saya pengen link di button yang baru tersebut dibikin beda per listnya gmna ? kalau di script yang diatas itu kan link untuk button baru nya semua sama untuk semua list product. Link to comment Share on other sites More sharing options...
prestanesia Posted February 10, 2011 Share Posted February 10, 2011 emang kalo di klik buttonya mw ngapain ? Link to comment Share on other sites More sharing options...
ani_anisyah Posted February 11, 2011 Author Share Posted February 11, 2011 emang kalo di klik buttonya mw ngapain ? saya mau bikin button untuk download , tiap list punya link yang beda - beda . Link to comment Share on other sites More sharing options...
prestanesia Posted February 11, 2011 Share Posted February 11, 2011 g tau listnya downloadnya didapet dari mana, tapi *intinya* buat lempar data ke template smarty biasanya 'disuntik' dari php nya. Tapi kalo downloadnya semisal berdasar id product dan download diproses sama download.php kodenya jadi gini {l s='BUTTON BARU'} Link to comment Share on other sites More sharing options...
Recommended Posts