♥raiwa Posted June 28, 2013 Share Posted June 28, 2013 (edited) This is the support forum for: PayPal Express Checkout for Discount and Extra Fee Order Total Modules by Bernhard Bauer and @raiwa http://addons.oscommerce.com/info/8848 This Add-On will include discount and extra fee quantities to the PayPal payment. The included file will work for the following Order Total modules: ot_loworderfee included in standard OsCommerce 2.2. and 2.3. Stores Quantity Discounts by That Software Guy (OSC 2.3.) http://addons.oscommerce.com/info/7881 or Quantity Discounts by That Software Guy (OSC 2.2. http://addons.oscommerce.com/info/6751 Discount Code v3.1 http://addons.oscommerce.com/info/7397 (OSC 2.2.) or http://addons.oscommerce.com/info/7700 (OSC 2.3.) This PayPal Express Checkout module can be modified to work with other Order Total modules too. Edited June 28, 2013 by raiwa Quote About Me: http://www.oscommerce.com/forums/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Link to comment Share on other sites More sharing options...
simonhornby Posted July 15, 2013 Share Posted July 15, 2013 (edited) Hi, I am trying to get the Gift Wrap (http://addons.oscommerce.com/info/8115) order_total to work as per your instructions, as yet with no success. Please can you point me in the right direction. The code I have used is as follows: // Gift Wrap - start $orig_amt = $params['AMT']; $before=$paypal_express->format_raw($order->info['total'], '', 1); if (MODULE_ORDER_TOTAL_GIFTWRAP_STATUS=='true') { include(DIR_WS_MODULES . 'order_total/ot_giftwrap.php'); include(DIR_WS_LANGUAGES . $language . '/modules/order_total/ot_giftwrap.php'); $ot_giftwrap = new ot_giftwrap; $ot_giftwrap->process(); $after = $paypal_express->format_raw($order->info['total'], '', 1); $params['AMT'] = $orig_amt; if($before<$after){ $params['AMT'] = $params['AMT'] +($after-$before); $giftwrap=$after-$before; $params['L_NAME' . $line_item_no] = html_entity_decode(MODULE_ORDER_TOTAL_GIFTWRAP_TITLE); $params['L_AMT' . $line_item_no] = ($paypal_express->format_raw($giftwrap)); $params['L_QTY' . $line_item_no] = 1; $params['ITEMAMT']=$params['ITEMAMT']+(($paypal_express->format_raw($giftwrap))); } } // Gift Wrap - end The gift Wrap title and value do not get passed to Paypal. Please help, where I am I going wrong?? Regards Simon Edited July 15, 2013 by simonhornby Quote Link to comment Share on other sites More sharing options...
simonhornby Posted July 17, 2013 Share Posted July 17, 2013 Hi All. Sussed!!! The following works a treat to get Gift Wrap (http://addons.oscommerce.com/info/8115) description and order total showing in PayPal Express order information pane on the Paypal website. Follow the original install instructions and add the code below. // Gift Wrap - start $orig_amt = $params['AMT']; $before=$paypal_express->format_raw($order->info['total'], '', 1); if (MODULE_ORDER_TOTAL_GIFTWRAP_STATUS == 'true') { include(DIR_WS_MODULES . 'order_total/ot_giftwrap.php'); include(DIR_WS_LANGUAGES . $language . '/modules/order_total/ot_giftwrap.php'); $ot_giftwrap = new ot_giftwrap; $ot_giftwrap->process(); $after = $paypal_express->format_raw($order->info['total'], '', 1); $params['AMT'] = $orig_amt; $params['AMT'] = $params['AMT'] +($order->info['giftwrap_cost']); $giftwrap = $order->info['giftwrap_cost']; $params['L_NAME' . $line_item_no] = html_entity_decode(MODULE_ORDER_TOTAL_GIFTWRAP_TITLE); $params['L_AMT' . $line_item_no] = ($paypal_express->format_raw($giftwrap)); $params['L_QTY' . $line_item_no] = 1; $params['ITEMAMT']=$params['ITEMAMT']+(($paypal_express->format_raw($giftwrap))); $line_item_no++; } // Gift Wrap - end Simon :D Quote Link to comment Share on other sites More sharing options...
sunrise99 Posted July 17, 2013 Share Posted July 17, 2013 I want to know whether this Paypal EC can support & including shipping fee? Quote Link to comment Share on other sites More sharing options...
♥raiwa Posted August 25, 2013 Author Share Posted August 25, 2013 I want to know whether this Paypal EC can support & including shipping fee? shipping is included by default without any modification Quote About Me: http://www.oscommerce.com/forums/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Link to comment Share on other sites More sharing options...
casof Posted November 22, 2013 Share Posted November 22, 2013 (edited) How can I get Paypal express to always go to the "Review your information" page? It only seems to go there if the customer is logged in. When logged out, it only show the abbreviated cart in the upper right, not the more detailed one from the review page. Thanks Edited November 22, 2013 by casof Quote Link to comment Share on other sites More sharing options...
♥raiwa Posted February 1, 2014 Author Share Posted February 1, 2014 How can I get Paypal express to always go to the "Review your information" page? It only seems to go there if the customer is logged in. When logged out, it only show the abbreviated cart in the upper right, not the more detailed one from the review page. Thanks Hello Katherine @@casof, I'm very sorry for the very late reply, hope you got a response meanwhile. Here for any case the fix: In includes/modules/payment/payment_express.php, make the following change in the pre_confirmation_check() function: // if ($response_array['AMT'] == $this->format_raw($order->info['total'])) { // tep_redirect(tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL')); // } else { tep_redirect(tep_href_link(FILENAME_CHECKOUT_CONFIRMATION, 'do=confirm', 'SSL')); // } (all credit to @@Harald Ponce de Leon) regards Rainer Quote About Me: http://www.oscommerce.com/forums/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Link to comment Share on other sites More sharing options...
mfactory Posted April 3, 2014 Share Posted April 3, 2014 Hi, could someone tell me where to find the original Paypal Express Checkout? The version I have does not work with this.. thank you, Nathalie Quote Link to comment Share on other sites More sharing options...
♥raiwa Posted April 3, 2014 Author Share Posted April 3, 2014 Hi, could someone tell me where to find the original Paypal Express Checkout? The version I have does not work with this.. thank you, Nathalie Hello Nathalie @@mfactory, Its included in OsCommerce at least since oscommerce-2.2rc2a kind regards Rainer Quote About Me: http://www.oscommerce.com/forums/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Link to comment Share on other sites More sharing options...
CiscoCo Posted April 8, 2014 Share Posted April 8, 2014 Hello - I just installed this add on, but I'm having an issue with the coupon code being applied to PayPal. For instance, when I order 3 items and input a coupon code for $15 off it marks two of the items down to $0.08 and then the 3rd item costs jumps up to $170, instead of $20. So the order total ends up being the same, and the individual item prices are messed up. Could you help me fix this? Also, is there a way to apply/offer coupon codes for people who immediately click on the PayPal express checkout button from the shopping cart? Thanks! Quote Link to comment Share on other sites More sharing options...
♥raiwa Posted April 8, 2014 Author Share Posted April 8, 2014 Hello - I just installed this add on, but I'm having an issue with the coupon code being applied to PayPal. For instance, when I order 3 items and input a coupon code for $15 off it marks two of the items down to $0.08 and then the 3rd item costs jumps up to $170, instead of $20. So the order total ends up being the same, and the individual item prices are messed up. Could you help me fix this? Also, is there a way to apply/offer coupon codes for people who immediately click on the PayPal express checkout button from the shopping cart? Thanks! Hello Jenna @@CiscoCo, It should work with this coupon-code add-on: Discount Code v3.1 http://addons.oscommerce.com/info/7397 (OSC 2.2.) or http://addons.oscommerce.com/info/7700 (OSC 2.3.) For other add-ons you need to modify the code like explained in steps 4-6 of the install instructions. For the shopping cart: this is explained in step 2-3 of the install instructions. If you are using another coupon code and can't get it to work, consider using the above mentioned Discount Code v3.1. Kind regards Rainer Quote About Me: http://www.oscommerce.com/forums/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Link to comment Share on other sites More sharing options...
Tbyrd Posted December 3, 2014 Share Posted December 3, 2014 I've setup the paypal express on my v2.3.4 and would like the customer to only see payment option after shipping method is chosen, in other words, after checkout button. Can I just take the Paypal button off of the cart screen? Quote Link to comment Share on other sites More sharing options...
♥raiwa Posted December 3, 2014 Author Share Posted December 3, 2014 I've setup the paypal express on my v2.3.4 and would like the customer to only see payment option after shipping method is chosen, in other words, after checkout button. Can I just take the Paypal button off of the cart screen? Hello Thomas @@Tbyrd Best is to comment out or remove in shopping_cart.php this block: <?php $initialize_checkout_methods = $payment_modules->checkout_initialization_method(); if (!empty($initialize_checkout_methods)) { ?> <p align="right" style="clear: both; padding: 15px 50px 0 0;"><?php echo TEXT_ALTERNATIVE_CHECKOUT_METHODS; ?></p> <?php reset($initialize_checkout_methods); while (list(, $value) = each($initialize_checkout_methods)) { ?> <p align="right"><?php echo $value; ?></p> <?php } } ?> regards Rainer Quote About Me: http://www.oscommerce.com/forums/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Link to comment Share on other sites More sharing options...
Tbyrd Posted December 3, 2014 Share Posted December 3, 2014 I'm having trouble with the commenting out! I'm not a PHP guru my any means, but with C++ I'm used to the /* comment */ and // for the beginning of a line. It seems there are some commands that are immune to being commented out. What is the proper method? Quote Link to comment Share on other sites More sharing options...
♥raiwa Posted December 3, 2014 Author Share Posted December 3, 2014 I'm having trouble with the commenting out! I'm not a PHP guru my any means, but with C++ I'm used to the /* comment */ and // for the beginning of a line. It seems there are some commands that are immune to being commented out. What is the proper method? <?php /* $initialize_checkout_methods = $payment_modules->checkout_initialization_method(); if (!empty($initialize_checkout_methods)) { ?> <p align="right" style="clear: both; padding: 15px 50px 0 0;"><?php echo TEXT_ALTERNATIVE_CHECKOUT_METHODS; ?></p> <?php reset($initialize_checkout_methods); while (list(, $value) = each($initialize_checkout_methods)) { ?> <p align="right"><?php echo $value; ?></p> <?php } } */ ?> Beginning must be inside <?php tag <?php /* here alll code to be commented out */ ?> end must be before end php tag ?> Quote About Me: http://www.oscommerce.com/forums/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Link to comment Share on other sites More sharing options...
Tbyrd Posted December 3, 2014 Share Posted December 3, 2014 gotcha, it did what i wanted. Thanks a bunch. T. Byrd Quote Link to comment Share on other sites More sharing options...
Du9dley1 Posted April 9, 2015 Share Posted April 9, 2015 Hi I am using Oscommerce 2.3.4 and added this addon. It works but I am having problems displaying the correct tax with Discount Code 3.2. I have checked & rechecked Discount Code 3.2 mods couldn't find a problem. I decided to start over again and when I was doing the mods for PayPal Express Checkout for Discount that ext/modules/payment/paypal/express.php file was different. It had been change for Osc 3.2.4 and that the code where i was suppose to add your code does not exist. ***Find: // don't recalculate currency values as they have already been calculated $params['SHIPPINGAMT'] = $paypal_express->format_raw($cheapest_rate, '', 1); $params['AMT'] = $paypal_express->format_raw($params['ITEMAMT'] + $params['TAXAMT'] + $params['SHIPPINGAMT'], '', 1); $params['MAXAMT'] = $paypal_express->format_raw($params['AMT'] + $expensive_rate + 100, '', 1); // safely pad higher for dynamic shipping rates (eg, USPS express) Is there an update for the new version of Express.php or can your code be added to it and where. Rick Stimers Quote Link to comment Share on other sites More sharing options...
♥raiwa Posted April 9, 2015 Author Share Posted April 9, 2015 Hello rick @@Du9dley1, the paypal express version included in 2.3.4 is updated and doesn't need any modification. It should work with diecount code and any other third party modules as is. Quote About Me: http://www.oscommerce.com/forums/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Link to comment Share on other sites More sharing options...
suchisuchi Posted November 30, 2015 Share Posted November 30, 2015 Hello, I use 2.3.4 with the paypal app, but discount code doesn't work :-(. Is there an addon for the paypal app? Quote Link to comment Share on other sites More sharing options...
♥raiwa Posted December 1, 2015 Author Share Posted December 1, 2015 Hello Jessi @@suchisuchi, If you refer to this one: http://addons.oscommerce.com/info/9020 it doesn't work with paypal express and probably other modules of the paypal app versions, neither with the previous 3.2 paypal express version. You should use that one: Discount Code v3.1http://addons.oscommerce.com/info/7397 (OSC 2.2.)orhttp://addons.oscommerce.com/info/7700 (OSC 2.3.) It works with PayPal modules with no need of modifications. regards Rainer Quote About Me: http://www.oscommerce.com/forums/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Link to comment Share on other sites More sharing options...
suchisuchi Posted December 7, 2015 Share Posted December 7, 2015 Hello Rainer, I use Discount Code update 3.2 for osCommerce 2.3.1 (from 2.6 - 3.2) with oscommerce 2.3.4. (with Paypal App) When Discount Code Module is installed (only instalation not in use), the checkout goes to paypal, but there are no articles no prices. Quote Link to comment Share on other sites More sharing options...
♥raiwa Posted December 8, 2015 Author Share Posted December 8, 2015 Helo Jessi @@suchisuchi, Thats how the newer PayPal express versions work. The order totals are correct, but the details are not shown if third party order total add-ons are used. Please read the PayPal App Instructions, it's explained there. regards Rainer Quote About Me: http://www.oscommerce.com/forums/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Link to comment Share on other sites More sharing options...
Boldman Posted October 25, 2016 Share Posted October 25, 2016 Raiwa, Recent I work with OSC 2.3.4PayPal express and Paypal standard is installed and works fine. I want that buyers pay the paypal commision, I found in orders total the addon "the cost of payment methonds" When activate the existing standard paypal_ipn 3% fees is not working when make a test order. How to get it working ?Boldman Quote Link to comment Share on other sites More sharing options...
♥raiwa Posted October 25, 2016 Author Share Posted October 25, 2016 Hello Jan @@Boldman, I'm sorry I do not use that order total module and have no idea. This question is not related to this support forum. Please post in the support thread for the payment surcharge add-on, if exists or in the general support forum. Like this it will be much easier that someone who is familiar with it will see it and respond. Kind regards Rainer Quote About Me: http://www.oscommerce.com/forums/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Link to comment Share on other sites More sharing options...
Boldman Posted October 25, 2016 Share Posted October 25, 2016 (edited) ok thx, I was thinking maybe could build in the paypal express module Edited October 25, 2016 by Boldman 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.