Guest Posted July 9, 2011 Share Posted July 9, 2011 Free Product Checkout Module (Bypass Payment) intend to bypass payment procedure for free product(s). If Some one upgread it please don,t forget to inform me at this contact form: http://www.fxmatics.com/my-contact/ DEMO: http://www.fxmatics....ex.php/cPath/22 Install Free Product Module --------------------------- 1. Upload all the content inside the included /catalog/ folder to the folder where your shops files are located on your server. 2. Go into your shops admin modules >> payment , choose and install the "Free Product" module and fill out the required info. Have a good Free!!! :thumbsup: ricky89 1 Quote Link to comment Share on other sites More sharing options...
Guest Posted July 11, 2011 Share Posted July 11, 2011 File UPDATED! o:) Additional instruction to Bypass SHIPPING PAGE and PAYMENT PAGE for free product(s). http://addons.oscommerce.com/info/8080 Quote Link to comment Share on other sites More sharing options...
Neri Posted October 2, 2011 Share Posted October 2, 2011 When I load this, I get this on my OSC admin module page: Warning: include(/hermes/bosweb/web256/b2569/ipg.----------/includes/languages/english/modules/payment/free.php) [function.include]: failed to open stream: No such file or directory in /hermes/bosweb/web256/b2569/ipg.------------/admin/modules.php on line 129 Warning: include() [function.include]: Failed opening '/hermes/bosweb/web256/b2569/ipg.--------------/includes/languages/english/modules/payment/free.php' for inclusion (include_path='.:/usr/local/lib/php-5.2.17/lib/php') in /hermes/bosweb/web256/b2569/ipg.-------------/admin/modules.php on line 129 Quote Link to comment Share on other sites More sharing options...
shintaku Posted November 8, 2011 Share Posted November 8, 2011 Hello fxmatics, Thanks for this add-on. I have install and configured the add-on as instructed, however, I still have a little challenge. The problem I want to fix is to bypass selection of payment method for free ($0.000) products and link straight to free product add-on Order Confirmation page. Thanks in advance. Quote Link to comment Share on other sites More sharing options...
nabilinho Posted November 9, 2011 Share Posted November 9, 2011 Hi fxmatics, thank you for sharing your creation with us! When I uploaded the catalog folder, with all of it's contents to where my shops files are located, I couldn't find the "Free product module" anywhere in shops admin modules >> payment. Any idea why? Thank you kindly. Quote Link to comment Share on other sites More sharing options...
tamem Posted June 13, 2012 Share Posted June 13, 2012 Thank you!!! It works wonderful. I am working with a page that only needs to ask pro prices, so these contrib helped me a lot. Does any one, have the idea how to insert a comment box on the last step (checkout_confirmation.php), and these comment insert in mail, which we receive from the server. Cause I could insert the comment box, but I don't get the message. Thank you again! Quote Link to comment Share on other sites More sharing options...
BFkiUB Posted September 24, 2012 Share Posted September 24, 2012 I installed this nice contribution, but I have one problem. The Shipping page is successfully bypassed, but Payment page is not bypassed. I followed the instructions: - In admin > payment I set "Free Product" as the first payment method. - In "catalog/checkout_payment.php" just before: require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CHECKOUT_PAYMENT); I added: // BOF skip if only 1 payment method available. IF YOU HAVE 2 PAYMENT METHODS then "set tep_count_payment_modules() == 2" if (tep_count_payment_modules() == 1 ) { $payment_select = $payment_modules->selection(); $payment = $payment_select[0]['id']; if (!tep_session_is_registered('payment')) tep_session_register('payment'); tep_redirect(tep_href_link(FILENAME_CHECKOUT_CONFIRMATION, '', 'SSL')); } // EOF I put only one free product in my shopping cart, but when I click Checkout, the Payment page still opens :( How can I bypass Payment page? Best wishes, Andrej Kikelj Quote Link to comment Share on other sites More sharing options...
newburns Posted December 5, 2012 Share Posted December 5, 2012 Is there a way that an image selector can be placed in the admin panels somewhere, so that we can utilize our own images? What is the proper image resolution? Quote Link to comment Share on other sites More sharing options...
herbsandhelpers Posted March 22, 2013 Share Posted March 22, 2013 Hello Andre, I've just enabled this module and got the same problem as you. To resolve it look at these lines in catalog/checkout_payment.php form the contribution: // BOF skip if only 1 payment method available. IF YOU HAVE 2 PAYMENT METHODS then "set tep_count_payment_modules() == 2" if (tep_count_payment_modules() == 3 ) { $payment_select = $payment_modules->selection(); $payment = $payment_select[0]['id']; if (!tep_session_is_registered('payment')) tep_session_register('payment'); tep_redirect(tep_href_link(FILENAME_CHECKOUT_CONFIRMATION, '', 'SSL')); } // EOF I've got three payment methods INCLUDING the Free addon therefore have set tep_count_payment_modules() == 3 and it works! You will see no more payments methods after this. Just follow the code! Lorraine Quote Link to comment Share on other sites More sharing options...
LukeBanning Posted April 15, 2013 Share Posted April 15, 2013 (edited) Hello, This is a great, simple and effective add-on! Nevertheless, I got a, probably simple, question. I managed to set this all up, with various other payment methods as well. But, as it is a free download, I want to change the order status to Delivered immediately. This saves the administrator and customer a lot of time of course, because he doesn't need to change the status by him/herself. I already found the next lines of code, and I'm quite sure that this has to have some additional code, so that the order status will be changed. function after_process() { return false; } if someone can help me with it, I'd be very happy :) Thanks for the thoughts already! Luke Edited April 15, 2013 by LukeBanning ricky89 1 Quote Link to comment Share on other sites More sharing options...
♥14steve14 Posted April 16, 2013 Share Posted April 16, 2013 @@LukeBanning Have a look at the super downloads addon. It will automate the full downlaods process. Some say it is not needed in 2.3 versions, but I still use it, and it works as I would expect for both paid and free downloads. Quote REMEMBER BACKUP, BACKUP AND BACKUP Link to comment Share on other sites More sharing options...
LukeBanning Posted April 16, 2013 Share Posted April 16, 2013 @@LukeBanning Have a look at the super downloads addon. It will automate the full downlaods process. Some say it is not needed in 2.3 versions, but I still use it, and it works as I would expect for both paid and free downloads. I took a look at it. Looks good. But on the other hand, everything works right now, The Free Product Checkout payment just needs to set the order status to 'Delivered' and that's it. I'm quite sure it's a very simple code, but I couldn't figure it out yet... Quote Link to comment Share on other sites More sharing options...
newburns Posted April 16, 2013 Share Posted April 16, 2013 @@LukeBanning I don't understand. You want it to set the order status to complete after you have purchased a free product, such as a download?? Change the order status in the Free Product module under "Modules >> Payments >> Free Product" on the admin page. ie. http://mtrosemedia.tk/store/product_info.php/resource-and-pentecost-q42012free-p-57?cPath=24 Is that what you want?? I may be missing something because I have Super Downloads, but I don't see the issue. If you set it to an order status that is allowed to download products, then when the "Order" is "Paid" they can download immediately Let me know Quote Link to comment Share on other sites More sharing options...
LukeBanning Posted April 16, 2013 Share Posted April 16, 2013 @@LukeBanning I don't understand. You want it to set the order status to complete after you have purchased a free product, such as a download?? Change the order status in the Free Product module under "Modules >> Payments >> Free Product" on the admin page. ie. http://mtrosemedia.tk/store/product_info.php/resource-and-pentecost-q42012free-p-57?cPath=24 Is that what you want?? I may be missing something because I have Super Downloads, but I don't see the issue. If you set it to an order status that is allowed to download products, then when the "Order" is "Paid" they can download immediately Let me know Hi... I should feel ashamed. I totally overlooked it all the time... It was there, but I just didn't see it... Was already trying to code some stuff myself, until you gave this beautiful simple answer... Thanks a lot! Kind regards, Luke Quote Link to comment Share on other sites More sharing options...
Simpel Posted May 13, 2014 Share Posted May 13, 2014 just put in the checkout_payment after $payment_modules = new payment; if ( $order->info['subtotal']+$order->info['shipping_cost']==0 ) { tep_redirect(tep_href_link(FILENAME_CHECKOUT_CONFIRMATION, 'payment=freeofcharge', 'SSL')); you can change freeofcharge in anything Quote Link to comment Share on other sites More sharing options...
igloobob Posted November 10, 2014 Share Posted November 10, 2014 Hello, I am trying to prevent this error when checking out with zero cart total (I have a 100% discount coupon for members). Currently Authrorize.net shows this error The following errors have occurred.(5) A valid amount is required. This add on was suggested to me and I've installed it, made sure FREE SHIPPING is first in the order above the regular payment module and included the extra bits of code to to checkout_shipping.php and checkout_payment.php to bypass any shipping and payment pages but it has made no difference. Can anyone please advise if this add on should work for what I want to achieve? ie. I'm not offering any free products as such but am trying to use 100% discount coupon. Quote Link to comment Share on other sites More sharing options...
newburns Posted December 2, 2014 Share Posted December 2, 2014 (edited) @@igloobob If you have the payment module installed, then, during checkout, select the Free payment type. Do not select the Authorize.net payment when there is an amount of 0.00 Ultimately you can bypass the payment page by following the intruction.txt Be sure to change the number of payment count based on how many payment modules you have ENABLED (Including the FREE PRODUCT CHECKOUT payment module) Edited December 2, 2014 by newburns Quote Link to comment Share on other sites More sharing options...
creativeeducationsupplies Posted January 4, 2015 Share Posted January 4, 2015 No matter what I do it still puts the purchases in 'Pending' so the customer can not instantly download them. Am I missing something here? Thank you for the help. Quote Link to comment Share on other sites More sharing options...
ricky89 Posted August 18, 2018 Share Posted August 18, 2018 On 7/9/2011 at 9:49 PM, fxmatics said: Free Product Checkout Module (Bypass Payment) intend to bypass payment procedure for free product(s). If Some one upgread it please don,t forget to inform me at this contact form: http://www.fxmatics.com/my-contact/ DEMO: http://www.fxmatics....ex.php/cPath/22 Install Free Product Module --------------------------- 1. Upload all the content inside the included /catalog/ folder to the folder where your shops files are located on your server. 2. Go into your shops admin modules >> payment , choose and install the "Free Product" module and fill out the required info. Have a good Free!!! :thumbsup: Hi! I have created a free video on a site only that I have to pay I have chosen as payment method 0.0 $ as I do to bypssare the free payment and download my project? Quote Link to comment Share on other sites More sharing options...
ricky89 Posted August 23, 2018 Share Posted August 23, 2018 On 15/4/2013 at 23:43, LukeBanning said: Ciao, Questo è un ottimo, semplice ed efficace add-on! Tuttavia, ho ottenuto una domanda, probabilmente semplice. Sono riuscito a impostare tutto questo, con vari altri metodi di pagamento. Tuttavia, poiché è un download gratuito, desidero modificare immediatamente lo stato dell'ordine in Consegna. Ciò consente all'amministratore e al cliente di risparmiare molto tempo, poiché non ha bisogno di cambiare lo stato da solo. Ho già trovato le righe successive del codice e sono abbastanza sicuro che questo deve avere un codice aggiuntivo, in modo che lo stato dell'ordine venga modificato. se qualcuno mi può aiutare con esso, sarei molto felice Grazie per i pensieri già! Luca Tell me how did you do it? have you tried to download paid software including the full license? Help me understand this situation. Thank you. Quote Link to comment Share on other sites More sharing options...
cinolas Posted November 24, 2020 Share Posted November 24, 2020 (edited) I'm trying to install this contribution on osC 2.3.4 BS GOLD, to be used with the Gift Voucher contribution: https://apps.oscommerce.com/KMILS&gift-vouchers-secure-v1-0 Everything is in place but when I get to checkout_confirmation.php and click the Confirm button, I get sent back to the checkout_payment.php with this error: "Please select a payment method for your order." The problem is caused by line 90 of checkout_process.php: if ( ($payment_modules->selected_module != $payment) || ( is_array($payment_modules->modules) && (sizeof($payment_modules->modules) > 1) && !is_object($$payment) ) || (is_object($$payment) && ($$payment->enabled == false)) ) { tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode(ERROR_NO_PAYMENT_MODULE_SELECTED), 'SSL')); } The first condition is false because $payment_modules->selected_module = NULL Why would it be false? Edited November 24, 2020 by cinolas Quote Link to comment Share on other sites More sharing options...
cinolas Posted November 24, 2020 Share Posted November 24, 2020 Oops I'm wrong, the first condition is TRUE. The problem appears to be with : is_object($$payment) && ($$payment->enabled == false) is_object($$payment) && ($$payment->enabled == false) Any ideas? Quote Link to comment Share on other sites More sharing options...
cinolas Posted November 25, 2020 Share Posted November 25, 2020 (edited) Specifically: is_object($$payment) Which is weird because $payment = 'free' and a var_dump on checkout_confirmation.php shows: ["free"]=> object(free)#19 (5) { ["code"]=> string(4) "free" ["title"]=> string(36) "Pay with my Gift Certificate balance" ["description"]=> string(12) "Free Product" ["enabled"]=> bool(true) ["sort_order"]=> string(1) "1" } Edited November 25, 2020 by cinolas think before you type Quote Link to comment Share on other sites More sharing options...
♥14steve14 Posted November 25, 2020 Share Posted November 25, 2020 I had this module working on my old Frozen site to sell free downloads and it worked faultlessly. Have you set it to be the first payment module selected and set the correct number of other payment modules as explained in the instructions. I had problems with this until I got it right. Quote REMEMBER BACKUP, BACKUP AND BACKUP Link to comment Share on other sites More sharing options...
cinolas Posted November 25, 2020 Share Posted November 25, 2020 11 hours ago, 14steve14 said: I had this module working on my old Frozen site to sell free downloads and it worked faultlessly. Have you set it to be the first payment module selected and set the correct number of other payment modules as explained in the instructions. I had problems with this until I got it right. Thanks, @14steve14. I have set it to be the first payment module, but it looks like setting the correct number of other payment modules was just for when you want to bypass the payment page. I do need the payment page still, that's where the Gift Vouchers are applied. From the install instructions: Quote 4. OPTIONAL: TO BYPASS PAYMENT PAGE - MUST: Go into your shops admin module >> paymet, set "Free Product" payment module as the first payment method at "Sort order of display". Make it 0 and the other payment method(s) higher. - Open your oSC file "catalog/checkout_payment.php" - just before: require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CHECKOUT_PAYMENT); ADD: // BOF skip if only 1 payment method available. IF YOU HAVE 2 PAYMENT METHODS then "set tep_count_payment_modules() == 2" if (tep_count_payment_modules() == 1 ) { $payment_select = $payment_modules->selection(); $payment = $payment_select[0]['id']; if (!tep_session_is_registered('payment')) tep_session_register('payment'); tep_redirect(tep_href_link(FILENAME_CHECKOUT_CONFIRMATION, '', 'SSL')); } // EOF Though even if you bypass both the payment and shipping pages, it's the confirmation page that refuses my order. I am not sure why. and not sure how to debug past that is_object($$payment) Thanks for the help! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.