Jump to content
Sign in to follow this  
ani_anisyah

Menambah button baru di Block categories

Recommended Posts

rekan - rekan semua ada, yang tau cara nambah button baru atau image di blok categories ? mohon pencerahannya . terimakasih banyak

38325_toXSMYbMbJeJKNR0GJu4_t

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
emang kalo di klik buttonya mw ngapain ?

saya mau bikin button untuk download , tiap list punya link yang beda - beda .

Share this post


Link to post
Share on other sites

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'}

Share this post


Link to post
Share on other sites
Sign in to follow this  

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More