I was currently working on adding a module to my site that added another step to the checkout process and after a lot of time and a lot of problems popping up, I decided to delete all the files attached to said module. Since then I've gotten everything working properly except now at the Onepage Checkout, I've gotten stuck at the Billing section. When I press "Continue" it does not go to the next section and the page doesn't update at all. I believe it has something to do with the onclick='billing.save()'
function attached to the "Continue" button.
<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');
EDIT
Here's a link to my site. http://www.avantalarm.com/
NB. I am new to StackExchange and new to Magento. Let me know if I need to explain further information. I'm very interested in learning how to phrase my questions well so I can get the most out of Stack Exchange.
Best Answer
There is a javascript error in the checkout page:
ReferenceError: Excellence is not defined
. This comes from this code:Instead of
new Excellence(...
it should benew Checkout(...
You should make the change in this file
app/design/frontend/{interface}/{theme}/template/checkout/onepage.phtml
(at the end of the file)