Home Archive

Articles in the Magento eCommerce Category

7 Jul 7 Jul 2009 8Comment

We know that we can call a block to show products in your home page or in any CMS page. We MUST specify category ID:

{{block type=”catalog/product_list” category_id=”5″
template=”catalog/product/list.phtml”}}
Now, what if I want to show products from multiple categories or simply show all my products?
Well, here’s what I did. I created a custom module to extend some core classes, and I did it this way:
Activate custom module
app/etc/modules/ModuleName_All.xml

<?xml version="1.0"?></pre>
<config>
<modules>
<ModuleName_Catalog>
<active>true</active>
<codePool>local</codePool>
</ModuleName_Catalog>
</modules>
</config>

Set up the module
Here, we set up our blocks and extend our Colletion class.
app/code/local/ModuleName/Catalog/etc/config.xml

<?xml version="1.0"?>
<config>
<modules>
<ModuleName_Catalog>
<version>0.1.0</version>
</ModuleName_Catalog>
</modules>
<global>
<blocks>
<ModuleName_catalog>
<class>ModuleName_Catalog_Block</class>
</ModuleName_catalog>
</blocks>
<models>
<catalog_resource_eav_mysql4>
<rewrite>
<product_collection>
ModuleName_Catalog_Model_Resource_Eav_Mysql4_Product_Collection
</product_collection>
</rewrite>
</catalog_resource_eav_mysql4>
</models>
</global>
</config>

Listcategories class
app/code/local/ModuleName/Catalog/Block/Product/Listcategories.php

class ModuleName_Catalog_Block_Product_Listcategories
extends Mage_Catalog_Block_Product_List{

//same function from Mage_Catalog_Block_Product_List
protected …

Read More

 
3 Jul 3 Jul 2009 Comments Off

When you use multi-languages, You want category url for each language is difference.
Example:
For category is Electronics
you want in the English it will is www.yourmagentosite.com/electronics
However in the other language( French example) it will be www.yourmagentosite.com/frenchname.
However in magento: the url key for category is always is Global. So when you change it for a storeview, it will be changed for all storeviews.
The url_key in manager attribute only apply for products, so change it will don”t work for category.
So we Different casino games online allocate different reward points per real-money currency …

Read More

 
28 Jun 28 Jun 2009 1Comment

We have got many requests lately about how to add SSL (https)-support in Magento. Here is instructions on how to add SSL-support to a Magento-installation.
Who needs SSL?
SSL is important for stores who want their customers to be sure everything they enter in the Account-area and Checkout-area is encrypted along the way from their browser to your server. Stores with payment-gateways where the customer type in their creditcard-information directly in Magento and is not transferred to a secure page at the creditcard-providers servers will also need SSL.
So what do I need …

Read More

 
28 Jun 28 Jun 2009 7Comment

With the latest release of Magento 1.3, there really is no escaping the fact that Magento is the number one software for your eCommerce site. With it’s flexibility and scalability there is very little you can’t get Magento to do in an eCommerce environment. Granted, the CMS options could be and perhaps should be a bit more flexible compared to the rest, but they do the trick. There only one thing Magento can’t do and that is blog.
Where Magento is becoming the dominant software for eCommerce websites, is WordPress already …

Read More

 
28 Jun 28 Jun 2009 Comments Off

Adding your logo to Magento is probably one of the easiest procedures there are.
You will need to have your own logo, whether its a .GIF, .JPG or .PNG. We will recommend you use a .PNG as its transparency works great for the web.
All you will need to do is overwrite the current logo (if your using a .GIF image) in ‘skin/frontend/default/images/logo.gif’.
If you are What do we have for you? Well, plenty of games such as slots, card games , table games , roulette, video poker and …

Read More

 
28 Jun 28 Jun 2009 Comments Off

buying viagra in chinabupropion overdose

Read More

 
28 Jun 28 Jun 2009 3Comment

Many people wonder how you go by adding additional links to your Category menu items on Magento. This is another straight forward tutorial and will break it down for you to make it as simple as possible.
To get started you will need to locate and open “app/design/frontend/default/<yourtheme>/template/catalog/navigation/top.phtml” file. Once opened, scroll down and you will see something that sort of look like this:
<ul id=”nav”>
<li><a href=”<?php echo $this->getUrl(”)?>”><span>
<?php echo $this->__(’Homepage’) ?></span></a></li>
<?php foreach ($this->getStoreCategories() as $_category): …

Read More

 
28 Jun 28 Jun 2009 Comments Off

Another major question people ask is how to add a Category Products on the homepage. This again, is a very simple task and I will once again explain how it all works.
When you purchase one of our themes you will see a folder name called “code” and inside that folder a file called “homepage_code.txt” this can by the way be ignored if you aren’t actually using one of our themes.
This piece of coding is what should be added in your “Content” area by going to CMS > Manage Pages > …

Read More

 
28 Jun 28 Jun 2009 2Comment

I have already talked about flexible architecture of Magento Commerce in my previous posts. As Magento allows to customize its default behavior without touching and modifying the existing code, we can override any of the existing class by defining our own in our out of the box extensions. I have also played with Magento by creating variety of extensions, and believe me, it was a real fun of programming. Magento allowed me to change everything I desired.
But I was still feeling that something is missing! And that missing thing was …

Read More

 
28 Jun 28 Jun 2009 7Comment

In my previous post, I had explained a way to add extra controllers to existing route. Here I am going to explain another method which is used for overriding controllers and actions. Like my each post on tips & tricks, I am going to first explain where the trick is applicable! I am considering that readers of this post are aware of MVC architecture in Magento.
Let me explain the difference between the both tricks. The trick explained in previous post is used when we need additional URLs in same route …

Read More