Skip to content

Instantly share code, notes, and snippets.

@deivisonarthur
Created September 14, 2012 16:59
Show Gist options
  • Select an option

  • Save deivisonarthur/3723227 to your computer and use it in GitHub Desktop.

Select an option

Save deivisonarthur/3723227 to your computer and use it in GitHub Desktop.
//Na linha 399 tem isso
addObservers: function () {
$$('input[name="shipping_method"]').each(function (el) {
el.observe('click', function () {
checkout.update({
'payment-method': 1,
'review': 1
})
})
})
//Coloque isso
addObservers: function () {
$$('input[name="shipping_method"]').each(function (el) {
el.observe('click', function () {
checkout.update({
'payment-method': 1,
'review': 1
})
})
})
$$('input[name="payment[method]"]').each(function (el) { /*Deivison*/
el.observe('click', function () {
checkout.update({
'shipping-method': 1,
'review': 1
})
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment