Magento : What to do if the continue button on the credit card form doesn’t work

In a recent project I came across a weird problem where the continue button on the credit card form of the one page checkout didn’t work anymore. As it turns out this is easily solved.

Just add the following line to your design’s page.xml.

<action method="addJs"><script>lib/ccard.js</script></action>

You’re probably using a custom theme or have developed your own theme which doesn’t include the required javascript file containing the function to validate the credit card information entered in the check out process.

Author: Luc De Brouwer

Mild-mannered software engineer, Nine Inch Nails lover, gin drinker, cat person, and somewhat of a geek. Ron Swanson is my spirit animal.

2 thoughts on “Magento : What to do if the continue button on the credit card form doesn’t work”

  1. now, if you give some insight as to why the above was happening on 1.6 where that code is already there by default,

    I would be interested!

    1. At the moment I can’t because I’m not managing any 1.6 installations at the moment that have credit card support. But I’ll dive into it sometime this weekend.

Comments are closed.