在电子邮件模板模块中调用getsubscription()函数

时间:2013-11-22 14:45:10

标签: magento

我需要在电子邮件模板模块中插入foreworx SARP SUBSCRIPTION ID

如何在下页的aw_sarp模块中调用$ this-> getSubscription() - > getId()

/app/design/frontend/base/default/template/email/order/items/order/default.phtml

此致 SEB

2 个答案:

答案 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

如需更多信息,请访问:http://confluence.aheadworks.com/pages/viewpage.action?pageId=3342482#Subscriptions&RecurringPayments-Templatesvariables/methods

答案 1 :(得分:1)

您可以执行此代码;

$subscriber = Mage::getModel('newsletter/subscriber')->loadByEmail($email);

用于检索id;

$subscriber->getId()