Magento Themes and Magento Extensions

What technical skills you need for running a Magento store?

Share
Posted on November 30th, 2012 | Posted by admin

We’ve been asked by quite a lot of people about what technical skills are needed to run a Magento store? The answer is of course, the more the better: PHP, HTML, CSS, Javascript, linux etc. Basically, if you don’t know much about technical skills listed in this article, you can still run the Magento store well. However, those skills will benefits you a lot for your Magento admin. Here in this article, we go through some technical skills that you should have and will help you a lot in your e business for your Magento store.

HTML/CSS skills

This is crucial for an excellent web administrator to manage a magento store for editing product description or content page, or CMS pages like “about us”, “contact us”. HTML defines the content of the web page, while CSS defines the style of the web page. Be skillful with them and start your eCommerce journey with Magento. You may learn HTML/CSS from W3C.

Magento is difficult to modify and customize

Share
Posted on November 29th, 2012 | Posted by admin

I’ve recently started a side project for a friend building an ecommerce solution that requires some customizations.  I’ve read about Magento and attended a presentation about it at ZendCon 2008 by a couple guys from Varien, the company that built Magento, and viewed a few of their sample sites.  Because I have years of experience with oscommerce ecommerce, I was eager to dive right in and customize one of these!  Unfortunately, it turns out Magento sucks to work on.  Yes, I said Magento sucks.

Features

Magento has nearly all the ecommerce features you could imagine.  It has pretty much everything that oscommerce ever had, even after installing a hundred community contributions. They support downloadable products, grouped products, different customer types (retail, wholesale) and pricing for each, and a variety of payment and shipping modules.  Magento has “current” features such as tagging and tag clouds and on the backend also has a caching mechanism to speed things up on the site.

ADDING A CSS CLASS TO LAST DIV USING JQUERY

Share
Posted on November 28th, 2012 | Posted by admin

This is an issue I come across from time to time, especially when using wordpress or anything else that dynamically produces content.

The scenario is you have a list of posts on a page and you’re not able to add a class to the last item in the list (say to remove a separating border).

One option would be to to use the pseudo css class :last-child in your css e.g:

1
.post:last-child{border-bottom:none;}

This would then remove the border on the last post div, which is a nice simple fix. The only downside is that :last-child doesn’t work in IE7+8 (surprise surprise).

So here is a nice simple jQuery fix to the problem.

Rewriting Or Rerouting A Controller

Share
Posted on November 27th, 2012 | Posted by admin

Just as with models/blocks/helpers, there are times when we want to change the way a core Magento controller works. Since we DON’T EVER WANT TO CHANGE THE CORE, we need a way to tell a request to use OUR controller instead of Magento’s controller. We do this by changing the configurations that hold the routing instructions.

Many MVC frameworks use the concept of a route to tell the application how to map the URL to the correct controller/action. Magento has part of that mapping in the config.xml. Below is an example of a common route configuration for the frontend.

1
2
3
4
5
6
7
8
9
10
11
<frontend>
<routers>
<awesome>
<use>standard</use>
<args>
<module>Super_Awesome</module>
<frontName>awesome</frontName>
</args>
</awesome>
</routers>
</frontend>

With that frontend route, a url that looks like this: http://example.com/awesome/noun/verb will be routed to the NounController’s verbAction() inside the Super_Awesome module.

Magento Exception with message ‘Warning: include(Mage\xxxx\Helper\Data.php)

Share
Posted on November 26th, 2012 | Posted by admin

If you receive this error with Magento Exception with message ‘Warning: include(Mage\xxxx\Helper\Data.php) then it means you’re calling a helper somewhere and the helper’s XML config is missing. For this example, let’s say we have a helper called “custom”. First, ensure you’ve created a class at /app/code/local/Yourcompany/Custom/Helper/Data.php . Inside Data.php, there should be the following class:

<?php
class Yourcompany_Custom_Helper_Data extends Mage_Core_Helper_Abstract{}

Then in the file /app/etc/config.xml OR /app/code/local/Yourcompany/Custom/etc/config.xml, add the below xml:

Page 1 of 712345»...Last »