Magento Themes and Magento Extensions

Magento How to: Cron jobs for Modules

Share
Posted on January 9th, 2015 | Posted by admin

It’s inevitable that you’ll want to create a cron job for your Magento modules at some point. An obvious solution would be to make the user create a new crontab entry calling your script. There’s no need. Magento has cron functionality built in.

Simply edit your config.xml, adding the following:

<config>
...
<crontab>
<jobs>
<shipwire_inventorysynch>
<schedule><cron_expr>*/6 * * * *</cron_expr></schedule>
<run><model>shipwire/api_inventorysynch::cron</model></run>
</shipwire_inventorysynch>
</jobs>

How to choose Magento Agency?

Share
Posted on January 7th, 2015 | Posted by admin

Let’s say that You have just decided to implement an online store – it will be Your first perfect store. After many days and nights of searching right platform, You state that the most ideal platform for You is Magento – easy to use with a huge potential platform. Anyway, who exactly can implement Your store?

When You type “Magento implementation” in search engine, this probably results in billions of answers. Do you choose the first company on the list? Maybe the cheapest would be perfect? Or the one that has the most fans on Facebook? Perhaps You have a friend who knows much about the computers? Maybe he can do that, who knows.

Well, the choice of company implementing Magento can be scarier than lunch with mother in law. Below are some steps that may help you in your selection:

CUSTOM SORTING BY NEW IN PRODUCTS ON CATEGORY PAGE AND LAYERED NAVIGATION IN MAGENTO

Share
Posted on January 6th, 2015 | Posted by admin

If you want to customize your sorting on category page’s toolbar section, please follow below given suggested method: Create a custom module for overriding Catalog/Block/Product/List/Toolbar.php For that , you must follow the procudure to create a custom module in magento as:

  • code
  • source
  1. <config>
  2. <modules>
  3. <eglobe_catalog>
  4. <active>true</active>
  5. <codepool>local</codepool>
  6. </eglobe_catalog>
  7. </modules>

Get Configurable Super Attributes

Share
Posted on January 5th, 2015 | Posted by admin

I wanted to do a check on a configurable product to see if it had a specific attribute. But not just any attribute, a global attribute used to create associated products within the configurable product – a “Super Product Attribute”. So here ya go:

    $_product = $this->getProduct();
    $_attributes = $_product->getTypeInstance(true)->getConfigurableAttributes($_product);
    foreach($_attributes as $_attribute){
        var_dump($_attribute->debug());
    }

A little bonus:

The “->debug()” method returns the set of values you can use the get magic method on. For example:

Page 3 of 3«123