-
16-10-2019 - |
题
目前,我正在为网站添加一个模块,该模块在结帐过程中增加了另一个步骤,并且在大量时间和大量弹出问题之后,我决定删除附加到所述模块的所有文件。从那时起,除了现在在Onepage结帐时,我都可以正常工作,但我已经陷入了计费部分。当我按“继续”时,它不会转到下一节,并且页面根本不会更新。我相信这与 onclick='billing.save()'
附加在“继续”按钮上的功能。
<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>
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');
编辑
这是我网站的链接。 http://www.avantalarm.com/
NB。我是Stackexchange的新手,是Magento的新手。让我知道我是否需要解释更多信息。我非常有兴趣学习如何表达我的问题,以便我可以充分利用Stack Exchange。
解决方案
结帐页面中有一个JavaScript错误: ReferenceError: Excellence is not defined
。这来自此代码:
var checkout = new Excellence(accordion,{
progress: 'https://www.avantalarm.com/checkout/onepage/progress/',
review: 'https://www.avantalarm.com/checkout/onepage/review/',
saveMethod: 'https://www.avantalarm.com/checkout/onepage/saveMethod/',
failure: 'http://www.avantalarm.com/checkout/cart/'}
);
代替 new Excellence(...
它应该是 new Checkout(...
您应该在此文件中进行更改 app/design/frontend/{interface}/{theme}/template/checkout/onepage.phtml
(在文件末尾)
其他提示
我也面临这个问题。经过大量时间投资/app/design/frontend/base/default/template/checkout/checkout/onepage/payment.phtm我已更改此行
<fieldset>
<?php echo $this->getChildHtml('methods') ?>
</fieldset>
至
<fieldset id="checkout-payment-method-load">
<?php echo $this->getChildHtml('methods') ?>
</fieldset>