Install a bundle for one of the Magento pages?

I have this page, for example, which does not have an appropriate palette set: http://www.princessly.com/checkout/cart/

Itโ€™s just โ€œHome โ†’โ€ and that he is.

How can I do this "Homepage> Shopping Cart"?

So far, I can only find the breadcrumb template, which is template / page / html / breadcrumbs.phtml, but I don't know how to do this.

Suppose I have to add a line to a shopping cart page template?

+4
source share
2 answers

Try adding the following code to the local.xml of your theme:

<checkout_cart_index> <reference name="breadcrumbs"> <action method="addCrumb"> <crumbName>Home</crumbName> <crumbInfo><label>Home</label><title>Home</title><link>/home</link></crumbInfo> </action> <action method="addCrumb"> <crumbName>Shopping Cart</crumbName> <crumbInfo><label>Shopping Cart</label><title>Shopping Cart</title><link>/checkout/cart</link></crumbInfo> </action> </reference> </checkout_cart_index> 
+9
source

For some reason, sometimes we need to touch the template at code> page> html> breadcrumbs.phtml. Just remember to move to your template.

 <?php if($crumbs && is_array($crumbs)): ?> <div class="breadcrumbs"> <ul> <?php foreach($crumbs as $_crumbName=>$_crumbInfo): ?> <li class="<?php echo $_crumbName ?>"> <?php if($_crumbInfo['link']): ?> <a href="<?php echo $_crumbInfo['link'] ?>" title="<?php echo $this->__($this->htmlEscape($_crumbInfo['title'])) ?>"><?php echo $this->__($this->htmlEscape($_crumbInfo['label'])) ?></a> <?php elseif($_crumbInfo['last']): ?> <strong><?php echo $this->__($this->htmlEscape($_crumbInfo['label'])) ?></strong> <?php else: ?> <?php echo $this->__($this->htmlEscape($_crumbInfo['label'])) ?> <?php endif; ?> <?php if(!$_crumbInfo['last']): ?> <span>/ </span> <?php endif; ?> </li> <?php endforeach; ?> </ul> </div> <?php endif; ?> 

Translation in progress

 $this->__("someText"); 
0
source

Source: https://habr.com/ru/post/1389780/


All Articles