Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

how do I block a payment module?


skyfrog

Recommended Posts

hello,

I've been tryin to do this for a while now, but no progress so far =/

I'm trying to block the options if the customer is type A or B (in this case, I used the male/female var), so when he's gonna choose the payment mode he can't select the specified one. I tried some tweaks but haven't gotten anywhere. does anyone knows how to solve that? or at least wich file should I work with/ wich part.. any help will be much apreciated =]

 

ps?. I looked for contribs already, none found =/

ps?. sorry for my english, tarzan style =P

Link to comment
Share on other sites

hello,

I've been tryin to do this for a while now, but no progress so far =/

I'm trying to block the options if the customer is type A or B (in this case, I used the male/female var), so when he's gonna choose the payment mode he can't select the specified one. I tried some tweaks but haven't gotten anywhere. does anyone knows how to solve that? or at least wich file should I work with/ wich part.. any help will be much apreciated =]

 

ps?. I looked for contribs already, none found =/

ps?. sorry for my english, tarzan style =P

Wow, I don't care how someone pays, just so long as I get the money.

Link to comment
Share on other sites

Wow, I don't care how someone pays, just so long as I get the money.

 

hehe, I kno', but it's not that simple on this site. it's divided in phisical and juridical customer, and they have different ways of paying, etc.. =P

Link to comment
Share on other sites

hello,

I've been tryin to do this for a while now, but no progress so far =/

I'm trying to block the options if the customer is type A or B (in this case, I used the male/female var), so when he's gonna choose the payment mode he can't select the specified one. I tried some tweaks but haven't gotten anywhere. does anyone knows how to solve that? or at least wich file should I work with/ wich part.. any help will be much apreciated =]

 

ps?. I looked for contribs already, none found =/

ps?. sorry for my english, tarzan style =P

In the class code for the payment module which you want to be enabled for a certain user.

You will find function update_status()

You need to place a code over there which will result in the given module being enables or disabled.

place this in the last line

if ($check_flag == true) {

if(your fail condition == true)

$this->enabled = false;

}

 

 

Satish Mantri

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Link to comment
Share on other sites

In the class code for the payment module which you want to be enabled for a certain user.

You will find function update_status()

You need to place a code over there which will result in the given module being enables or disabled.

place this in the last line

if ($check_flag == true) {

if(your fail condition == true)

$this->enabled = false;

}

Satish Mantri

 

hey, thanks for the tip, but it won't work =/

not even the single "$this->enabled = false;" works, don't ask me why =/

I tried before using a similar logic, but no success =/

I'm using the customer_gender var and I don't know if that has anything to do with the problem.. =/

 

maggilove, thanks for the link, I'll have to try that and see if it works.

and satish, thanks for the help =]

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...