Code Monkey home page Code Monkey logo

magento-extension's People

Contributors

asadighi avatar cmtiml avatar henrys-cm avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

magento-extension's Issues

Error Compilation State is Compiled

When compiled, in admin > CM > General, we get : Fatal error: Class 'campaignmonitor_createsend_block_testApi' not found in /home/.../www/includes/src/__default.php on line 28743

Workflow for migration?

Anyone have success installing on an existing Magento install with an existing CM list separate and not sync'd? Need to sync up everything without corrupting the lists as well as transition from Mandrill to CM for transactional email.

If you could share your workflow for making that happen as well as any pitfalls to watch out for would be great.

First Name / Last Name not populating in Campaign Monitor

We previously had the Fontis Campaign Monitor extension installed which was sending subscriber details through to campaign monitor. Due to a conflict, we upgraded to the "official" campaign monitor extension which is built on the original Fontis extension (with a lot of updates and enhancements).

since then, our subscriber form for newsletters (which asks for first name and last name) is not sending this data through to campaign monitor - instead all subscribers that use the form are coming through as (GUEST) in CM.

in addition to this, we also have a custom date of birth field within the form, which again was being sent through and populated within CM - this no longer is being captured or inserted into CM.

I referred to the previous fontis extension, and found this code in the file:
controllers > ConfirmController.php

<?php

include "Mage/Newsletter/controllers/SubscriberController.php";
class Fontis_CampaignMonitor_ConfirmController extends Mage_Newsletter_SubscriberController
{

    private function getStyle($id)
    {
        $style = array(
            '1' => 'quick_and_uncomplicated',
            '2' => 'naturally_polished_and_well_defined',
            '3' => 'glamourous_and_dramatic'
        );

        return $style[$id];
    }

    public function confirmAction()
    {
        $id = (int) $this->getRequest()->getParam('id');
        $session = Mage::getSingleton('core/session');
        $subscriber = Mage::getModel('newsletter/subscriber')->load($id);
        $email = $subscriber->getSubscriberEmail();

        Mage::log("Fontis_CampaignMonitor: Adding newsletter subscription via frontend 'Sign up' block for $email");

        $apiKey = trim(Mage::getStoreConfig('newsletter/campaignmonitor/api_key'));
        $listID = trim(Mage::getStoreConfig('newsletter/campaignmonitor/list_id'));

        if ($apiKey && $listID)
        {
            try
            {
                $client = new SoapClient("http://api.createsend.com/api/api.asmx?wsdl", array("trace" => true));
            }
            catch (Exception $e)
            {
                Mage::log("Fontis_CampaignMonitor: Error connecting to CampaignMonitor server: " . $e->getMessage());
                $session->addException($e, $this->__('There was a problem with the subscription'));
                $this->_redirectReferer();
            }
            try
            {
               
                $customFields = array(
                    0 => array(
                        'Key' => 'style',
                        'Value' => $this->getStyle($subscriber->getStyleType())
                    )
                );

                if ($subscriber->getBirthdate())
                {
                    $customFields[] = array(
                        'Key' => 'birthday',
                        'Value' => $subscriber->getBirthdate()
                    );
                }
                //var_dump($customFields); exit;
                $result = $client->AddAndResubscribeWithCustomFields(array(
                    "ApiKey" => $apiKey,
                    "ListID" => $listID,
                    "Email" => $email,
                    "Name" => $subscriber->getFirstname() . ' ' . $subscriber->getLastname(),
                    "CustomFields" => $customFields
                ));
            }
            catch (Exception $e)
            {
                Mage::log("Fontis_CampaignMonitor: Error in CampaignMonitor SOAP call: " . $e->getMessage());
                $session->addException($e, $this->__('There was a problem with the subscription'));
                $this->_redirectReferer();
            }
            //}
        }
        else
        {
            Mage::log("Fontis_CampaignMonitor: Error: Campaign Monitor API key and/or list ID not set in Magento Newsletter options.");
        }


        parent::confirmAction();
    }

}

This file isnt included within the official extension and cant see anywhere that I can add custom values to be inserted into campaign monitor (for the purpose of the date of birth). This still doesnt answer the question as to why the name is not being sent through correctly.

can you help?

Campaign Monitor not sending Transaction Mail

I just download and install extension and came to know that campaignmonitor extension ignores the setting of magento admin for transactional mail.
go to admin
admin->system->configuration->Sales->transactional email
If admin set that send a copy of order confirmation mail to sender email id too. But your extension do not consider that setting.

Thanks
Sohaib

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.