Magento Resource | E-Commerce Generation Explorer

TAG | cms

Open the file /app/design/frontend/default/default/layout/checkout.xml

Remember if you are using a different theme the path to that file will be slightly different.

Remove this line:

1
<block type=”checkout/cart_shipping” name=”checkout.cart.shipping” as=”shipping” template=”checkout/cart/shipping.phtml”/>

·

You need to edit the following file:
/app/design/your_interface/your_theme/layout/catalogsearch.xml

Search for setTemplate. It’s located in 4 places in the page. (catalogsearch_result_index, catalogsearch_advanced_index, catalogsearch_advanced_result and catalogsearch_term_popular)

For example:

1
<action method="setTemplate"><template>page/2columns-left.phtml</template></action>

Update the name of the template you wish to use in between the tags

After update:

1
<action method="setTemplate"><template>page/newtemplate.phtml</template></action>

All Done!

· ·

This a very popular problem, after some people updated the MAGENTO to 1.3.2.2 or 1.3.2.3, there are one error shows on the back-end CMS section:

Fatal error: Call to a member function children() on a non-object in /home/xxxxx/public_html/store/app/code/core/Mage/Adminhtml/Block/Cms/Page/Grid.php on line 72

(more…)

· · ·

Here is a tutorial for how to add login form on the Home page.

Open customer.xml from layout folder, and find (around line 91)

1
2
3
<reference name=”content”>
<block type=”customer/form_login” name=”customer_form_login” template=”customer/form/login.phtml”></block>
</reference>

Then open cms.xml and find (around line 46)

1
2
3
<reference name=”content”>
<block type=”cms/page” name=”cms_page”></block>
</reference>

(more…)

· · ·

How to use PHP on a CMS page (MAGENTO custom Block/module)
Here is a guide to explain how to use PHP on a CMS page.
This involves creating and/or extending and/or overriding a controller class.
Here are the basic instructions to create a custom module:

1. Declare the module: app/etc/modules/YourModule_All.xml

1
2
3
4
5
6
7
8
9
< ?xml version="1.0"?>
<config>
<modules>
<yourmodule_custom>
<active>true</active>
<codepool>local</codepool>
</yourmodule_custom>
</modules>
</config>

(more…)

· ·

Theme Design by devolux.nh2.me