Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

add a special payment type


Monika in Germany

Recommended Posts

Hi,

 

I would like to add a special payment type but only for one product in the catalog, and only if there is one item in the cart, this special product.

 

I have been romping through the payment class and checkout_payment.php, butnot sure where I would need to make the changes. Of course, this payment type must not be visible for customers with more than 1 item or 1 item that is not this product.

 

I was thinking I would not need to add a new payment method to modules, just display a text instead in the file and somhow still enter info into the order table of course. Really not sure where to start.

 

Any ideas?

:-)

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

hmmmmmmm ... or maybe I would need to add a new payment module that makes the selection to show or hide in the module, like the payment zones ... somehow that sound like the best idea right now, but how would all the other modules know to hide? I can only imagine they would all need to be changed.

:-)

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

hmmmmmmm ... or maybe I would need to add a new payment module that makes the selection to show or hide in the module, like the payment zones ... somehow that sound like the best idea right now, but how would all the other modules know to hide? I can only imagine they would all need to be changed.

 

lol I should have searched more thoroughly beofre I posted ... looks like there is a mod for it! Just checking out

http://www.oscommerce.com/community/contri...ons,3342/page,9

to see if it will work for me.

:-)

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...