Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

After uploading catalog.xml the products is not getting loaded in any page - Please help
 
sridhar_orion
Jr. Member
 
Total Posts:  3
Joined:  2009-03-24
 

Hi,

I was trying to remove search terms, advanced search and left call out. As per the instructions i found in the forum I commented out the appropriate blocks in catalog.xml and catalogsearch.xml. After uploading these two files I refreshed the cache in system ------> cache management. While i tried to refresh the home page the products and about us link in footer were not loaded. I tried all possible ways, I even checked the product attributes and product categories. Everything is fine. I dunno why the content block is not getting loaded.

I have even updated my page.xml. But of no use.

Below is the xml codes in page, catalog and catalogsearch files. I have pasted the part, where i made some change, but reverted back to default. Please tell whether the below codes are right.

XML code in page.xml
<block type="page/html_header" name="header" as="header">
<block type="page/template_links" name="top.links" as="topLinks"/>
<block type="page/switch" name="store_language" as="store_language" template="page/switch/languages.phtml"/>
<block type="core/text_list" name="top.menu" as="topMenu"/>

<block type="page/html_breadcrumbs" name="breadcrumbs" as="breadcrumbs"/>

<block type="core/text_list" name="left" as="left"/>

<block type="core/messages" name="global_messages" as="global_messages"/>
<block type="core/messages" name="messages" as="messages"/>

<block type="core/text_list" name="content" as="content"/>

<block type="core/text_list" name="right" as="right"/>

<block type="page/html_footer" name="footer" as="footer" template="page/html/footer.phtml">
</block>

<block type="page/switch" name="store_switcher" as="store_switcher" template="page/switch/stores.phtml"/>

<block type="core/text_list" name="before_body_end" as="before_body_end"/>
</block>

<block type="core/profiler" output="toHtml"/>

</default>

<print>
<!-- Mage_Page -->
<block type="page/html" name="root" output="toHtml" template="page/print.phtml">

<block type="page/html_head" name="head" as="head">
<action method="addJs"><script>prototype/prototype.js</script></action>
<action method="addJs"><script>mage/translate.js</script></action>
<action method="addJs"><script>prototype/validation.js</script></action>
<action method="addJs"><script>varien/js.js</script></action>

<action method="addCss"><stylesheet>css/reset.css</stylesheet></action>
<action method="addCss"><stylesheet>css/boxes.css</stylesheet></action>
<action method="addCss"><stylesheet>css/clears.css</stylesheet></action>
<action method="addCss"><stylesheet>css/menu.css</stylesheet></action>

<action method="addItem"><type>skin_css</type><name>css/iestyles.css</name><params/><if>IE</if></action>
<action method="addItem"><type>skin_css</type><name>css/ie7.css</name><params/><if>IE 7</if></action>
<action method="addItem"><type>skin_css</type><name>css/ie7minus.css</name><params/><if>lt IE 7</if></action>

<action method="addItem"><type>js</type><name>lib/ds-sleight.js</name><params/><if>lt IE 7</if></action>
<action method="addItem"><type>js</type><name>varien/iehover-fix.js</name><params/><if>lt IE 7</if></action>

<action method="addCss"><stylesheet>css/print.css</stylesheet><params>media="print"</params></action>
</block>

<block type="core/text_list" name="content" as="content"/>

</block>
</print>
</layout>

Xml code in Catalog.xml

<default>

<!-- Mage_Catalog -->
<reference name="top.menu">
<block type="catalog/navigation" name="catalog.topnav" template="catalog/navigation/top.phtml"/>
</reference>
<reference name="left">
<block type="core/template" name="left.permanent.callout" template="callouts/left_col.phtml">
<action method="setImgSrc"><src>images/media/col_left_callout.jpg</src></action>
<action method="setImgAlt" translate="alt" module="catalog"><alt>Our customer service is available 24/7. Call us at (800) DEMO-NUMBER.</alt></action>
<action method="setLinkUrl"><url>checkout/cart</url></action>
</block>
</reference>
<reference name="right">
<block type="core/template" before="cart_sidebar" name="catalog.compare.sidebar" template="catalog/product/compare/sidebar.phtml"/>
<block type="core/template" name="right.permanent.callout" template="callouts/right_col.phtml"/>
</reference>
<reference name="footer_links">
<action method="addLink" translate="label title” module="catalog" ifconfig="catalog/seo/site_map"><label>Site Map</label><url helper="catalog/map/getCategoryUrl" /><title>Site Map</title></action>
</reference>

