Changeset 7711 for WAeUP_SRP/trunk


Ignore:
Timestamp:
27 Feb 2012, 21:51:27 (13 years ago)
Author:
Henrik Bettermann
Message:

Enable payment switch in fceokene portal.

Location:
WAeUP_SRP/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/profiles/fceokene/properties.xml

    r5177 r7711  
    1414 <property name="date6" type="date">2000/01/01 01:00</property> 
    1515 <property name="enable_acco_booking" type="boolean">True</property>
    16  <property name="enable_payment" type="boolean">True</property> 
     16 <property name="enable_payment" type="boolean">True</property>
    1717</site>
  • WAeUP_SRP/trunk/skins/waeup_fceokene/config_form.pt

    r5418 r7711  
    163163        <th>
    164164          <label>
     165            Enable Payment:
     166          </label>
     167        </th>
     168        <td>
     169          <input type="checkbox" name="enable_payment" id="enable_payment" value=""
     170                 tal:attributes="value pprops/enable_payment;
     171                                 checked pprops/enable_payment" />
     172        </td>
     173      </tr>
     174      <tr>
     175        <th>
     176          <label>
    165177            Enable Accommodation Booking:
    166178          </label>
  • WAeUP_SRP/trunk/skins/waeup_fceokene/getPaymentsFolderInfo.py

    r3865 r7711  
    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
     
    6366    info['payment_method'] = "online_payment"
    6467info['prod_id'] = '83'
     68
     69if payment_disabled:
     70    info['payment_method'] = ""
    6571
    6672# end customization
Note: See TracChangeset for help on using the changeset viewer.