Ignore:
Timestamp:
4 Jun 2010, 21:07:21 (15 years ago)
Author:
Henrik Bettermann
Message:

use enable_payment select box to switch payment on and off

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_futminna/getPaymentsFolderInfo.py

    r4238 r5214  
    1313"""
    1414from Products.AdvancedQuery import Eq, Between, Le,In
     15
     16pprops = context.portal_properties
     17payment_disabled = not pprops.enable_payment
    1518
    1619mtool = context.portal_membership
     
    6467        info['payment_method'] = "online_payment"
    6568info['prod_id'] = '117'
     69
     70if payment_disabled:
     71    info['payment_method'] = ""
    6672
    6773# end customization
Note: See TracChangeset for help on using the changeset viewer.