xml code in catalogsearch.xml

<default>
<reference name="header">
<block type="core/template" name="top.search" as="topSearch" template="catalogsearch/form.mini.phtml"/>
</reference>
<reference name="footer_links">
<action method="addLink" translate="label title” module="catalogsearch" ifconfig="catalog/seo/search_terms"><label>Search Terms</label><url helper="catalogsearch/getSearchTermUrl" /><title>Search Terms</title></action>
<action method="addLink" translate="label title” module="catalogsearch"><label>Advanced Search</label><url helper="catalogsearch/getAdvancedSearchUrl" /><title>Advanced Search</title></action>
</reference>
</default>

<catalogsearch_result_index>
<remove name="right.newsletter" />
<remove name="right.reports.product.viewed" />
<reference name="root">
<action method="setTemplate"><template>page/3columns.phtml</template></action>
</reference>
<reference name="left">
<block type="newsletter/subscribe" name="left.newsletter" template="newsletter/subscribe.phtml"/>
</reference>
<reference name="content">
<block type="catalogsearch/result" name="search.result" template="catalogsearch/result.phtml">
<block type="catalog/product_list" name="search_result_list" template="catalog/product/list.phtml"></block>
<action method="setListOrders"/>
<action method="setListModes"/>
<action method="setListCollection"/>
</block>
</reference>

<reference name="right">
<block type="reports/product_viewed" before="right.permanent.callout" name="left.reports.product.viewed" template="reports/product_viewed.phtml" />
</reference>
</catalogsearch_result_index>

<catalogsearch_advanced_index>
<!-- Mage_Catalogsearch -->
<reference name="root">
<action method="setTemplate"><template>page/2columns-right.phtml</template></action>
</reference>
<reference name="head">
<action method="addItem"><type>js_css</type><name>calendar/calendar-win2k-1.css</name><params/><!--<if/><condition>can_load_calendar_js</condition>--></action>
<action method="addItem"><type>js</type><name>calendar/calendar.js</name><!--<params/><if/><condition>can_load_calendar_js</condition>--></action>
<action method="addItem"><type>js</type><name>calendar/lang/calendar-en.js</name><!--<params/><if/><condition>can_load_calendar_js</condition>--></action>
<action method="addItem"><type>js</type><name>calendar/calendar-setup.js</name><!--<params/><if/><condition>can_load_calendar_js</condition>--></action>
</reference>
<reference name="content">
<block type="catalogsearch/advanced_form" name="catalogsearch_advanced_form" template="catalogsearch/advanced/form.phtml"/>
</reference>
</catalogsearch_advanced_index>

<!--
Advanced search results
-->

<catalogsearch_advanced_result>
<!-- Mage_Catalogsearch -->
<reference name="root">
<action method="setTemplate"><template>page/2columns-right.phtml</template></action>
</reference>
<reference name="content">
<block type="catalogsearch/advanced_result" name="catalogsearch_advanced_result" template="catalogsearch/advanced/result.phtml">
<block type="catalog/product_list" name="search_result_list" template="catalog/product/list.phtml"></block>
<action method="setListOrders"/>
<action method="setListModes"/>
<action method="setListCollection"/>
</block>
</reference>
</catalogsearch_advanced_result>

<catalogsearch_term_popular>
<remove name="right"/>
<remove name="left"/>

<reference name="root">
<action method="setTemplate"><template>page/1column.phtml</template></action>
</reference>
<reference name="content">
<block type="catalogsearch/term" name="seo.searchterm" template="catalogsearch/term.phtml"/>
</reference>
</catalogsearch_term_popular>

</layout>

My website is www.oxbridgegames.com. Please let me know the ways to make products reappear on the home page.

Thanks,
Sridhar

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top