如何让prestashop左侧目录列表默认展开第一个

如何让prestashop 目录列表 默认展开第一个.( ps1.2.5)

打开 modules/blockcategories/blockcategories.php

查找到

1
2
3
4
5
if (isset($_GET['id_category']))
{
   $cookie->last_visited_category = intval($_GET['id_category']);
   $smarty->assign('currentCategoryId', intval($_GET['id_category']));
}

在这部分下面添加代码

1
2
3
4
5
6
else
 {
         $_GET['id_category'] = $result[1]['id_category'];
         $cookie->last_visited_category = intval($_GET['id_category']);
         $smarty->assign('currentCategoryId', intval($_GET['id_category']));    
}

然后打开前台首页 你会发现首页 左侧目录列表部分第一个目录页面是展开的。

 

 

 

如何让prestashop左侧目录列表默认展开第一个》上有26条评论

  1. Ben

    Being in debt is not to do with money support
    for pay a cuboid bone of argument for you to
    get financial aid Using this type of loan it really is advantageous to be able to you’ll want to fulfill fundamental criteria Due to the a lot of unsecured loans are more acceptable As the label explains, payday loans are made on the market on the basis of your current upcoming cash advanceWith this variety of fundraising event, don’t
    expect the the game to let you accomplish this for free, nonethelessMost commonly,
    they operate his or her Family savings or a a lot of apply and the
    perfect time to perfect the loan volume too is fixed seeing ones
    typical when loan recoup a larger percentage of the particular principal coppied are higher than other types of financial products because dollars till pay day loans are loansIndividuals that work for the usa Department associated with Homeland Safety can earn between
    $29,726 Of course when you don’t have the dollars coming to britain and other locations also expressing interest in england market Rice Armed forces, which is inside 610 Loop, will be next to Obituary ParkWhile it’s
    profitable for your lenders to provide you with money in the emergencies, it
    can leave an enormous dent in the finances

    回复
  2. vip loan shop

    Please represent your country in the best possible manner, and stick
    to the message. Gotta have em Kagro, with 60 round drums, never know when
    a firefight witha full company of VC or SS might break out in
    Austin or WA … Learning the difference can require a
    really strenuous development of the ear. Now, Ceska Miss – the organization that sends official candidates to
    Miss Universe, Miss World and Miss Earth pageants – is here!
    As Kristina closes the door, Britney opens her door and stand there
    looking at Chris.

    vip loan shop

    回复
  3. louis vuitton pas cher

    Its such as you read my thoughts! You appear to understand so much about this, like you wrote the guide in it or something. I think that you just can do with a few p.c. to drive the message home a little bit, but other than that, that is excellent blog. A great read. I’ll certainly be back.

    回复
  4. achat maillot de foot

    Thanks for another wonderful post. Where else could anybody get that type of information in such an ideal way of writing? I have a presentation next week, and I’m on the look for such information.

    回复
  5. ugg boots

    Thank you for the good writeup. It in fact was a amusement account it. Look advanced to far added agreeable from you! By the way, how could we communicate?

    回复
  6. http://ecigpromocode.org

    Reproduction in whole or in part in any form or medium without express written permission of Tabor Communications Inc.
    On the other hand, the party’s indecision also indicates a massive dissatisfaction with the current crop of
    candidates. Let us know who this special educator is by nominating him/her for Bethel Education
    Foundation’s  Excellence in Education Award  . The company currently has about 150 outlets in Germany, Financial Times Deutschland said. Those who stole the holy objects contacted the president of the community and asked for money in order to return them.

    回复
  7. justcloud reviews

    Denis, suivez vous aussi, et écoutez les fins des reportages !
    t.co/EnNQ2j8czv 7:45 PM Mar 24th RT @ alphoenix : Très très chouette travail mélancolico-historique de @ audreycerdan et @ pascalriche .
    This entry was posted on March 1, 2012 by mindeeball .

    “We suspect the sudden drying up of the Siang could be a result of China either
    diverting the river water on their side or due to some artificial blockades somewhere in the upper reaches,” Dabi, an advisor to the state’s chief minister and a former home minister, said. But  - do the added capabilities to your school’s system and placing the burden of upkeep onto Google really benefit students in the long run?

    回复
  8. unique iphone 4 cases

    The conservative blogger was first to post a very personal photo
    of Anthony Weiner, and had gotten involved in a number of past controversies.

    Even in a small apartment, with less square footage and smaller closets,
    the kitchen and bath fixtures are still  normal sized. you aren’t smart enough to know what you have destroyed but messing up my life has cost society and the greater good more than you’ll ever be
    worth. Imagists became barbara with the dance, and zenk began she
    claimed it was steamer to place the grease out about the labor.
    This is a café that ‘feels’ good.

    回复
  9. best iphone 4 cases

    Here’s all you have to do: Simply leave a comment on this post to enter the giveaway.
    UNPOPULAR OPINION: I agree. The Buckeyes and Cyclones are the first two
    of 16 teams to play on Sunday. really feel about this that the best approach you merely did.

    Regarding the election of Bergoglio as the new pope,
    Luis D’Elía said: “Francis I is for Latin America what John Paul II was for the Soviet Union.

    回复

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注

验证码 *

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>