dongzhihong3940 2013-04-30 01:51
浏览 12

Prestashop登陆页面

I'm new to prestashop and was wondering how I would go about creating a landing page for my store. I can't seem to fully wrap my mind around .tpl and hooks. Any pointers would be helpful.

Thanks in advance!

  • 写回答

1条回答 默认 最新

  • duande9301 2013-04-30 07:32
    关注

    It is easy using prestashop built in modules. Normally prestashop shows a slider, featured products, and some text (may show or not) on home page.

    If you want to display only some text, some images or a welcome page (like you said landing page), then you have to uninstall all the modules at admin and only keep the " Home text editor " module. This module provides an editor where you can insert any sort of contents like images, videos, flash contents etc etc. Place your content and save it and all those contents will be displayed on home page.

    Normally PS provides a 3 columns page layout and for landing pages normally a single column layout is used, which means, the left and right columns may be not needed. So there is another solution for it. You can remove the left and right columns from home page by making some tpl changes. Can be done as followed:

    *Left Column : * Open header.tpl file in your theme and find the following line

    <!-- Left -->
                <div id="left_column" class="column grid_2 alpha">
                    {$HOOK_LEFT_COLUMN}
                </div>
    

    and replace it with

    {if $page_name=='index'}
                <!-- Left -->
                <div id="left_column" class="column grid_2 alpha">
                    {$HOOK_LEFT_COLUMN}
                </div>
            {/if}
    

    *Right Column : * Open footer.tpl in your theme and find the following code

     <!-- Right-->
                <div id="right_column" class="column grid_2 alpha">
                    {$HOOK_RIGHT_COLUMN}
                </div>
    

    and replace it with

    {if $page_name=='index'}
                <!-- Right-->
                <div id="right_column" class="column grid_2 alpha">
                    {$HOOK_RIGHT_COLUMN}
                </div>
            {/if}
    

    This will not display the left and right columns on home page or index page. There may be some need to adjust the center column width which you may be able to do easily.

    Hope this will help.

    Thank you

    评论

报告相同问题?

悬赏问题

  • ¥15 孟德尔随机化结果不一致
  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀
  • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100
  • ¥15 关于#hadoop#的问题
  • ¥15 (标签-Python|关键词-socket)
  • ¥15 keil里为什么main.c定义的函数在it.c调用不了
  • ¥50 切换TabTip键盘的输入法
  • ¥15 可否在不同线程中调用封装数据库操作的类