我有一个外部脚本(不在magento内)。我试图找出为什么此消息没有显示在购物车页面上...
<?php
require_once '../app/Mage.php';
umask(0);
Mage::app();
[...]
Mage::getSingleton('core/session')->addSuccess("Stuff just happened");
header('Location: http://example.com/checkout/cart');
?>
有什么想法吗?
最佳答案
尝试添加到结账/ session 单例
关于Magento:外部脚本中的 addSuccess() 无法正确保存,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7403871/