Comments (4)
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.
Did you end up fixing this somehow? Running into the same problem...
from spree_address_book.
@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.
Unfortunately I'm on 1.3.3, but I'll take a look - thanks!
from spree_address_book.
Related Issues (20)
- Undefined method 'permit' for Hash HOT 1
- Release new version? HOT 2
- In the checkout, when user selects an address the other one gets destroyed
- Addresses are duplicated HOT 2
- using address book without frontend HOT 1
- [vulnerability] The ability to grab any address in the database through the checkout process HOT 6
- Disable bill address HOT 1
- Rails 4 & Spree 2.1+ compatibility HOT 3
- Undefined method `states_url' HOT 1
- undefined local variable or method `address_params' for #<Spree::AddressesController:0x007fc0486bd450>
- ActiveModel::ForbiddenAttributesError on address saving HOT 1
- Delivery address form do not hide if user has no addresses saved
- Future Improvements List
- undefined method `address_state' in _form.html.erb HOT 6
- Spree 2.3 HOT 1
- Spree 3
- Move to spree_contrib? HOT 2
- Missing bootstrap form classes on state and country select
- Installation task error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spree_address_book.