Magento Themes and Magento Extensions

Magento cron job issue solution

Share
Posted on September 16th, 2011 | Posted by admin

Recently While developing a custom module with cron job i faced an issue, my cron job was not executed successfully. When i inspected the cron_schedule table in database it shows the status as error and the below message was found in messages field.
‘Mage_Core_Exception’ with message ‘Invalid callback: mymodel/observer::observermethod doesn’t exist
My model class is not recognized. But i have my observer class in the Model directory. I have my config.xml as below

<crontab>
<jobs>
<mycompany_modulename>
<schedule>
<cron_expr>*/5 * * * *</cron_expr>
</schedule>
<run>
<model>modulename/observer::methodcall</model>
</run>
</mycompany_modulename>
</jobs>
</crontab>

Since iam using only the observer class in my model directory and not using any other model class i didnt
add any entry for model class in the config.xml. But Magento is looking for model class name. In case if your magento cron job is not working the solution is to add a model class configuration entry in config.xml above the crontab tag.

How to remove .html from Magento

Share
Posted on September 13th, 2011 | Posted by admin

There is an easy way to improve the SEO of your Magento store by removing the .html extension from the url

Example:

We have a category called Shoes

http://mydomain.com/default/shoes.html

And we want to have an URL like this:

http://mydomain.com/default/shoes

Now go to your Admin Panel. System -> Configuration. Then go to Catalog and expand the Search Engine Optimization tab.

Remove the “.html” text from both the input fields. Product URL Suffix and Category URL Suffix.

Finally the page will look like this screenshot:

Displaying New Products in Magento with Pagination

Share
Posted on September 13th, 2011 | Posted by admin

Just recently we ran into an issue where we wanted to display all new products added to a specific category in our Magento site with pagination. To make things more complicated, we wanted to display this by using a CMS page. The default functionality that Magento provides for new products just didn’t cut it in our case. We had to come up with something different and I am documenting it here for everyone’s benefit. This method will allow you to add new products to a Magento CMS page and pull up new products for any category you choose, or for the entire site. Whether you want to add new products to your CMS page by category or for the entire site, it’s up to you.

Adding New Products with Built in Magento Tools

First, let’s set the record straight. It is possible to display a list of new products in Magento using a default block. You can do this without any coding changes or modifications to Magento itself. This code will allow you to bring up a list of new products on one of your CMS pages. It is also possible to use this to bring new products up within a template file or on your homepage, though we are not covering that here.

1 {{block type="catalog/product_new" column_count="6" products_count="400" name="home.catalog.product.new" alias="product_homepage" template="catalog/product/new.phtml"}}

The above code will bring up your 400 newest products in 6 columns. You can change thecolumn_count and products_count variable so that any number of columns or products is shown. You can display all of your newest products by changing the products_count variable to zero. OK, so this is all good, but it’s not what we want. We want to display an entire page of our new products with the pagination toolbar, and we want to display the products with a Magento CMS page. It’s quite simple to accomplish this, and here is how you can do it.

BestSeller Product Vertical Scroller

Share
Posted on September 10th, 2011 | Posted by admin

Using this module you will have a scroller or carousel showing your BestSeller Products. The scroller will show the top sales products. Also with the aim to give customers more information. Your website can easily show featured products in the side bar left or side bar right as block.

HOW DOES IT WORK? BestSeller Product Vertical Scroller is an useful magento extension that allows the customers to see top bestseller product. It can be said that this magento extension provides an ease to the visitors, and thus attract more visitors to your online store. Lets get BestSeller Product Vertical Scroller to increase your sale.

FEATURES

  1. Admin Settings: You can choose how many products are shown, time between items, etc.
  2. Easy installation. 1 minute. Simply copy the provided files to your magento directory. (Full documentation included).
  3. Our modules include one year of free updates/upgrades.
  4. Seperated HTML/CSS, W3C validated
  5. Support Magento Version 1.4.x and 1.5.x
  6. 100% open source
  7. Support free guarantee
  8. Live support is always ready

New Product Vertical Scroller

Share
Posted on September 10th, 2011 | Posted by admin

Using this module you will have a scroller or carousel showing your New Products. Your website can easily show new products in the side bar left or side bar right as block.

HOW DOES IT WORK? New Product Vertical Scroller is an useful magento extension that allows the customers to see top new product. It can be said that this magento extension provides an ease to the visitors, and thus attract more visitors to your online store. Lets get New Product Vertical Scroller to increase your sale.

FEATURES

  1. Admin Settings: You can choose how many products are shown, time between items, etc.
  2. Easy installation. 1 minute. Simply copy the provided files to your magento directory. (Full documentation included).
  3. Our modules include one year of free updates/upgrades.
  4. Seperated HTML/CSS, W3C validated
  5. Support Magento Version 1.4.x and 1.5.x
  6. 100% open source
  7. Support free guarantee
  8. Live support is always ready