我仍然在處理Magento CE 1.8.1.0,我想要做的是找出代碼是用於創建帳戶的新聞訂閱的代碼。Magento - 更新時事通訊註冊
我們不使用標準的Magento時事通訊,我們的地址存儲在第三方軟件中。理想情況下,如果用戶點擊提交按鈕時,它會將電子郵件地址添加到單獨的數據庫,但要這樣做,我需要找出代碼的位置。
我發現帳號註冊頁面在這裏:
/app/design/frontend/default/yourhealthfoodst/template/persistent/customer/form/register.phtml
而且通訊複選框這裏:
<form action="<?php echo $this->getPostActionUrl() ?>" method="post" id="form-validate">
:
<input type="checkbox" name="is_subscribed" title="<?php echo $this->__('Sign Up for Newsletter') ?>" value="1" id="is_subscribed" checked="checked" class="checkbox" />
如果提交按鈕這種形式的一部分
並從我可以收集,$ this-> getPostActionUrl()是:
/customer/account/createpost/
我只是努力尋找下一步......如果這是有道理的!
感謝您的任何意見
完美!非常感謝你 – Lee