16

The question is in fact, how do you change the number of product columns. The line you wish to change is generated by this code: <?php $_columnCount = $this->getColumnCount(); ?> <ul class="products-grid products-grid--max-<?php echo $_columnCount; ?>-col"> that you can find in this file: app\design\frontend\Your_Package\Your_Theme\...


15

First copy topmenu.phtml from /app/design/frontend/rwd/default/template/page/html/ Save this file as topmenu.phtml to /app/design/frontend/YOUR PACKAGE/YOUR THEME/template/page/html/ Edit this file within lines 38-40, paste the following: <?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('home-link')->toHtml(); ?> ...


12

I figured this out its actually name="left.reports.product.viewed" not the name="right.reports.product.viewed" even though it is being displayed in the right column.


12

Let us divide your problem into 3 sections and review it. 1. You need to add a template file to your CMS Page The method you adopt here will work for sure. That is you need to add this code snippet inside your cms page , under design tab <reference name="content"><block type="core/template" name="home-content" template="test.phtml" /></...


12

You have two options, you can either extend or overwrite the existing XML. Extending To extend an existing layout in a similar fashion to local.xml in Magento 1 you need to add an XML file in a location like this: <theme_dir> |__/<Namespace>_<Module> |__/layout |--<layout1>.xml |--<layout2>.xml Where <...


10

This is what you should put inside your local.xml file. <?xml version="1.0"?> <layout version="0.1.0"> <catalog_product_view> <reference name="product.info.sharing"> <action method="setTemplate"> <template>catalog/product/view/test.phtml</template> </action> ...


10

I'll try to give a general answer. How to change templates In your theme, you can override any phtml files from the default theme or parent theme. Copy the original file to app/design/frontend/[package]/[theme]/template/[path/to/phtml] and make your changes. If you don't have a project specific custom theme yet, for example because you just bought a theme,...


9

You don't need to write layout xml for this as it is available Magento->admin->Stores->Configuration->Catalog->Inventory Simply set Display Products Availability in Stock on Storefront to No.


9

maybe this helps: The Two Level cache mechanisms The « two level cache » system allows to get a fast cache backend and a slow cache backend. The main problem here is that only file and database structures allow the slow backend to be really efficient because a “home made” structuring of these content can be done. With APC or Memcached, we ...


8

