我需要在电子邮件模板模块中插入foreworx SARP SUBSCRIPTION ID
如何在下页的aw_sarp模块中调用$ this-> getSubscription() - > getId()
/app/design/frontend/base/default/template/email/order/items/order/default.phtml
此致 SEB
答案 0 :(得分:3)
要获取订阅变量或详细信息,请使用以下内容:
模板变量/方法
subscription.id - ID of subscription
subscription.customer_name - name of the customer who purchased subscription
subscription.getCustomerUrl() - URL for customer to view subscription
subscription.getAdminUrl() - URL for admin to view subscription
subscription.next_delivery_date - next delivery date
subscription.next_payment_date - next payment date
subscription.first_delivery_date - first delivery date
subscription.customer_email - customer email address
subscription.products_text - products with quantity included in subscription
答案 1 :(得分:1)
您可以执行此代码;
$subscriber = Mage::getModel('newsletter/subscriber')->loadByEmail($email);
用于检索id;
$subscriber->getId()