New Zenner
- Join Date:
- Nov 2008
- Posts:
- 33
- Plugin Contributions:
- 0
COD by IP Address
I have COD by IP Address installed in zen cart version 1.38a.
http://www.zen-cart.com/downloads.php?do=file&id=578
I have a tipfield installed on the tpl_checkout_payment_default.php and would like to remove this from showing when we are taking phone orders using COD by IP. Using one ip address under the configuration/mystore the tipfield doesn't show with the following conditional statement.
When I add more than one ip addressing using a comma, the conditional statement no longer works and the tipfield is repeated on the page for each additional ip address. (e.g. 3 ip addresses would then show 2 tip fields)
Do i need to change the conditional statement or the sql statement?
INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('COD IP', 'COD_IP', 'yourip', 'These IPs will see the COD payment option. Enter IP addresses serpated by a comma', 1, 24, now(), now(), NULL, NULL);
Thanks in advance.