Archive for the ‘Magento’ Category

E-Mailing Marketing Service

Posted: September 20, 2016 in Extensions, Magento

An alternative to the known Mailchimp service is the Portuguese E-Goi service.

They offer the same time of service with a competitive price which also includes SMS marketing tools.

Check them out here

email_marketing_en_250x250

 

Advertisements

Booking in Magento

Posted: February 9, 2015 in Extensions, Magento
Tags: , ,

To setup a booking system in magento you can use this extension

Deals in Magento

Posted: February 4, 2015 in Extensions, Magento
Tags: ,

You can get a product deal extension from apptha to increase your revenues!

CHECK IT OUT HERE!

Cron job not working

Posted: February 4, 2015 in How To?, Magento

Setup the cron job:

Test it by running on the browser

Not working?

  • Open the Magento cron.php file in a text editor.
  • Locate the block
    $disabledFuncs = explode(',', ini_get('disable_functions'));
    $isShellDisabled = is_array($disabledFuncs) ? in_array('shell_exec', $disabledFuncs) : true;
    $isShellDisabled = (stripos(PHP_OS, 'win') === false) ? $isShellDisabled : true;
  • Copy the following line of code and paste it after the code block you located in step 2:
    $isShellDisabled = true;

Sort product list by stock

Posted: February 2, 2015 in How To?, Magento
Tags: ,

Use

$this->_productCollection = $layer->getProductCollection()->joinField('inventory_in_stock', 'cataloginventory_stock_item', 'is_in_stock', 'product_id=entity_id','is_in_stock>=0', 'left')->setOrder('inventory_in_stock','desc');

If you want to just list Out of Stock products use:

$collection->joinField('inventory_in_stock', 'cataloginventory_stock_item', 'is_in_stock', 'product_id=entity_id','{{table}}.is_in_stock=0');

Delete Orders and Data

Posted: January 27, 2015 in Extensions, How To?, Magento
Tags: , ,

Want to delete orders in magento including invoices and shipment info?

Use the wyomind extension at http://www.magentocommerce.com/magento-connect/orders-eraser.html

How to get the remaining amount for free shipping?

On the checkout/cart.phtml add the following function and create a div to put the value.

function getRemainingAmount() {
      // Without TAX
      $total = Mage::getSingleton('checkout/cart')->getQuote()->getSubtotal();

      // With TAX
      $totals = Mage::getSingleton('checkout/cart')->getQuote()->getTotals(); 
      $total = $totals["subtotal"]->getValue();  
     
     // From free shipping method 
     $minimum = Mage::getStoreConfig("carriers/freeshipping/free_shipping_subtotal");

     // From table rate free
     $tablerateColl = Mage::getResourceModel('shipping/carrier_tablerate_collection');
     $minimum = 0;
     foreach ($tablerateColl as $tablerate) {
           $line = $tablerate->getData();
           if ($line['price'] == 0) $minimum = $line['condition_value'];
     }

      // return <0 if already free
      // Format returned value using Mage::helper('checkout')->formatPrice(<remaining value>)
      return $minimum - $total;
}

Auto shipping apply to cart

Posted: January 17, 2015 in Extensions
Tags: ,

If you want to automatically apply shipping to your cart use the extension Auto Shipping Pro.

Download at http://www.magentocommerce.com/magento-connect/auto-shipping-pro.html

Search in stock products in Magento

Posted: January 17, 2015 in How To?, Magento
Tags:

Want to setup a checkbox in advanced search for in stock products?

  1. Add the checkbox to the advanced search page (name ‘stock’ to the checkbox)
  2. Clone file /app/code/Mage/CatalogSearch/Model/Advance.php to /app/code/local/Mage/CatalogSearch/Model/Advance.php
  3. In the new file add to function prepareProductCollection the following code (before the return $this; statement)
    if (Mage::app()->getRequest()->getParam('stock')) {
    Mage::getSingleton('cataloginventory/stock')->addInStockFilterToCollection($collection);
    }

For the regular search box:

  1. Add the checkbox to the search block (name ‘stock’ to the checkbox)
  2. Clone file /app/code/Mage/CatalogSearch/Model/Layer.php to /app/code/local/Mage/CatalogSearch/Model/Layer.php
  3. In the new file add to function prepareProductCollection the following code (before the return $this; statement)
    if (Mage::app()->getRequest()->getParam('stock')) {
    Mage::getSingleton('cataloginventory/stock')->addInStockFilterToCollection($collection);
    }

Here is how you create and external link in the top links menu in magento:

<reference name="root">
<reference name="top.links">
    <action method="addLink" translate="label title">
        <label>example</label>
        <url>http://myotherexampledomain.com</url> 
        <title>example</title>
        <prepare/>
        <urlParams/> 
        <position>100</position>
        <liParams/>
        <aParams>class="top-link-example"</aParams>
        <beforeText></beforeText>
        <afterText></afterText>
    </action>
</reference>
</reference>

Note that you have to unset prepare so the site url is not appended…