最新消息:欢迎光临!

magento禁用Billing Agreements和Recurring Profiles

php findever 2120浏览 0评论

To disable, or rather hide, these two functions from the account navigation you can
copy billing_agreement.xml and recurring_profile.xml from /app/design/frontend/base/default/layout/sales/ to/app/design/frontend/default/yourtheme/layout/sales/.
After copying the files to their new location you can edit them. Find the following code inbilling_agreement.xml :

 <customer_account>  <reference name="customer_account_navigation" >  <action method="addLink" translate="label"><name>billing_agreements</name>  <path>sales/billing_agreement/</path><label>Billing Agreements</label></action>  </reference>  </customer_account> 


And change it to :

<customer_account> <reference name="customer_account_navigation" > <!--pgl- <action method="addLink" translate="label"><name>billing_agreements</name><path>sales/billing_agreement/</path><label>Billing Agreements</label></action>--> </reference> </customer_account>

Then find the following code in recurring_profile.xml :

<customer_account> <reference name="customer_account_navigation" > <action method="addLink" translate="label"><name>recurring_profiles</name>

<path>sales/recurring_profile/</path><label>Recurring Profiles</label></action> </reference> </customer_account>

And change it to :

<customer_account> <reference name="customer_account_navigation" > <!--pgl- <action method="addLink" translate="label"><name>recurring_profiles</name><path>sales/recurring_profile/</path><label>Recurring Profiles</label></action>--> </reference> </customer_account>

By doing this you’ve removed the links to these functionalities from the account navigation. If you ever have to enable them you can simply uncomment the lines again.



关于Recurring Profiles的解释:

WHAT IS RECURRING PROFILE?

There is a time when you want to sell something, and then capture the payment on a regular basis, defined per product. For example, if you sell magazine subscription, and you want to charge it each month, recurring profiles are for you. In short, this is the agreement between seller and buyer, and this agreement authorizes the merchant to charge the buyer account again in the future, according to the recurring profile settings.

转载请注明:Findever » magento禁用Billing Agreements和Recurring Profiles

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址