spree-contrib / spree_fancy

SpreeFancy is a responsive theme for Spree Commerce.
http://guides.spreecommerce.org
BSD 3-Clause "New" or "Revised" License
86 stars 187 forks source link

States not updating spree checkout #142

Closed bhargavmehta closed 6 years ago

bhargavmehta commented 9 years ago

I am using spree 2.4 and spree fancy theme integrated with it. When I proceed to checkout and select a state during checkout the states are not getting updated according to the Country I select. To reproduce the issue. Simple install Spree 2-4 branch and add spree-fancy 2-4 branch to it. Here is my gemfile.

source 'https://rubygems.org'

    # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
    gem 'rails', '4.1.9'
    # Use postgresql as the database for Active Record
    gem 'pg'
    # Use SCSS for stylesheets
    gem 'sass-rails', '~> 4.0.3'
    # Use Uglifier as compressor for JavaScript assets
    gem 'uglifier', '>= 1.3.0'
    # Use CoffeeScript for .js.coffee assets and views
    gem 'coffee-rails', '~> 4.0.0'
    # See https://github.com/sstephenson/execjs#readme for more supported runtimes
    # gem 'therubyracer',  platforms: :ruby

    # Use jquery as the JavaScript library
    gem 'jquery-rails'
    # Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
    gem 'turbolinks'
    # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
    gem 'jbuilder', '~> 2.0'
    # bundle exec rake doc:rails generates the API under doc/api.
    gem 'sdoc', '~> 0.4.0',          group: :doc

    # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
    gem 'spring',        group: :development

    # Use ActiveModel has_secure_password
    # gem 'bcrypt', '~> 3.1.7'

    # Use unicorn as the app server
    # gem 'unicorn'

    # Use Capistrano for deployment
    # gem 'capistrano-rails', group: :development

    # Use debugger
    # gem 'debugger', group: [:development, :test]
    gem 'spree', github: 'spree/spree', branch: '2-4-stable'
    gem 'spree_auth_devise', github: 'spree/spree_auth_devise', branch: '2-4-stable'
    gem 'spree_fancy', :github => 'spree/spree_fancy', :branch => '2-4-stable'

    gem 'spree_gateway', github: 'spree/spree_gateway', branch: '2-4-stable'

Also attaching my gemlock file GIT remote: git://github.com/spree/spree.git revision: 1a6df8a2ae9fcacdffefa44e7d826764b8a2d271 branch: 2-4-stable specs: spree (2.4.7.beta) spree_api (= 2.4.7.beta) spree_backend (= 2.4.7.beta) spree_cmd (= 2.4.7.beta) spree_core (= 2.4.7.beta) spree_frontend (= 2.4.7.beta) spree_sample (= 2.4.7.beta) spree_api (2.4.7.beta) rabl (~> 0.9.4.pre1) spree_core (= 2.4.7.beta) versioncake (~> 2.3.1) spree_backend (2.4.7.beta) jquery-rails (~> 3.1.2) jquery-ui-rails (~> 5.0.0) select2-rails (= 3.5.9.1) spree_api (= 2.4.7.beta) spree_core (= 2.4.7.beta) spree_cmd (2.4.7.beta) thor (~> 0.14) spree_core (2.4.7.beta) activemerchant (~> 1.44.1) acts_as_list (~> 0.3) awesome_nested_set (~> 3.0.1) cancancan (~> 1.9.2) carmen (~> 1.0.0) deface (~> 1.0.0) ffaker (~> 1.16) font-awesome-rails (~> 4.0) friendly_id (~> 5.0.4) highline (~> 1.6.18) httparty (~> 0.11) json (~> 1.7) kaminari (~> 0.15, >= 0.15.1) monetize (~> 1.1) paperclip (~> 4.2.0) paranoia (~> 2.0.5) premailer-rails rails (= 4.1.9) ransack (~> 1.4.1) state_machine (= 1.2.0) stringex (~> 1.5.1) truncate_html (= 0.9.2) twitter_cldr (~> 3.0) spree_frontend (2.4.7.beta) canonical-rails (~> 0.0.4) jquery-rails (~> 3.1.2) spree_api (= 2.4.7.beta) spree_core (= 2.4.7.beta) spree_sample (2.4.7.beta) spree_core (= 2.4.7.beta)

GIT
  remote: git://github.com/spree/spree_auth_devise.git
  revision: c53ccc17323e2c22e4b4fdf0292972ff44790233
  branch: 2-4-stable
  specs:
    spree_auth_devise (2.4.0)
      devise (~> 3.2.3)
      devise-encryptable (= 0.1.2)
      json
      multi_json
      spree_core (~> 2.4.0)

