Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Ajax Popup On New Checkout Page Problem Rate Topic   - - - - -

 
  • teosu
  • Senior Member
  • Members
  • Join Date: 09-Oct 14
  • 623 posts

Posted 12 September 2019 - 09:28 AM #1

Hi i want show an confirmation pupup before place order at new checkout ( v4.10.x lite checkout )

check the checkout forum :

<form name="litecheckout_payments_form" id="litecheckout_payments_form" action="https://www.domain.com/index.php?dispatch=checkout.place_order" method="post" data-ca-lite-checkout-element="checkout-form" data-ca-lite-checkout-ready-for-checkout="false" class="litecheckout__payment-methods cm-processed-form"> 

its not cm-ajax form.

 

i try checkout.pre with  $mode == 'place_order'

 

with following code:

if (defined('AJAX_REQUEST')) {

            Tygh::$app['view']->assign([
                'return_url' => isset($_REQUEST['return_url']) ? $_REQUEST['return_url'] : null,
                'redirect_url' => isset($_REQUEST['redirect_url']) ? $_REQUEST['redirect_url'] : null,
                'title' => __('confirm_before_order'),
            ]);

            Tygh::$app['view']->display('addons/my_changes/components/confirm.tpl');
            exit;
        }

also i try wihout if (defined('AJAX_REQUEST'))

 

its show just when checkout complete with new page.

 

anyone can give suggest or hot fix this ?



 
  • crazyshark20
  • Junior Member
  • Members
  • Join Date: 19-Aug 09
  • 301 posts

Posted 13 September 2019 - 10:20 PM #2

Yes i have popup in checkout like this problem anyone know that solution??