Jump to content

{help} thay thế footer khác


duongphuc

Recommended Posts

Mình nhận thấy footer này có cái hay và khá tiện ích nên muốn thay vào trong bản PS của mình (hiện đang dùng bản default)

- Cứ loay hoay mãi và đọc vài bài viết trên forum và cả bác Mod kenh360.com vẫn không biết cách thay thế cái footer này vào website của mình

- Bác MOD vui lòng giúp tí nhé - thank

 

Demo cái footer mong muốn : http://prestashop.nurharyati.com/cool-putih/

Link to comment
Share on other sites

Đồng ý là ứng với từng theme (open source khác), riêng với PS, footer cấu trúc đơn giản hơn, nhưng không hẳn là sửa bằng cách view code rồi thêm theo ý được (chỉ có thể thêm div/ hoặc vài ba cái link đơn giản) chứ thay cả footer của theme này vào footer của theme kia hơi bị khó (nghĩa là cách xếp và hook các module khác nhau - tìm chỗ nào sửa đây ???)

 

*** Ví dụ: bạn đang dùng theme mặc định của PS (không có bất cứ module nào hook được vào footer - nếu có chúng nó sẽ nằm theo chiều dọc) , sau đó bạn hãy thay đổi cái footer mặc định đó dùng cho theme Model (black type): http://www.prestashop.com/demo/ , cái theme này các module khi hook vào footer chúng sẽ nằm ngang.

*** Trong footer.tpl của 2 bản này giống nhau như - vậy muốn sử dụng footer của theme Model thì phải làm sao.

Link to comment
Share on other sites

Thanks alot kênh360,

 

Để làm thử xem thế nào, Demo cái footer mong muốn : http://prestashop.nu...com/cool-putih/ nó free down load mà

Down về thấy footer.tpl của nó sẽ giải quyết hết - vì vậy bạn thích cái nào thì down về rồi lấy cái footer.tpl của nó thui nhé

 

** các module có thể móc vào footer:

 

Configure the following modules:

- Block Reinssurance(add to Hook footer)

- block my-account (add to Hook footer)

- CMS (add to Hook footer)

- social (add to Hook footer)

- infoscontact (add to Hook footer)

- contact (add to Hook rightColumn)

- sharefb (add to Hook footer)

- Block categories (Number of column in footer : 1)

 

------------------------------------------demo 1--------------------------------------------------------

<!-- Footer -->

<div id="footer">

{$HOOK_FOOTER}

<div id="copyright">

Company Name &copy 2012 -

Powered by <a href="http://www.prestashop.com">Prestashop 1.4.6</a> -

Prestashop Theme by <a href="http://www.nurharyati.com">Nurharyati</a>

</div>

</div>

</div>

{/if}

</body>

</html>

 

------------------------------------------demo 2--------------------------------------------------------

<!-- Footer -->

<div class="flatclear"> </div>

</div>

<div id="v2-footer">

<div id="v2-footer_content" style="padding-top:2px">

<div style="width:200px;text-align:left;float:left;margin:5px 10px 0 0">

<img src="{$img_dir}v2-logo.png" style="margin:4px 0 0 20px;height:36px" alt="PrestaShop" /><br />

<div style="margin:8px 12px">{l s='Powered by'} PrestaShop™</div>

<a href="http://www.prestashop.com/" style="margin:4px 12px;text-decoration:underline">www.prestashop.com</a>

</div>

<div class="float" style="width:200px;margin:5px 10px 0 0">

<h4 style="border-bottom:2px solid #384855;margin-bottom:5px;padding-bottom:5px">{l s='Sitemap'}</h4>

<ul class="v2-ulfooter">

<li><a href="{$base_dir}">{l s='Home'}</a></li>

<li><a href="{$link->getPageLink('contact-form.php', true)}">{l s='Contact us'}</a></li>

<li><a href="{$link->getPageLink('sitemap.php')}">{l s='Sitemap'}</a></li>

</ul>

</div>

<div class="float" style="width:200px;margin:5px 10px 0 0">

<h4 style="border-bottom:2px solid #384855;margin-bottom:5px;padding-bottom:5px">{l s='My account'}</h4>

<ul class="v2-ulfooter">

<li><a href="{$link->getPageLink('my-account.php', true)}" title="{l s='My account'}">{l s='My account'}</a></li>

<li><a href="{$link->getPageLink('history.php', true)}" title="{l s='Orders'}">{l s='My orders'}</a></li>

<li><a href="{$link->getPageLink('order-slip.php', true)}" title="{l s='Credit slips'}">{l s='My credit slips'}</a></li>

<li><a href="{$link->getPageLink('addresses.php', true)}" title="{l s='Addresses'}">{l s='My addresses'}</a></li>

<li><a href="{$link->getPageLink('identity.php', true)}" title="{l s='Information'}">{l s='My personal information'}</a></li>

</ul>

</div>

<div class="float" style="width:200px;margin:5px 10px 0 0">

{$HOOK_FOOTER}

</div>

</div>

</div>

{/if}

</body>

</html>

 

 

goodluck

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...