GIT
  remote: git://github.com/spree/spree_fancy.git
  revision: f1607c121ac6c8a6b1fcebe49b77f2bcf2706920
  branch: 2-4-stable
  specs:
    spree_fancy (1.3.0)
      compass-rails
      deface (~> 1.0.0rc3)
      jquery-ui-rails
      spree_core (~> 2.4.0)

GIT
  remote: git://github.com/spree/spree_gateway.git
  revision: 3b40ced38a7643be6a83a9ee1901066e5d765e6c
  branch: 2-4-stable
  specs:
    spree_gateway (2.4.0)
      spree_core (~> 2.4.0)

GEM
  remote: https://rubygems.org/
  specs:
    actionmailer (4.1.9)
      actionpack (= 4.1.9)
      actionview (= 4.1.9)
      mail (~> 2.5, >= 2.5.4)
    actionpack (4.1.9)
      actionview (= 4.1.9)
      activesupport (= 4.1.9)
      rack (~> 1.5.2)
      rack-test (~> 0.6.2)
    actionview (4.1.9)
      activesupport (= 4.1.9)
      builder (~> 3.1)
      erubis (~> 2.7.0)
    active_utils (2.2.3)
      activesupport (>= 2.3.11)
      i18n
    activemerchant (1.44.1)
      active_utils (~> 2.2.0)
      activesupport (>= 3.2.14, < 5.0.0)
      builder (>= 2.1.2, < 4.0.0)
      i18n (>= 0.6.9)
      json (~> 1.7)
      nokogiri (~> 1.4)
      offsite_payments (~> 2.0.0)
    activemodel (4.1.9)
      activesupport (= 4.1.9)
      builder (~> 3.1)
    activerecord (4.1.9)
      activemodel (= 4.1.9)
      activesupport (= 4.1.9)
      arel (~> 5.0.0)
    activesupport (4.1.9)
      i18n (~> 0.6, >= 0.6.9)
      json (~> 1.7, >= 1.7.7)
      minitest (~> 5.1)
      thread_safe (~> 0.1)
      tzinfo (~> 1.1)
    acts_as_list (0.6.0)
      activerecord (>= 3.0)
    addressable (2.3.8)
    arel (5.0.1.20140414130214)
    awesome_nested_set (3.0.2)
      activerecord (>= 4.0.0, < 5)
    bcrypt (3.1.10)
    builder (3.2.2)
    camertron-eprun (1.1.0)
    cancancan (1.9.2)
    canonical-rails (0.0.9)
      rails (>= 3.1, < 5.0)
    carmen (1.0.2)
      activesupport (>= 3.0.0)
    chunky_png (1.3.4)
    cldr-plurals-runtime-rb (1.0.0)
    climate_control (0.0.3)
      activesupport (>= 3.0)
    cocaine (0.5.7)
      climate_control (>= 0.0.3, < 1.0)
    coffee-rails (4.0.1)
      coffee-script (>= 2.2.0)
      railties (>= 4.0.0, < 5.0)
    coffee-script (2.4.1)
      coffee-script-source
      execjs
    coffee-script-source (1.9.1.1)
    colorize (0.7.7)
    compass (0.12.7)
      chunky_png (~> 1.2)
      fssm (>= 0.2.7)
      sass (~> 3.2.19)
    compass-rails (2.0.0)
      compass (>= 0.12.2)
    css_parser (1.3.6)
      addressable
    deface (1.0.1)
      colorize (>= 0.5.8)
      nokogiri (~> 1.6.0)
      polyglot
      rails (>= 3.1)
    devise (3.2.4)
      bcrypt (~> 3.0)
      orm_adapter (~> 0.1)
      railties (>= 3.2.6, < 5)
      thread_safe (~> 0.1)
      warden (~> 1.2.3)
    devise-encryptable (0.1.2)
      devise (>= 2.1.0)
    erubis (2.7.0)
    execjs (2.5.2)
    ffaker (1.32.1)
    font-awesome-rails (4.3.0.0)
      railties (>= 3.2, < 5.0)
    friendly_id (5.0.5)
      activerecord (>= 4.0.0)
    fssm (0.2.10)
    highline (1.6.21)
    hike (1.2.3)
    htmlentities (4.3.3)
    httparty (0.13.3)
      json (~> 1.8)
      multi_xml (>= 0.5.2)
    i18n (0.7.0)
    jbuilder (2.2.13)
      activesupport (>= 3.0.0, < 5)
      multi_json (~> 1.2)
    jquery-rails (3.1.2)
      railties (>= 3.0, < 5.0)
      thor (>= 0.14, < 2.0)
    jquery-ui-rails (5.0.3)
      railties (>= 3.2.16)
    json (1.8.2)
    kaminari (0.16.3)
      actionpack (>= 3.0.0)
      activesupport (>= 3.0.0)
    mail (2.6.3)
      mime-types (>= 1.16, < 3)
    mime-types (2.4.3)
    mini_portile (0.6.2)
    minitest (5.6.0)
    monetize (1.2.0)
      money (~> 6.5.0)
    money (6.5.1)
      i18n (>= 0.6.4, <= 0.7.0)
    multi_json (1.11.0)
    multi_xml (0.5.5)
    nokogiri (1.6.6.2)
      mini_portile (~> 0.6.0)
    offsite_payments (2.0.1)
      active_utils (~> 2.2.0)
      activesupport (>= 3.2.14, < 5.0.0)
      builder (>= 2.1.2, < 4.0.0)
      i18n (~> 0.5)
      json (~> 1.7)
      money (< 7.0.0)
      nokogiri (~> 1.4)
    orm_adapter (0.5.0)
    paperclip (4.2.1)
      activemodel (>= 3.0.0)
      activesupport (>= 3.0.0)
      cocaine (~> 0.5.3)
      mime-types
    paranoia (2.0.5)
      activerecord (~> 4.0)
    pg (0.18.1)
    polyamorous (1.2.0)
      activerecord (>= 3.0)
    polyglot (0.3.5)
    premailer (1.8.4)
      css_parser (>= 1.3.6)
      htmlentities (>= 4.0.0)
    premailer-rails (1.8.0)
      actionmailer (>= 3, < 5)
      premailer (~> 1.7, >= 1.7.9)
    rabl (0.9.4.pre1)
      activesupport (>= 2.3.14)
    rack (1.5.2)
    rack-test (0.6.3)
      rack (>= 1.0)
    rails (4.1.9)
      actionmailer (= 4.1.9)
      actionpack (= 4.1.9)
      actionview (= 4.1.9)
      activemodel (= 4.1.9)
      activerecord (= 4.1.9)
      activesupport (= 4.1.9)
      bundler (>= 1.3.0, < 2.0)
      railties (= 4.1.9)
      sprockets-rails (~> 2.0)
    railties (4.1.9)
      actionpack (= 4.1.9)
      activesupport (= 4.1.9)
      rake (>= 0.8.7)
      thor (>= 0.18.1, < 2.0)
    rake (10.4.2)
    ransack (1.4.1)
      actionpack (>= 3.0)
      activerecord (>= 3.0)
      activesupport (>= 3.0)
      i18n
      polyamorous (~> 1.1)
    rdoc (4.2.0)
      json (~> 1.4)
    sass (3.2.19)
    sass-rails (4.0.5)
      railties (>= 4.0.0, < 5.0)
      sass (~> 3.2.2)
      sprockets (~> 2.8, < 3.0)
      sprockets-rails (~> 2.0)
    sdoc (0.4.1)
      json (~> 1.7, >= 1.7.7)
      rdoc (~> 4.0)
    select2-rails (3.5.9.1)
      thor (~> 0.14)
    spring (1.3.4)
    sprockets (2.12.3)
      hike (~> 1.2)
      multi_json (~> 1.0)
      rack (~> 1.0)
      tilt (~> 1.1, != 1.3.0)
    sprockets-rails (2.2.4)
      actionpack (>= 3.0)
      activesupport (>= 3.0)
      sprockets (>= 2.8, < 4.0)
    state_machine (1.2.0)
    stringex (1.5.1)
    thor (0.19.1)
    thread_safe (0.3.5)
    tilt (1.4.1)
    truncate_html (0.9.2)
    turbolinks (2.5.3)
      coffee-rails
    twitter_cldr (3.1.2)
      camertron-eprun
      cldr-plurals-runtime-rb (~> 1.0.0)
      json
      tzinfo
    tzinfo (1.2.2)
      thread_safe (~> 0.1)
    uglifier (2.7.1)
      execjs (>= 0.3.0)
      json (>= 1.8.0)
    versioncake (2.3.1)
      actionpack (>= 3.2)
      activesupport (>= 3.2)
      railties (>= 3.2)
      tzinfo
    warden (1.2.3)
      rack (>= 1.0)

PLATFORMS
  ruby

DEPENDENCIES
  coffee-rails (~> 4.0.0)
  jbuilder (~> 2.0)
  jquery-rails
  pg
  rails (= 4.1.9)
  sass-rails (~> 4.0.3)
  sdoc (~> 0.4.0)
  spree!
  spree_auth_devise!
  spree_fancy!
  spree_gateway!
  spring
  turbolinks
  uglifier (>= 1.3.0)

I know the issue is in javascript. Attaching a link to screenshot http://www.evernote.com/shard/s497/sh/cca7bd8a-8608-481b-830c-e28f769413f6/670eec0f4a5537c7526c15a910e1487e Check this link Note: we have not done any customization