Developer forum

Forum » Ecommerce - Standard features » Payment method only when logged in as certain user

Payment method only when logged in as certain user

Hans Ravnsfjall
Hans Ravnsfjall
Reply

Hi

I am trying to achieve having a payment method only available if logged in as a certain usertype (users from a certain group). Is this possible somehow? Had expected it to be a setting on the payment method itself, but canĀ“t find anything on it there.

 

/Hans


Replies

 
Nicolai Pedersen
Reply

Hi Hans

That is not possible - you have 2 options

  • Make a check in the template if the user is logged in - requires a bit of coding
  • Create 2 paragraphs or pages for checkout - one that will be shown for users logged in and one for users not logged in - use permissions
    • Setup the 2 paragraphs the same way, except the list of payments - filter out which to show using the paragraph settings.

BR Nicolai

 
Hans Ravnsfjall
Hans Ravnsfjall
Reply

ok, thank you. Will look into implementing it in the template.

/Hans

 
Hans Ravnsfjall
Hans Ravnsfjall
Reply

Nicolai, it would be a usefule feature in the configuration tough - so maybe you could develop this as a feature? ;)

/Hans

 

You must be logged in to post in the forum