Magento:“结帐继续"按钮无法继续进行下一步 [英] Magento: Checkout Continue button not proceeding to next step
问题描述
我当时正在为Magento Onepage Checkout添加一个部分,遇到许多问题后,我回过头去并删除了所有模块和所有附加到它们的文件.我返回到Checkout,现在一切正常,除了登录时继续"按钮卡在帐单部分.我相信它已连接到 onclick ="billing.save()内联函数.我是Magento的新手,也是Stack Overflow的新手,所以这是我的 billing.phtml 代码.请告诉我是否需要更多信息,或者是否错过了一些详细信息我渴望了解如何在StackOverflow中正确地提出问题,以最大程度地利用本网站.
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!
推荐答案
对我来说,我只是去system-> configuration-> shipping方法,然后将Flat rate shipping方法Yes更改为No,然后将No更改为Yes,然后保存配置.完成此结帐后,结算步骤将正常运行.
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.
这篇关于Magento:“结帐继续"按钮无法继续进行下一步的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!