Jump to content
Sign in to follow this  
ptholt

Paypal triggered by price and description

Recommended Posts

Hi folks,

 

i am looking to add paypal to my site (dont use it currently) and i would like the customer to stay on my store to make this payment (so am guessing that ipn is the way to go there) HOWEVER i only wish paypal to be a selectable payment method providing the pricing is under a set amount AND in the product description the year is after 1953.

 

Any ideas how i can achieve the above?

 

Peter.

Share this post


Link to post
Share on other sites

If you want the customer to stay on your site, then you have to use paypal pro, not ipn, and paypal charges for that (above the per item fee) so you may want to check that first. Once you get the module setup, the purchase limiter contribution will do what you want as far as the price is concenerd. It doesn't check the description but code for that could be added.

 

Jack

Share this post


Link to post
Share on other sites
It would be problematic. What happens if you have a buyer with three products, all of which come below your max paypal price, but 1 of which should not be paid via paypal? Does the whole order become not payable by paypal?

 

Anyway, if you can, have a think about adjusting your products slightly by adding an extra column to the product db, saying "paypal" - and a tick box to give each product a value, "1" or "0" in the product adding/editing screen. 0 being yes, can be paid by paypal, 1 being no paypal allowed. Then you have a quick way to decide whether to show the paypal module, simply add the total of the paypal column in each order and if it is NOT zero, disable the module.

 

 

You have raised some interesting points there, i need to have a little think about multiple purchases that may negate this option appearing. the extra db field and turning it on or off via that may indeed be a better option. Though how i link that to the existing paypal contributions im not so sure.

Share this post


Link to post
Share on other sites

in paypal module.

 

There is a concept of eable and disable.

 

get cart total and apply condition and disable it.

 

Satish


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.

Share this post


Link to post
Share on other sites

ok i have removed the pre 1953 issue by some category restructuring so now the only condition that needs to be met is the sub x price for paypal to be a viable option.

Share this post


Link to post
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
Sign in to follow this  

×