は親切コードMagento observer(sales_order_place_after)を使用してカスタムテーブルに販売データを保存する方法は?
public function send_activation_code(Varien_Event_Observer $observer) {
$cart = Mage::getModel('checkout/cart')->getQuote()->getData();
Mage::getModel('sales/order_item')->getCollection();
if (isset($cart['items_qty'])) {
$getQty = (int) $cart['items_qty'];
} else {
$getQty = '0';
}
$order = $observer->getEvent()->getOrder();
$Order_id = $observer->getEvent()->getOrder()->getId();
$date = Date('y-m-d');
$customer_id = $order->getCustomerId();
$incrementId = $observer->getOrder()->getIncrementId();
$phone = $observer->getOrder()->getBillingAddress()->getTelephone();
$getEmail = $observer->getOrder()->getBillingAddress()->getEmail();
$getFirstname = $observer->getOrder()->getBillingAddress()->getFirstname();
$getLastname = $observer->getOrder()->getBillingAddress()->getLastname();
}