Magento: Checkout Continue button not proceeding to next step

放肆的年华 提交于 2019-12-08 11:58:45

问题


I was working on adding a section to Magento Onepage Checkout and after running into many issues I went back and deleted all the modules and all the files attached to them. I go back to Checkout and now everything is working normally except that the "Continue" button is stuck at the billing section when I'm logged in. I believe it is connected to the onclick="billing.save() inline function. I am new to Magento and new to Stack Overflow so here is my code for billing.phtml. Let me know if any more information is needed or if I missed some details in this post. I'm eager to learn how to ask questions properly in StackOverflow in order to get the most out of this site.

*****
    <div class="buttons-set" id="billing-buttons-container">
        <p class="required"><?php echo $this->__('* Required Fields') ?></p>
        <button type="button" title="<?php echo $this->__('Continue') ?>" class="button" onclick="billing.save()"><span><span><?php echo $this->__('Continue') ?></span></span></button>
        <span class="please-wait" id="billing-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[
    var billing = new Billing('co-billing-form', '<?php echo $this->getUrl('checkout/onepage/getAddress') ?>address/', '<?php echo $this->getUrl('checkout/onepage/saveBilling') ?>');
    var billingForm = new VarienForm('co-billing-form');

    //billingForm.setElementsRelation('billing:country_id', 'billing:region', '<?php echo $this->getUrl('directory/json/childRegion') ?>', '<?php echo $this->__('Select State/Province...') ?>');
    $('billing-address-select') && billing.newAddress(!$('billing-address-select').value);

    var billingRegionUpdater = new RegionUpdater('billing:country_id', 'billing:region', 'billing:region_id', <?php echo $this->helper('directory')->getRegionJson() ?>, undefined, 'billing:postcode');
//]]>
</script>

Any help is much appreciated. Thanks in advance!


回答1:


For me i just go to system->configuration->shipping methods and change Flat rate shipping method Yes to No and then No to Yes then save config. After this checkout billing step works fine.



来源:https://stackoverflow.com/questions/15532073/magento-checkout-continue-button-not-proceeding-to-next-step

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!