Code Monkey home page Code Monkey logo

Comments (4)

mrpollo avatar mrpollo commented on June 15, 2024

Problem seems to be located in spree_address_book.js on function show_address_form we are currently just displaying the form but a trigger must be called from checkout.js.coffee ( from core ) called update_state, not sure where to fix this, I would only need to have a reference to update_state available so we could append something like

function show_address_form(address_type){
  $("#" + address_type + " .inner").show();
  $("#" + address_type + " .inner input").prop("disabled", false);
  $("#" + address_type + " .inner select").prop("disabled", false);
  update_state( ( ( address_type === 'shipping' ) ? 's' : 'b' ) );
}

I can confirm this fixes my issue, but I'm uncertain on how to proceed with making update_state available or if we would need somewhat of a similar function inside spree_address_book.js, does this even make sense?

please advice.

from spree_address_book.

greinacker avatar greinacker commented on June 15, 2024

Did you end up fixing this somehow? Running into the same problem...

from spree_address_book.

mrpollo avatar mrpollo commented on June 15, 2024

@greinacker I can't say for sure, but you might want to look into my fork, specially if you are using 2-0-stable

from spree_address_book.

greinacker avatar greinacker commented on June 15, 2024

Unfortunately I'm on 1.3.3, but I'll take a look - thanks!

from spree_address_book.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.