gpt4 book ai didi

magento - 如何在 Magento Checkout Success.phtml 1.7 上提取客户电子邮件

转载 作者:行者123 更新时间:2023-12-04 23:59:05 26 4
gpt4 key购买 nike

我在网上尝试了各种解决方案都无济于事。我认为它应该是这样的:

<?php
$order->getBillingAddress()->getEmail();
?>

An email confirmation was sent to: <?php echo $order->getEmail ?>

我可以使用以下命令显示订单 ID:
<?php echo $this->getOrderId() ?>

如果您有建议,请尽可能具体,因为我绝对是新手。

最佳答案

尝试将此添加到 Success.phtml

<?php
$order = Mage::getModel('sales/order')->loadByIncrementId($this->getOrderId());
echo $order->getCustomerEmail();
?>

阅读更多: Get Order Increment ID in Magento

关于magento - 如何在 Magento Checkout Success.phtml 1.7 上提取客户电子邮件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13079480/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com