cancel
Showing results for 
Search instead for 
Did you mean: 

Upgraded from version 1.7 to 1.9 payment issue

Upgraded from version 1.7 to 1.9 payment issue

I am stuck on last step(6) of payment. I have posted question many time but still my issue is not resolved. I am posting here code, please have a look and let me know wht is wrong. thanks i have change id value but still not working.

 

In file public_html/app/design/frontend/rwd/default/template/checkout/onepage/payment.phtml

 

<script type="text/javascript">
//<![CDATA[
    var quoteBaseGrandTotal = <?php echo (float)$this->getQuoteBaseGrandTotal(); ?>;
    var checkQuoteBaseGrandTotal = quoteBaseGrandTotal;
    var payment = new Payment('co-payment-form', '<?php echo $this->getUrl('checkout/onepage/savePayment') ?>');
    var lastPrice;
//]]>
</script>
<form action="" id="co-payment-form">
    <div class="fieldset" id="checkout-payment-method-load">
        <?php echo $this->getChildChildHtml('methods_additional', '', true, true) ?>
        <?php echo $this->getChildHtml('methods') ?>
    </div>
</form>
<div class="tool-tip" id="payment-tool-tip" style="display:none;">
    <div class="btn-close"><a href="#" id="payment-tool-tip-close" title="<?php echo $this->__('Close') ?>"><?php echo $this->__('Close') ?></a></div>
    <div class="tool-tip-content"><img src="<?php echo $this->getSkinUrl('images/cvv.gif') ?>" alt="<?php echo $this->__('Card Verification Number Visual Reference') ?>" title="<?php echo $this->__('Card Verification Number Visual Reference') ?>" /></div>
</div>
<?php echo $this->getChildChildHtml('additional') ?>
<div class="buttons-set" id="payment-buttons-container">
    <?php // Moved to CC form ?>
    <?php /* <p class="required"><?php echo $this->__('* Required Fields') ?></p> */ ?>
    <p class="back-link"><a href="#" onclick="checkout.back(); return false;"><small>&laquo; </small><?php echo $this->__('Back') ?></a></p>
    <button type="button" class="button" onclick="payment.save()"><span><span><?php echo $this->__('Continue') ?></span></span></button>
    <span class="please-wait" id="payment-please-wait" style="display:none;">
        <img src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>" alt="<?php echo $this->__('Loading next step...') ?>" title="<?php echo $this->__('Loading next step...') ?>" class="v-middle" /> <?php echo $this->__('Loading next step...') ?>
    </span>
</div>
<script type="text/javascript">
//<![CDATA[
    function toggleToolTip(event){
        if($('payment-tool-tip')){
            $('payment-tool-tip').setStyle({
                top: (Event.pointerY(event)-560)+'px'//,
                //left: (Event.pointerX(event)+100)+'px'
            })
            $('payment-tool-tip').toggle();
        }
        Event.stop(event);
    }
    if($('payment-tool-tip-close')){
        Event.observe($('payment-tool-tip-close'), 'click', toggleToolTip);
    }
//]]>
</script>
<script type="text/javascript">
//<![CDATA[
    payment.currentMethod = "<?php echo $this->getChild('methods')->getSelectedMethodCode() ?>";
//]]>
</script>

and in another payment file at public_html/app/design/frontend/base/default/template/checkout/onepage/payment.phtml the code is like this

 

<script type="text/javascript">
//<![CDATA[
    var quoteBaseGrandTotal = <?php echo (float)$this->getQuoteBaseGrandTotal(); ?>;
    var checkQuoteBaseGrandTotal = quoteBaseGrandTotal;
    var payment = new Payment('co-payment-form', '<?php echo $this->getUrl('checkout/onepage/savePayment') ?>');
    var lastPrice;
//]]>
</script>
<form action="" id="co-payment-form">
    <fieldset id="checkout-payment-method-load">
        <?php echo $this->getChildHtml('methods') ?>
    </fieldset>
