Technical Support
posted this on February 08, 2010 13:18
Allow users to enter their credit card for on-request reservations is largely up to you, some prefer to play safe and make sure that the customer won't disappear once they manage to actually confirm availability (which may be a demanding task).
Anyway, TouristWay allows you to choose your payment policies, if you wish to "switch off" credit card payments unless all services are available just follow these instructions.
Find and open the template "ajax-payment.html" from the TEMPLATES menu (you should find it right in the default list)
Scroll in the template code until you find <methods>, to make sure credit card payment is not enabled when availability is pending edit the conditions in the "paypal" method as follow (basically add the last line):
<condition><importconfiglib>paymentenablepaypal</importconfiglib></condition><condition>(</condition><condition>'%-account.type-%' ne 'affiliate'</condition><condition>OR '%-account.type-%' ne 'supervisor'</condition><condition>)</condition><condition>AND ('%-booking.header.availabilitycheck-%'eq'A')</condition><condition><importconfiglib>paymentenablepaypal</importconfiglib></condition>
<condition>(</condition><condition>'%-account.type-%' ne 'affiliate'</condition>
<condition>OR '%-account.type-%' ne 'supervisor'</condition><condition>)</condition>
<condition>AND ('%-booking.header.availabilitycheck-%'eq'A')</condition>
Then click PUBLISH to save.
The flag 'A' means 'Available', you can also use: