Jump to content

Help Required - Advanced Payment Handling Module


ZiiP

Recommended Posts

Good evening everyone,

 

I run a shop that sells videogames - only small and been running a year or so. Generally, if I need anything "extra" adding to my site, there is usually someone in the Prestashop community that has already made a module that I can buy and use. Awesome.

 

However, I have a problem and I can't find a solution - so I was hoping that either someone could point me in the direction of a ready made module, or offer the freelance services to deliver one...

 

Anyhow, here's the problem..

 

Basically I sell "tangible" (boxed) and "non-tangible" (download) goods. Whilst the world is moving evermore to the downloadable market it seems that certain payment portals are a little slow off the mark in providing protection or services to help with retailers of downloadable products.

 

At the moment, I create a different combination items in my store to distinguish between a physical boxed game and a downloadable version of the game. This is great because using the price/weight adjustment, I can set free postage for downloadable content and charge for boxed.

 

What I would really like however, is the option to allow all my payment options for boxed products but restrict downloadable games to only certain payment providers. I understand the dilemma of what happens if there is a "mixed" cart of both both types of items - in this case I would only make the download payment providers available as that part of the sale couldn't be gurranteed by all the payment gateways.

 

I hope that makes sense - any questions, please feel free to ask. I can't imagine this would be too difficult to code and I could/should probably have a hack at it myself - but I also know that there are some talented people on these boards who could probably code it in about 1/10th of the time I could. :)

 

I've not got a limitless pot of cash (sadly), but funds are available to find a solution. :)

 

Kind Regards

 

James

Link to comment
Share on other sites

if I followed that properly, I think you could update the hookPayment function of those payment modules, and just add some logic that would return false if there are downloadable products in the cart. that would prevent those payment methods from appearing during checkout.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...