In Magento 2, the equivalent to app/etc/local.xml is app/etc/env.php. You need to edit that file and everything should be fine. In case you need an example... 'db' => array ( 'connection' => array ( 'indexer' => array ( 'host' => 'localhost', 'dbname' => '<your_database_name>', 'username'...


6

If you are looking to improve the performance of the backend, neither Redis or Memcached (or any other backend) will make much of a difference. In the admin, the cache is rarely accessed (config/layout only), both of which are infrequently hit and not particularly demanding anyway. Memcached/Redis improve server concurrency under load, but do not improve ...


6

In my opinion, local.xml is not an issue you need to be tackling in version control. It's also questionable from a security perspective. I recommend you just place /app/etc/local.xml in .gitignore and set it up once on your individual environments.


6

Below code will add a Custom home link under Account drop-down in RWD theme. app/design/frontend/rwd[Package name]/[THEME NAME]/layout/local.xml <?xml version="1.0" encoding="UTF-8"?> <layout version="0.1.0"> <default> <reference name="root"> <reference name="top.links"> <action method="...


6

To do so add the following code to your local.xml file under the <default> handle: <reference name="header"> <block type="cms/block" name="my_block"> <action method="setBlockId"> <block_id>my_block</block_id> </action> </block> </reference> Then in your template/page/...


6

Unfortunately, Magento does not support page specific handles for CMS pages. You can only change title for all CMS pages via local.xml which is not what you want. I suggest you use the backend when editing the CMS page you can add the following code to the Layout Update XML section: <reference name="head"> <action method="setTitle"><...


5

Depending on the admin users / business owners, you may have a hard time getting buy-in. That's your first hurdle. The other thing you need to address are any modules which use setup scripts to write configuration setting to the database. This is a legitimate practice from which your approach deviates, and it is therefore incumbent on you to deal with this ...


5

I discovered the hard way that renaming the .xml files in the app/etc directory by prefixing them (but leaving the .xml extension) was causing problems with my Magento site. It turns out that Magento loads all *.xml files from the app/etc directory, not just global.xml and local.xml. See function loadBase() in app/code/core/Model/Config.php The .xml ...


5

Please only ask one question at once. Anyway, here you go: The following content for the local.xml works. It will add a new tab on the product page. If it does not work, your layout XML file is probably not loaded correctly. <?xml version="1.0"?> <layout version="0.1.0"> <catalog_product_view> <reference name="product.info"&...


5

I think that is not the right format for the cache nodes. My understanding is that all the cache settings should be nested inside the <cache> node. So to use two-level cache with memcached + database it would be something like this: <cache> <backend>memcached</backend> <slow_backend>database</slow_backend> <...


5

I used the solution here which itself referenced a magentocommerce.com post that now just redirects to that website's homepage (http://www.magentocommerce.com/boards/viewthread/71668/). In app/design/adminhtml/default/default/template/login.phtml I changed <form method="post" action="" id="loginForm"> to <form method="post" action="<?php ...


5

You must have your site in developer mode, switch it to production mode and you will see the 503.phtml page displayed. php bin/magento deploy:mode:set production


4

Magento is provide to move a block from layout using tag <remove name="blockname" /> As you said you want remove right content aea from the you can do this add below code in layout file <checkout_onepage_success> <reference name="root"> <remove name="right" /> </reference> </checkout_onepage_success> Alternative:...


4

try with below <cms_index_index> <block type="cms/block" name="full_width" as="full_width"> <action method="setBlockId"><block_id>full_width_static_block</block_id></action> </block> </cms_index_index> if you wish to call it within in conten part you can use like <cms_index_index> ...


4

It is actually possible to remove the "addLinkRel" without editing page.xml directly. From the Magento RWD Guide (see step 2 in the "Removing Sample Data Assets" section): <reference name="head"> <action method="removeItem"><type>link_rel</type><name>//fonts.googleapis.com/css?family=Raleway:300,400,500,700,600</name&...


4

Try the below code. No need to add reference for remove block <layout version="0.1.0"> <sendfriend_product_send translate="label"> ...... <remove name="header"/> <remove name="footer"/> ...... </sendfriend_product_send> </layout>


4

the order the config files are loaded is this (see Mage_Core_Model_Config::init): every xml file from app/etc/ every xml file from app/etc/modules every config.xml of the enabled modules database. Every lower lever overrides values from upper levels. this means that what's in the database overrides anything else (if applicable). so the xml you provided ...


4

You can set this from your controller action. Below is the reference code. public function IndexAction() { $this->loadLayout(); $this->getLayout()->getBlock("head")->setTitle($this->__("Auktionsliste")); $breadcrumbs = $this->getLayout()->getBlock("breadcrumbs"); $breadcrumbs->addCrumb("home", array( "...


4

System configuration paths are split into three (3) parts: Section, group and field. When reading the configuration, the path is constructed as: section/group/field. There are two ways to find these pieces of information out: Inspecting the form and URL I find this to be the easiest unless I know what module the configuration I'm looking for comes from. ...


3

Version 1.9.0.1 already has this Redis caching module in place. If you look in your lib/ folder, you should see two subfolders, Cm and Credis. How to use Redis on Magento CE is a start, you must have Redis 2.6.9+ installed on your server before you can proceed. Also PECL support for gzip or lzf is needed for the tag compression. Consult your app/etc/...


3

In Local.xml file magento store the database information host details of the site while installing. Just have look on your local.xml file. You need to change the following <default_setup> <connection> <host><![CDATA[localhost]]></host> <username><![CDATA[root]]></username> <...


Only top voted, non community-wiki answers of a minimum length are eligible