zaxxon Posted February 19, 2007 Posted February 19, 2007 as a service i offer a few open source and free trias software on my website. i list them as 0.00 priced items, if a customer orders those items and choose credit card/paypal option, s/he is transfered to paypal and is not allowed to go on to purchase sice the price is ZERO(0), is there a way to tell the cart not to transfer to paypal if price is zero.. or to offer cash on delivery for carts with 0(zero) price in them ? currently using OSC2.2MS2 051113 with the following contributions: AJAX Attributemanager 2.1 - All_products 4.4 - Banner manager 1.5b - banner hack picture in manager * description in product listing hack ms2 v2.4 * drop shadow boxes v.1.1 * Easy populater 2.76d-ms2 by surfalot * FCKEditor * header tag controller v2.5.9 * jcssmenu * LoginBox 5.6 * option type feature v1.71 * OSC-Cach-v1.1 * popup_imagecleaned_stilized_2 * Remove from cart button hack * scrolling bestsellers * Article manager1.4 * Links Manager v1.14. * proffessional invoice&packingslip 6.1 * Ultimate SEO URLs Personaly i think all these features NEED to be in the main core as they are quite basic features that are missing. but then again what do i know?
zaxxon Posted February 21, 2007 Author Posted February 21, 2007 bumpy bump any one ? currently using OSC2.2MS2 051113 with the following contributions: AJAX Attributemanager 2.1 - All_products 4.4 - Banner manager 1.5b - banner hack picture in manager * description in product listing hack ms2 v2.4 * drop shadow boxes v.1.1 * Easy populater 2.76d-ms2 by surfalot * FCKEditor * header tag controller v2.5.9 * jcssmenu * LoginBox 5.6 * option type feature v1.71 * OSC-Cach-v1.1 * popup_imagecleaned_stilized_2 * Remove from cart button hack * scrolling bestsellers * Article manager1.4 * Links Manager v1.14. * proffessional invoice&packingslip 6.1 * Ultimate SEO URLs Personaly i think all these features NEED to be in the main core as they are quite basic features that are missing. but then again what do i know?
Lunara Solutions Posted May 30, 2007 Posted May 30, 2007 Anyone ever get this to work? I've searched and searched the database and have plenty of people asking this question but with no answers. Could someone please help us out? I would really appreciate it. Thanks!
Guest Posted May 30, 2007 Posted May 30, 2007 I'm sure there's a contrib for something like this. I know there's a free shipping contrib. Try having a look in the contributions section
Orbixx Posted May 30, 2007 Posted May 30, 2007 My PHP knowledge is relatively basic, but having seen the checkout code before and knowing what PHP is capable of - it should be relatively easy for someone to code a workaround. A simple "if" statement should suffice.
Lunara Solutions Posted May 30, 2007 Posted May 30, 2007 That's what I thought Orbixx and I've looked and looked for 2 days now. This is the only that is stopping me from opening up a store on June 1st. Any help would be greatly appreciated. I've looked looked posts on Coupons mod, paypal ipn mod, download controller mod and also tried putting in any combination of wording in the contribs section. Plus as I've seen this question posted so many times on here . . all without an answer. If someone helps me, I would be more than willing to post on the rest of the questions.
WedgeCoop Posted May 30, 2007 Posted May 30, 2007 I'm not sure if this will work for you, but you can try it. Find $payment_modules->before_process(); on checkout_process.php Change it to if ($order->info['total'] != 0){ $payment_modules->before_process(); } Then find $payment_modules->after_process(); and do the same if statement.
Lunara Solutions Posted May 30, 2007 Posted May 30, 2007 Great I will definitely try this! Will this affect any settings I have for Delivered etc. in my Paypal IPN? I'm assuming I'll need to make the same changes there as well? Could some code be added into the if statement to update the status or would I even need it? Sorry I don't know how to code . .just how to follow directions. :) I REALLY appreciate you taking the time to help with this!
WedgeCoop Posted May 30, 2007 Posted May 30, 2007 I've never used the paypal module, so I don't know the answer to your question. Just to clarify, the code I posted will cause the processing to skip whatever payment module you use, if the order total is 0. All the order processing within OSCommerce will still happen. Meaning all the data will still be written to all the order tables and the order will be completed like normal. This works with my test server, but I use Authorize.net AIM.
mjsmikey Posted May 30, 2007 Posted May 30, 2007 instead of doing all that why don't you just upload the Item... to a directory and then put a link to it. IE and Firefox both automaticly ask if you want to save it. On the Description just add the h ttp:// yousite.c om/directoryyouuploaded/free.exe then activate the link with the <a href= Tags. I believe that you can choose to not sell the item or just mark stock as Zero. Change the name of the product to something like... See Description page for full Download Link... That seems Easy Enough. MIKE
Lunara Solutions Posted May 30, 2007 Posted May 30, 2007 instead of doing all that why don't you just upload the Item... to a directory and then put a link to it. IE and Firefox both automaticly ask if you want to save it. On the Description just add the h ttp:// yousite.c om/directoryyouuploaded/free.exe then activate the link with the <a href= Tags. I believe that you can choose to not sell the item or just mark stock as Zero. Change the name of the product to something like... See Description page for full Download Link... That seems Easy Enough. MIKE There are a couple of reasons Mike. 1) One is that I'll still have the problem of zero balance due on orders. What if someone used a coupon code and only purchased the amount of the code? This is digital store so there isn't any shipping or tax unless within my state. How can I get the order to go through? 2) I would like to be able to at least have the info from the people who are downloading my free kits. If I do it this way then I will have their contact info when they sign up for an account . . thus helping my marketing efforts. Understand? I'm open to any suggestions though. I think I'll try the above code and then figure out how I can pass the "delivered" variable so the customer can see their download. :)
Lunara Solutions Posted May 31, 2007 Posted May 31, 2007 ok - the <if> statement won't work in that area because I still need it to clean up sessions and update the database. I can upload my paypal IPN file if anyway would care to look at it. I just need to add the if statement before it actually called the paypal website but then still have it update the database, clean up the sessions and give it a code of delivered so people can download. Anyone have the time to check out the file for me?
Guest Posted May 31, 2007 Posted May 31, 2007 I haben't tested this, but it may work for just the paypal payment though. open includes/modules/payment find: $this->form_action_url = 'https://secure.paypal.com/cgi-bin/webscr'; change to: if ($order->info['total'] != 0){ $this->form_action_url = 'https://secure.paypal.com/cgi-bin/webscr'; }else{ $this->$form_action_url = tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL'); } This is completely untested and I'm not sure if the tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL'); is correct, but give it a try and let me know! EDIT: that should change the link on the final button in the checkout process if paypal is the selected method of payment. Should hopefully re-direct to the success page
bkellum Posted May 31, 2007 Posted May 31, 2007 I'm sure there's a contrib for something like this. I know there's a free shipping contrib.Try having a look in the contributions section I have used the following for all of my "free" downloads and has worked perfectly: http://www.oscommerce.com/community/contributions,3342 Have fun, Bill Kellum Sounds Good Productions STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE
Guest Posted May 31, 2007 Posted May 31, 2007 I have used the following for all of my "free" downloads and has worked perfectly: http://www.oscommerce.com/community/contributions,3342 Have fun, ah yes.. that's the one I was talking about ;)
Lunara Solutions Posted May 31, 2007 Posted May 31, 2007 GET OUT!!!! LOL I've searched and searched in the contrib area and NEVER saw it! Hey . . did you see this update question to it? The problem is that a crafty user may get any order free of charge. The free of charge module doesn't show on the payment form if the charge is greater than 0. You can get around this by setting the payment method to "freeofcharge" on a locally saved copy of the payment form. A workaround is to put error checking in the before_process() function in freeofcharge.php Have you put in any error-checking or are you just using it straight? Thanks so much!!!
bkellum Posted May 31, 2007 Posted May 31, 2007 GET OUT!!!! LOL Have you put in any error-checking or are you just using it straight? Thanks so much!!! It is already applied with that update. Bill Kellum Sounds Good Productions STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE
Lunara Solutions Posted June 1, 2007 Posted June 1, 2007 Thanks Bill for the response. I have one problem. I selected the return status "Download available" in the module but when I try to process an order with zero balance it showed the error message "NOTE: Downloads are not available until payment has been confirmed" any help is greatly appreciated!
bkellum Posted June 1, 2007 Posted June 1, 2007 Thanks Bill for the response. I have one problem. I selected the return status "Download available" in the module but when I try to process an order with zero balance it showed the error message "NOTE: Downloads are not available until payment has been confirmed" any help is greatly appreciated! This has to do with your download settings in the admin. Be sure your download setting is not set to zero, meaning no authorized downloads. Checkout my thread regarding downloadable products: http://www.oscommerce.com/forums/index.php?sho...236224&st=0 Bill Kellum Sounds Good Productions STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE
Lunara Solutions Posted June 1, 2007 Posted June 1, 2007 When the module is off, the download links appear when they are supposed to. I read through that post when I originally set the mod up and it was a great resource! It's just when I installed this mod, it doesn't work. Any other ideas? On a note though, the links are appearing when they should but the status' when I view an order are a bit weird. It shows processing and I have that set below ten. It also sends an email out on processing. Here is my post with all my settings: http://www.oscommerce.com/forums/index.php?sho...p;#entry1084191 Again, I really appreciate your help Bill!!
Guest Posted March 7, 2008 Posted March 7, 2008 I am new here, so please bear with me if I repeat things that have been discussed elsewhere. The freeofcharge.php module I have installed and activated, (also PayPal active) but any product price $0.00 refuses to show the "add to cart" button. Is there a way to check if the price is 0.00 then show add-to-cart and go to checkout without having to pay? I'm not a programming expert.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.