Articles in the Magento Customization Category
This post describes how
Magento navigation works. I hope it will help you.
The begining of all is in template file: “category/navigation/top.phtml”
foreach ($this->getStoreCategories() as $_category): ?>
< ?php endforeach ?>
There we call the method from class Mage_Catalog_Block_Navigation $this->getStoreCategories(). This method returns the array $_nodes from object Varien_Data_Tree_Node_Collection.
This array contains objects of Varien_Data_Tree_Node.
Every node is object of Varien_Data_Tree_Node and it is extension from Varien_Object.
wish to see how much categories we have, we can do it with method showed below:
We will get only number …
Many people wonder why sometimes the SID part appears in their Magento URLs. This is when your URL has additional SID query usually at the end. Take a look at the image. The curiosity is that it does not appear always. What is the most common scenario it happens? You didn’t access the site with the same domain variant you entered as your “Base URL” in your System> Configuration> Web interface.
When you decide to launch the site, you have to decide whether you will market http://www.domain.com/ URL or http://domain.com/. This …
Hi everyone. I wrote this little plugin while working on one of our projects. If you know your way around WordPress then you know what $wpdb variable stands for. Imagine the following scenario. You have WordPress installation on one database, Magento on another. You know your way around SQL. You can always make new object based on WPDB class inside your template files giving where to get viagra cheap it database access parameters, or you can use this plugin and use $MAGEDB the same way you use $wpdb.
About the Author:
CoolBlueLogo is generic cialis viagra a Promotional Product Ecommerce site. Helping marketing professionals achieve success with their incentive and customer loyalty campaigns. CoolBlueLogo is Jonathan Martin, he can be reached at firstname.lastname@example.org.
Search engines typically only …
That is all well and good for Magento. The real question is how we, as developers, add these items when we need them. How you as a …
buy steroids online
the coolest things in Magento is a form validation, and the way how it’s done. Magento uses Prototype library (which, personlay, I’m not a big fan of) to manage form validation. All you need to do when writing custom form is to assign a valid class names to your input fields. Here is an example of how your custom form might look in order to get use of automatic form validation.
<form name="<em><strong>my-custom-form</strong>" id="my-custom-form" action="" method="post">
<label for="firstname">< ?php echo $this->__(’First name’) ?> <span>*</span></label>
<input id="firstname" name="firstname" />
<label for="lastname">< …
This is not a comprehensive example buy cipro (I didn’t write out an example of editing the navigation myself … yet) – but I will point out where the files are that you need to edit the top and left navigation.
First off, the template …
The items in the footer area are in two different locations. One part is a static block created within the magento admin area (CMS > Static Block). The other part is held in the related .phtml / .php / .xml files within the design files.
First off, the XML files
Here you will find some footer puchase propecia online Cheap canadian propecia reference:
<block type="page/html_footer" name="footer" as="footer" template="page/html/footer.phtml">
<block type="page/switch" name="store_switcher" as="store_switcher" template="page/switch/stores.phtml"/>
<block type="page/template_links" name="footer_links" as="footer_links" template="page/template/links.phtml"/>
<block type="cms/block" name="cms_footer_links" before="footer_links">
The content of this block is taken from the database by its block_id.
You can …
Hi all – Here is my solution to a question I’ve seen asked many times: How to move the cart sidebar into the header area. You can use this technique to move it anywhere. This is not the only way to do this, but it is a useful one.
1) Copy the the block for the cart side bar:
<block type="checkout/cart_sidebar" name="cart_sidebar" template="checkout/cart/sidebar.phtml"/>
//there is also this full code in my version 1.1.3
<block type="checkout/cart_sidebar" name="cart_sidebar" template="checkout/cart/sidebar.phtml" before="-">
2) Open up app\design\frontend\default\default\layout\page.xml (assuming you are using the default design or didn’t create …
There are many new Magento stores that are published each day. If you are with Magento for a longer time, you will also notice that many of those look similar to default or modern Magento theme. Creating an totally unique and custom one can be a difficult process, easpecially taking into consideration number of different interfaces we have. This is why many Magento developers choose to use the CSS from one of mendioned Magento themes that come with default installation and style those up. This is not a bad choice …