The DKNZ Report Tip's on Magento, Web Development & Other Stuff

Magento templates and layout files location

It’s a bit late already, but I wanted to make sure I put at least one thing today so we’re going to go over the next question in the Magento Certification Study Guide. Here’s the question from the guide — lets get to it! Describe Magento templates and layout files location A theme consists of…

Read More

How to enable demo store notice in magento

During the development phase of the store it is necessary to put the notice so the customers can aware about that and not to place any order. You should also block your demo site for robots to crawl so that it won’t crawl your dummy content under that domain. Magento provides the setting in admin…

Read More

How to call block in phtml file in magento

It is sometime really needed to show the custom block or any static block in the PHML file. Generally on the magento websites home page or any other pages uses one column layout and it is needed to show the left of right sidebar blocks like compare products, poll, cart block which are there in…

Read More

How to display Newsletter form in Header / Footer

How to display Newsletter form in Footer 1. Go to app/design/frontend/default/your_theme/layout/ open newsletter.xml you will see code block like this : … <default> <!– Mage_Newsletter –> <reference name=”left”> <block type=”newsletter/subscribe” name=”left.newsletter” template=”newsletter/subscribe.phtml”/> </reference> </default> … 2. Add following code there like this : … <default> <!– Mage_Newsletter –> <reference name=”footer”> <block type=”newsletter/subscribe” name=”footer.newsletter” template=”newsletter/subscribe.phtml”/> </reference>…

Read More

How to speed up product imports and exports and decrease database size?

To speed up magento products imports/exports process and make database size decrease. Please run following queries of your magento database. It will truncate the unnecessary log and index tables. TRUNCATE dataflow_batch_export; TRUNCATE dataflow_batch_import; TRUNCATE log_customer; TRUNCATE log_quote; TRUNCATE log_summary; TRUNCATE log_summary_type; TRUNCATE log_url; TRUNCATE log_url_info; TRUNCATE log_visitor; TRUNCATE log_visitor_info; TRUNCATE log_visitor_online; TRUNCATE report_viewed_product_index; TRUNCATE report_compared_product_index;…

Read More

How to display category name in a custom product list on homepage?

Generally on magento store we see the products list of some category on home page. To implement that, we use list.phtml file or any custom file to show any category product list on home page using following block: {{block type=”catalog/product_list” category_id=”3″ template=”catalog/product/list.phtml”}} This block only shows products list on home page, but it doesn’t show…

Read More

Adding Static Blocks in CMS Page Magento

n Magento you can easily drop a static block into a CMS page or another static block. Static blocks are a great way to divide up different types of data blocks to make updating content easier. There are just two simple steps to adding a static block to a cms page. First, create your static…

Read More