quinta-feira, 26 de janeiro de 2017


Hello World!


affiliate suit no show image banner....


Camiseta clube do Whisky lazyload


the code used is:

<a href='http://www.dmzcamisetas.com.br/camiseta-clube-do-whisky.html?afiliadodmz=cGFydG5lcl9pZD0xJmJhbm5lcl9pZD00' target='_blank'><img alt="Camiseta clube do Whisky" class="lazyload" data-src="http://www.dmzcamisetas.com.br/media/affiliatesuite/clube_do_whisky_facebook.jpg" height="200" src="" title="Camiseta clube do Whisky" width="270"></img></a> <img alt="lazyload" class="lazyload" data-src="http://www.dmzcamisetas.com.br/media/affiliatesuite/clube_do_whisky_facebook.jpg" height="1" src="" style="border:0" width="1"></img>

terça-feira, 24 de janeiro de 2017

Usar compilador magento no shell


Usar compilador magento no shell


#php -f shell/compiler.php -- status


Usage:  php -f compiler.php -- [options]

  state         Show Compilation State
  compile       Run Compilation Process
  clear         Disable Compiler include path and Remove compiled files
  enable        Enable Compiler include path
  disable       Disable Compiler include path
  help          This help




domingo, 22 de janeiro de 2017

quinta-feira, 10 de novembro de 2016

query cielo checkout



não abre formulário no checkout.


eu uso o firecheckout e então feita adição do código no arquivo query-cielo.xml e funcionou pereitamente.

<firecheckout_index_index>
        <reference name="head">
            <action method="addJs"><name>query/cielo/cc.js</name></action>
            <action method="addJs"><name>query/cielo/dc.js</name></action>
        </reference>
    </firecheckout_index_index>


segunda-feira, 26 de setembro de 2016

Corrigir erro 500 no reset passord magento 1.9.2



Fixed: Fatal error during new password request

Issue:
Fatal error: Call to a member function setCustomerId() on a non-object in /home/portofoo/public_html/app/code/core/Mage/Customer/controllers/AccountController.php on line 753
Solution:
Please following the steps:
1. go to your_site/app/design/frontend/default/sm_theme/layout/customer.xml and add the following code direct before the </layout> tag:


subistituir o bloco de reset


<!--
Customer account reset password
-->

<customer_account_resetpassword translate="label">
<label>Reset a Password</label>
<remove name="right"/>
<remove name="left"/>
<reference name="head">
<action method="setTitle" translate="title" module="customer">
<title>Reset a Password</title>
</action>
</reference>
<reference name="root">
<action method="setTemplate">
<template>page/1column.phtml</template>
</action>
<action method="setHeaderTitle" translate="title" module="customer">
<title>Reset a Password</title>
</action>
</reference>
<reference name="content">
<block type="customer/account_resetpassword" name="resetPassword" template="customer/form/resetforgottenpassword.phtml"/>
</reference>
</customer_account_resetpassword>


referencia http://www.magentech.com/documentation/fixed-fatal-error-during-new-password-request/

terça-feira, 20 de setembro de 2016

Aumentar limite envio newsletter magento



I wish to increase newsletter sending limit in Magento 1.7 and I've already tried to increase the sending limit based on instructions found on website links down below, that is from default value:
$countOfQueue = 3;
$countOfSubscritions = 20;
to new custom value:
$countOfQueue = 4;
$countOfSubscritions = 1500;
The problem is that magento doesn't sends out more then approx. 1000 - 1100 emails per hour. Currently it should send out 6.000 emails per hour (1500 x 4 cron jobs in magento configuration per 15 minutes). Our regular cron job in cPanel runs every 10 minutes. In WHM/cPanel there isn't any email sending limitation in place, so I really don't have an idea why we can't send out more emails.

segunda-feira, 19 de setembro de 2016

sendmail magento to SES



magento 1.9

trocar sendmail por amazon direto

copiar template de core para

/html/app/code/local/Mage/Core/Model/Email/Template.php

trocar codigo

 * Retrieve mail object instance
     *
     * @return Zend_Mail
     */
    public function getMail()
    {if (is_null($this->_mail)) {
    $my_smtp_host = Mage::getStoreConfig('system/smtp/host');
    $my_smtp_port = Mage::getStoreConfig('system/smtp/port');
    $config = array(
              'port' =>  $my_smtp_port,
              'auth' => 'login',
              'ssl' => 'tls',
              'username' => 'AKIAJNAMNSFMKAW43XGQ',
              'password' => 'AhvGIDgBGr/YEx0Zd7/JlH1lSaJKmqdVMYBfKRjf0IPU'
              );
     $transport = new Zend_Mail_Transport_Smtp($my_smtp_host,$config);
     Zend_Mail::setDefaultTransport($transport);        





        $this->_mail = new Zend_Mail('utf-8');
    }
    return $this->_mail;