invstg8r Posted April 4, 2007 Share Posted April 4, 2007 I'm not sure if there are any simple contributions that would do this, but our company will be using the osCommerce site to enter orders that we receive via snail mail as well as online orders. Customers arriving to our online site will not have the option of Check/Money Order as a payment method. Our staff will be using the same site to enter mailed orders that will contain checks, those people will need to see the option for Check/Money Order. I used a "recipe" out of Monika's excellent book, "Deep Inside osCommerce The Cookbook" and created a new one to hide a payment method based on a visitor's IP address. Her code was to hide the payment method for all accept a particular customer ID. My recipe didn't work. Can anyone help me with this? Any ideas? - Mark A. Quote Link to comment Share on other sites More sharing options...
♥Monika in Germany Posted April 4, 2007 Share Posted April 4, 2007 I'm not sure if there are any simple contributions that would do this, but our company will be using the osCommerce site to enter orders that we receive via snail mail as well as online orders. Customers arriving to our online site will not have the option of Check/Money Order as a payment method. Our staff will be using the same site to enter mailed orders that will contain checks, those people will need to see the option for Check/Money Order. I used a "recipe" out of Monika's excellent book, "Deep Inside osCommerce The Cookbook" and created a new one to hide a payment method based on a visitor's IP address. Her code was to hide the payment method for all accept a particular customer ID. My recipe didn't work. Can anyone help me with this? Any ideas? - Mark A. Hi Mark, and many thanks :-) Verify in your config table this variable has been set to true, as only then is the ip filled ... exerpt from application_top.php // verify the IP address if the feature is enabled if (SESSION_CHECK_IP_ADDRESS == 'True') { $ip_address = tep_get_ip_address(); by default, it is set to false ... Quote :-) Monika addicted to writing code ... can't get enough of databases either, LOL! my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum Interactive Media Award July 2007 ~ category E-Commerce my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ... Link to comment Share on other sites More sharing options...
invstg8r Posted April 5, 2007 Author Share Posted April 5, 2007 Hi Mark, and many thanks :-) Verify in your config table this variable has been set to true, as only then is the ip filled ... exerpt from application_top.php by default, it is set to false ... Yes ...that was it! I switched it to true and it worked like a charm. Thank you...thank you! :D :D Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.