prestashop1.5 breadcrumb添加样式


prestashop默认版本产品相关页 breadcrumb最后的节点是文本,没有任何html标签包裹。 加上标签后就可以写css样式修饰了。

1. 打开controllers/front/ProductController.php;
2. 查找到 protected function assignCategory() 大约在436行;
3.将代码 修改为;
protected function assignCategory()
// Assign category to the template
if ($this->category !== false && Validate::isLoadedObject($this->category))
‘path’ => Tools::getPath($this->category->id, ‘<span  “nav_last”>’.$this->product->name.'</span>’, true),
‘category’ => $this->category,
‘subCategories’ => $this->category->getSubCategories($this->context->language->id, true),
‘id_category_current’ => (int)$this->category->id,
‘id_category_parent’ => (int)$this->category->id_parent,
‘return_category_name’ => Tools::safeOutput($this->category->name)
$this->context->smarty->assign(‘path’, Tools::getPath((int)$this->product->id_category_default, ‘<span class=”nav_last”>’.$this->product->name.'</span>’));

$this->context->smarty->assign(‘categories’, Category::getHomeCategories($this->context->language->id));
$this->context->smarty->assign(array(‘HOOK_PRODUCT_FOOTER’ => Hook::exec(‘displayFooterProduct’, array(‘product’ => $this->product, ‘category’ => $this->category))));

产品页面breadcrumb 最后一个节点添加span标签

产品页面breadcrumb 最后一个节点添加span标签




prestashop1.5 breadcrumb添加样式》有3,643个想法

  1. activate windows by kms

    An outstanding share! I’ve just forwarded this onto a colleague who was doing a little homework on this. And he in fact ordered me breakfast simply because I stumbled upon it for him… lol. So let me reword this…. Thanks for the meal!! But yeah, thanks for spending some time to talk about this topic here on your blog.|

  2. Lowell Sloma

    Greetings! I’ve been following your blog for some time now and finally got the bravery to go ahead and give you a shout out from New Caney Texas! Just wanted to mention keep up the great work!|

  3. Shanon Dumdei

    I’ve been browsing online more than 2 hours today, yet I never found any interesting article like yours. It’s pretty worth enough for me. In my view, if all website owners and bloggers made good content as you did, the internet will be a lot more useful than ever before.|

  4. Joeveige

    [url=]chloroquine for coronavirus[/url] [url=]ivermectin 200mg[/url] [url=]kamagra oral jelly women[/url] [url=]cafergot internet pharmacy[/url] [url=]prozac where to buy[/url]

  5. Tod Hrcka

    Hey there would you mind letting me know which webhost you’re working with? I’ve loaded your blog in 3 different internet browsers and I must say this blog loads a lot quicker then most. Can you suggest a good hosting provider at a fair price? Many thanks, I appreciate it!|

  6. Jackveige

    [url=]generic vardenafil canadian pharmacy[/url] [url=]where can i where to buy cafergot for migraines[/url] [url=]cialis comparison[/url] [url=]stromectol ebay[/url] [url=]otc cialis 2018[/url] [url=]kamagra oral jelly in melbourne[/url]

  7. Jasonveige

    [url=]cilais[/url] [url=]fluoxetine uk online[/url] [url=]sildalis canada[/url] [url=]fluoxetine 10mg coupon[/url] [url=]tadacip for sale uk[/url] [url=]buy antabuse online safely[/url] [url=]chloroquine otc uk[/url] [url=]vardenafil 5mg[/url] [url=]ivermectin buy[/url] [url=]viagra prescription uk[/url]

  8. Jimveige

    [url=]where can i buy cialis without a prescription[/url] [url=]generic viagra for sale uk[/url] [url=]prednisone 5 tablet[/url]


    I have been exploring for a little for any high-quality articles or weblog posts on this
    sort of house . Exploring in Yahoo I eventually stumbled upon this web site.
    Studying this info So i’m glad to exhibit that I have a very just right
    uncanny feeling I discovered just what I needed. I most
    no doubt will make certain to do not forget this site and give it a glance on a relentless

  10. Jackveige

    [url=]kamagra jelly price thailand[/url] [url=]sildenafil 2[/url] [url=]ciprofloxacin 250mg price[/url] [url=]generic cialis drugs[/url] [url=]how much is generic sildenafil[/url] [url=]tadalafil 40 mg price[/url] [url=]can i buy sildenafil citrate[/url]

  11. Elliott Deglopper

    We’re a group of volunteers and starting a new scheme in our community. Your web site offered us with valuable information to work on. You’ve done an impressive job and our whole community will be thankful to you.|