Jump to content
Sign in to follow this  

chỉnh lại cách thức giới thiệu sản phẩm - help

Recommended Posts


mình thấy cách giới thiệu sp dạng đứng ko hay lắm, nếu chỉnh lại để đặt theo dạng nằm ngang thì hay hơn nhiều nx ko biết làm thế nào. Ai đã từng làm rồi thì chỉ mình cái nhé


Share this post

Link to post
Share on other sites

Mở file homefeatured.tpl trong modules homefeatured thay đổi các giá trị liHeight, nbItemPerline
Mở file global.css trong thư mục themes, tìm đến modules này và Thay đổi chiều rộng

<!-- MODULE Home Featured Products -->

{l s='featured products' mod='homefeatured'}
   {if isset($products) AND $products}

           {assign var='liHeight' value=360}
           {assign var='nbItemsPerLine' value=4}
           {assign var='nbLi' value=$products|@count}
           {assign var='nbLines' value=$nbLi/$nbItemsPerLine|ceil}
           {assign var='ulHeight' value=$nbLines*$liHeight}

           {foreach from=$products item=product name=homeFeaturedProducts}
               {assign var='productLink' value=$link->getProductLink($product.id_product, $product.link_rewrite)}



{displayWtPrice p=$product.price}
{l s='View' mod='homefeatured'}
                       {if $allow_buy_when_out_of_stock OR ($product.quantity AND $product.quantity > 0) OR $product.allow_oosp}
{l s='Add to cart' mod='homefeatured'}
{l s='Add to cart' mod='homefeatured'}



{l s='No featured products' mod='homefeatured'}

<!-- /MODULE Home Featured Products -->

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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