</form>
<div class="tool-tip" id="payment-tool-tip" style="display:none;">
    <div class="btn-close"><a href="#" id="payment-tool-tip-close" title="<?php echo $this->__('Close') ?>"><?php echo $this->__('Close') ?></a></div>
    <div class="tool-tip-content"><img src="<?php echo $this->getSkinUrl('images/cvv.gif') ?>" alt="<?php echo $this->__('Card Verification Number Visual Reference') ?>" title="<?php echo $this->__('Card Verification Number Visual Reference') ?>" /></div>
</div>
<div class="buttons-set" id="payment-buttons-container">
    <p class="required"><?php echo $this->__('* Required Fields') ?></p>
    <p class="back-link"><a href="#" onclick="checkout.back(); return false;"><small>&laquo; </small><?php echo $this->__('Back') ?></a></p>
    <button type="button" class="button" onclick="payment.save()"><span><span><?php echo $this->__('Continue') ?></span></span></button>
    <span class="please-wait" id="payment-please-wait" style="display:none;">
        <img src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>" alt="<?php echo $this->__('Loading next step...') ?>" title="<?php echo $this->__('Loading next step...') ?>" class="v-middle" /> <?php echo $this->__('Loading next step...') ?>
    </span>
</div>
<script type="text/javascript">
//<![CDATA[
    function toggleToolTip(event){
        if($('payment-tool-tip')){
            $('payment-tool-tip').setStyle({
                top: (Event.pointerY(event)-560)+'px'//,
                //left: (Event.pointerX(event)+100)+'px'
            })
            $('payment-tool-tip').toggle();
        }
        Event.stop(event);
    }
    if($('payment-tool-tip-close')){
        Event.observe($('payment-tool-tip-close'), 'click', toggleToolTip);
    }
//]]>
</script>
<script type="text/javascript">
//<![CDATA[
    payment.currentMethod = "<?php echo $this->getChild('methods')->getSelectedMethodCode() ?>";
//]]>
</script>

any suggestion idea. thanks in advance

7 REPLIES 7

Re: Upgraded from version 1.7 to 1.9 payment issue

Hi @whatahome,

 

Sorry but I can't figure out with what exactly you are having the issue. Can you please elaborate?

 

 

Thanks

Was my answer helpful? You can accept it as a solution.
175+ Professional Extensions for M1 & M2
Need a developer?Just visit Contact Us Now

Re: Upgraded from version 1.7 to 1.9 payment issue

I think it may be the same issue I am having - on checkout payment options are now showing or loading?

Re: Upgraded from version 1.7 to 1.9 payment issue

Hi, @whatahome & @fembat

 

Follow the blogpost: http://blog.mdnsolutions.com/index.php/magento-1-8-payment-not-loading-on-checkout/

 

It will help you. Or you can let me know if it doesn't.

Was my answer helpful? You can accept it as a solution.
175+ Professional Extensions for M1 & M2
Need a developer?Just visit Contact Us Now

Re: Upgraded from version 1.7 to 1.9 payment issue

Thank you so much!!!

Re: Upgraded from version 1.7 to 1.9 payment issue

Thanks for the response.

 

My issue is when i add things into basket and choose a payment method paypal then after it stucks on last step (6) "Place Order".

Everytime i click on "Place Order" it stays on same page without giving any error message or anything.

 

any idea?

Re: Upgraded from version 1.7 to 1.9 payment issue

Hi ,

The link you provided does help sort my problem out.

 

 

My issue is when i add things into basket and choose a payment method paypal then after it stucks on last step (6) "Place Order".

Everytime i click on "Place Order" it stays on same page without giving any error message or anything.

 

any idea?

Re: Upgraded from version 1.7 to 1.9 payment issue

Did you solve your problem? We have the same problem, but it's mostly only happening when using Safari with MacOS/iOS.

When customer clicks on "Place Order", Safari freezes. Sometimes it takes 10 minutes beeing redirected to the payement (iDeal or Paypal) and sometimes not at all.