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;

envio email 1.9



Re: the order confirmation email is not sent

 [ Edited ]
Just make a small change in order.php
(public_html/app/code/core/Mage/Sales/Model/Order.php)
First, create one directory structure on the path below, then copy and paste the file to the path below.
(public_html/app/code/local/Mage/Sales/Model/Order.php)
Now, change from
$mailer->setQueue($emailQueue)->send();
to
$mailer->send();

sábado, 17 de setembro de 2016

Remover links do minha conta

Remover itens do account navigator



The easiest way to remove any link from the My Account panel in Magento is to first copy:
app/design/frontend/base/default/template/customer/account/navigation.phtml
to
app/design/frontend/enterprise/YOURSITE/template/customer/account/navigation.phtml
Open the file and fine this line, it should be around line 34:
<?php $_index = 1; ?>
Right below it add this:
 <?php $_count = count($_links); /* Add or Remove Account Left Navigation Links Here -*/
        unset($_links['tags']); /* My Tags */
        unset($_links['invitations']); /* My Invitations */
        unset($_links['enterprise_customerbalance']); /* Store Credit */
        unset($_links['OAuth Customer Tokens']); /* My Applications */
        unset($_links['enterprise_reward']); /* Reward Points */
        unset($_links['giftregistry']); /* Gift Registry */
        unset($_links['downloadable_products']); /* My Downloadable Products */
        unset($_links['recurring_profiles']); /* Recurring Profiles */
        unset($_links['billing_agreements']); /* Billing Agreements */
        unset($_links['enterprise_giftcardaccount']); /* Gift Card Link */
        ?> 
Just remove any of the links here that you DO want to appear.