Results 1 to 10 of 574

Threaded View

  1. #11
    Join Date
    Jul 2021
    Location
    Fukuoka Japan
    Posts
    125
    Plugin Contributions
    2

    Default Re: Stripe payment module - PAYPAL IMPAIRED

    Quote Originally Posted by split63 View Post
    Zen: 1.5.7c
    PHP 7.4

    I installed the stripe payment module and now PayPal Express has been impaired
    on the 3rd/final checkout page, no sub total, shipping, sales tax, and Total is shown for PayPal.


    The issue is the /includes/templates/template_default/templates/tpl_checkout_confirmation_default.php file
    It has a section of original code commented out.
    If I remove the comments, the sub total, shipping, sales tax, and Total return for PayPal

    The issue is this command at line 164 is commented out and needed for PayPal:
    PHP Code:
    $order_totals $order_total_modules->process(); 
    If it is put back, it fixes PayPal, but causes Stripe to print the sub total, shipping, sales tax, and Total twice.


    ANYONE?

    The reason is the low order fee.
    Normally, for payments such as Paypal, customer information and payment price are sent after pressing the "confirmation order" button in checkout confirmation.
    This Stripe module sends customer information and payment price when customer press the "continue" button in Checkout payment.
    Therefore, Low order fee will not be added to $order->info['total'] at checkout payment.
    \www\includes\modules\payment\stripe.php Lines 150-154 Checkout payment screen"Your Total" used for the payment price.
    By executing lines 150-154, Sub-total, Per Item, and Total will be displayed twice on the checkout confirmation screen, so I prevent them from being displayed twice on checkout_confirmation.
    If you do not use Low order fee, the solution is simple, just modify the code below.

    \www\includes\modules\payment\stripe.php 150-154
    PHP Code:
          if (MODULE_ORDER_TOTAL_INSTALLED) {
             
    $order_totals $order_total_modules->process();
             
    $c count($order_totals);
             
    $c -= 1;
             
    $order_value $order_totals[$c]['value'];
            } else{
             
    $order_value $order->info['total'];
            } 
    to
    PHP Code:
    $order_value $order->info['total']; 
    www\includes\templates\YOUR_TEMPLATE\templates\tpl_checkout_confirmation_default .php 158-165

    PHP Code:
    /*
      if (MODULE_ORDER_TOTAL_INSTALLED) {
        $order_totals = $order_total_modules->process();

    ?>
    <?php
      
    }
    */
    to

    PHP Code:
      if (MODULE_ORDER_TOTAL_INSTALLED) {
        $order_totals = $order_total_modules->process();
    ?>
    <div id="orderTotals"><?php $order_total_modules->output(); ?></div>
    <?php
      
    }
    **If anyone has any other ideas, please let me know.**


    Nihon Yokane corporation
    Last edited by Gozzandes; 17 Dec 2024 at 03:45 AM.

 

 

Similar Threads

  1. pay2check.com payment module?
    By sunrise99 in forum Addon Payment Modules
    Replies: 0
    Last Post: 1 Nov 2011, 03:55 AM
  2. klikandpay.com payment module
    By rulest in forum Addon Payment Modules
    Replies: 0
    Last Post: 24 Sep 2010, 06:06 PM
  3. AlertPay Payment Module Integration Help Please!
    By etorf9751 in forum Addon Payment Modules
    Replies: 8
    Last Post: 16 Aug 2010, 05:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR