Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Limit Payment Method To Ip Rate Topic   - - - - -

 
  • djstevie84
  • Senior Member
  • Members
  • Join Date: 25-Jun 06
  • 217 posts

Posted 11 October 2017 - 01:03 PM #1

Hi,

 

There was previously an addon I think that allowed you to restrict a payment method to an IP,

We have a warehouse with a collection facility,

 

But we'd like the option for "Cash" payment method but only for the office IP?

Normal customers would never see the cash option,

 

Anyone remember this addon, or can advise on implementing this?

 

 

{if $smarty.server.REMOTE_ADDR == '141.105.193.53'}

Payment method hook ID?
{/if}

 

Something like that perhaps?

 

Stephen

 



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 14,923 posts

Posted 12 October 2017 - 05:47 AM #2

You can create a special user group and enable required payment method for this user group only. In this case additional modules are not required


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration

Certified CS-Cart RU Developer | Сертифицированный разработчик на CS-Cart Русская Версия

 
  • djstevie84
  • Senior Member
  • Members
  • Join Date: 25-Jun 06
  • 217 posts

Posted 12 October 2017 - 11:38 AM #3

You can create a special user group and enable required payment method for this user group only. In this case additional modules are not required

 

Yes, but we'd manually have to assign each user to the group? Or can that be done based on IP?

 

We have a "public" computer in the warehouse on a fixed IP, so our plan is any user on that IP can see cash option, the order problem is with "groups" is that the user would still see cash as an option when the return home.



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 14,923 posts

Posted 12 October 2017 - 01:15 PM #4

Yes, but we'd manually have to assign each user to the group? Or can that be done based on IP?

 

We have a "public" computer in the warehouse on a fixed IP, so our plan is any user on that IP can see cash option, the order problem is with "groups" is that the user would still see cash as an option when the return home.

 

Unfortunately payment methods or usergroups cannot be enabled/ disabled by IP address


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration

Certified CS-Cart RU Developer | Сертифицированный разработчик на CS-Cart Русская Версия