hi i use oscommerce and usually customer has choice to pay by cash or card.
However i want to add some restrictions to the CASH payment module. this will be controlled in the module itself, [login to view URL] . ill send u the file to adjust.
Basically need to add some extra fields or amend slightly
it already has Payment Zone which is useful i can set up payment zones and add postcodes there or max distance.
however i also need a Time Control where i can enter the time it is allowed to be used,
e.g PAYMENT ZONE = Florida
this means CASH is only allowed in the FLORIDA ZONE between 5pm and 1am, i.e those 8 hours (note midnight crossover) the fact it crosses midnight is not important
if u do it on a strict day basis it means 00:00-01:00 AND 17:00-23:59:59 every day
but i will not enter it as 2 separate times
its simpler to just enter 17:00-01:00 as it applies EVERY DAY
if we wanted DAY control wed use the 2 time system e,g
MON: 00:00-03:00 AND 17:00-23:59:59
TUE: 00:00-02:30 AND 17:00-23:00:00
note TUE in this example means CASH is only available as a payment option between MIDNIGHT and 02:30am or between 5pm and 11pm. its NOT available at all other times on a Tuesday
i.e NOT AVAILABLE on TUE
between 02:30 and 17:00 (14.5 hours) and
between 23:00 and 23:59:59 (1 hr)
for now im using same time every day so we can write it as 17:00-01:00 or 17:00-23:59:59 or 17:00-23:00
Note: these are the times CASH is ALLOWED as a payment method
outside these time it will not be available. so wont appear on [login to view URL]
Note: we still also have Payment Zone to which is set to NONE as DEFAULT meaning it can be used in all zones. If i set it to FLORIDA it means only can be used in Florida, i.e any other zone is CARD only.
Note: on my system the PAyment ZOne will be made up of Postcodes which will be defined in the db. if a postcode falls inside(is part of) the zone then only these postcodes can use CASH at the times defined in TImer Control
any other postcode can NEVER use CASH
ALSO: Need one further parameter set, namely SHIPPING Control:
e.g Please Select the shipping methods allowed for CASH orders
(checkbox) shipping method 1
(checkbox) shipping method 2
then if i tick any box next to the shipping method then CASH is allowed for the checkboxes which are TICKED
i can tick 1 or 2 or all whatever.
Or a MULTI SELECT DROPDOWN might be easier...
Shipping Methods are only those which are currently INSTALLED and ENABLED.
Enable Switch might be useful for each
Enable Zone Control: Yes, No or True/False
Enable Time Control: Yes, No or True/False
Enable Shipping Control: Yes, No or True/False
Enable Order Control: Yes, No or True/False
e,g suppose i choose
ZONES : Florida/New York (consist of 10 zipcodes or postcodes)
SHIPPING CONTROL: Delivery
that means CASH is only available in Florida and New York between 17:00 and 01:00 and only on Delivery orders.
Also: ORDER/CUSTOMER CONTROL
e.g suppose the customer is NEW (has never ordered before) then thye could be classed as HIGH RISK and so it might be wise to DISABLE CASH for these customer until they complete a certain nu,ber of CARD orders.
So in the module we could set this to be any number e.g
[login to view URL] completed card orders to qualify for CASH option:
This means that the customer logged in placing the order must have completed 5 CARD orders before being allowed to choose CASH as an option.
Zone: New York = PASS
Time: 19:30 = PASS
Shipping: Delivery = PASS
Card Orders Completed: 6 = PASS
so here the customer passed all 4 checks so CASH will be presented as an option but in following example they wouldnt be given it.
Zone: Florida = PASS
Time: 18:30 = PASS
Shipping: Delivery = PASS
Card Orders Completed: 3 = FAIL
here the customer failed last check so CASH will NOT be an option for them
if i think of more controls ill add them :)