1

I am creating a module who comunicates with Visa Checkout. When customer select Visa Checkout on cart I am setting this data:

Mage::getModel('checkout/cart')->getQuote()
            ->setCustomerFirstname($firstname)
            ->setCustomerLastname($lastname)
            ->setCustomerEmail($email)
            ->setCustomerIsGuest(true)
            ->save();

After this I redirect tthe customer to onepage and fill payment data (previously returned from Visa Checkout). I have modified the onepage to don't have billing and shipping information.

But when customer place the order an user is created. How can I disable the customer creation?

1
  • I tried to force the onepage too: $this->getOnepage()->saveCheckoutMethod(Mage_Checkout_Model_Type_Onepage::METHOD_GUEST);
    – Eduardo
    Commented Mar 8, 2016 at 11:28

1 Answer 1

2

I forced this on onepage module (as mentioned on comment):

$this->getOnepage()->saveCheckoutMethod(Mage_Checkout_Model_Type_Onepage::METHOD‌​_GUEST);

And add this on my custom module:

Mage::getModel('checkout/cart')->getQuote()
            ->setCustomerFirstname($firstname)
            ->setCustomerLastname($lastname)
            ->setCustomerEmail($email)
            ->setCheckoutMethod(Mage_Checkout_Model_Type_Onepage::METHOD_GUEST)
            ->setCustomerIsGuest(true)
            ->save();

This solved my problem.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.