Ernesto Ponce
04/08/2023, 7:03 PMMissing partial checkouts/payment/_braintree with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :jbuilder]}.
Could someone help me?kennyadsl
solidus_braintree
did you pick up?Ernesto Ponce
04/11/2023, 12:03 PMErnesto Ponce
04/11/2023, 12:07 PMkennyadsl
Ernesto Ponce
04/11/2023, 12:11 PMbundle add solidus
bin/rails g solidus:install
It installed this gems
gem "solidus_auth_devise", "~> 2.5"
gem "solidus_core", "~> 3.3"
gem "solidus_backend", "~> 3.3"
gem "solidus_api", "~> 3.3"
gem "solidus_sample", "~> 3.3"
gem "canonical-rails"
gem "solidus_support"
then I continue adding these gems:
gem 'solidus_dynamic_variants', github: 'hefan/solidus_dynamic_variants', branch: 'master'
gem 'solidus_product_assembly'
And Finally I tried to install this:
gem 'solidus_braintree'Ernesto Ponce
04/11/2023, 12:11 PMkennyadsl
checkout/payments/_braintree
but on v2, it’s under spree/checkout/payments/_braintree
kennyadsl
kennyadsl
app/views/checkout/payments/_braintree
copying the content, it should workErnesto Ponce
04/11/2023, 12:13 PMErnesto Ponce
04/11/2023, 12:13 PMErnesto Ponce
04/11/2023, 12:13 PMkennyadsl
Ernesto Ponce
04/11/2023, 12:14 PMErnesto Ponce
04/11/2023, 12:15 PMkennyadsl
Ernesto Ponce
04/11/2023, 12:19 PMundefined local variable or method `wallet_payment_source' for #<ActionView::Base:0x0000000006d308>
kennyadsl
kennyadsl
Ernesto Ponce
04/11/2023, 12:22 PMErnesto Ponce
04/11/2023, 12:23 PMkennyadsl
Ernesto Ponce
04/11/2023, 12:24 PMkennyadsl
app/views/checkouts/steps/payment_step/_existing_cards.html.erb
?Ernesto Ponce
04/11/2023, 12:26 PMErnesto Ponce
04/11/2023, 12:27 PMkennyadsl
kennyadsl
spree
partErnesto Ponce
04/11/2023, 12:38 PMkennyadsl
app/views/spree/checkout/existing_payment/_braintree.html.erb
should be called app/views/checkout/existing_payment/_braintree.html.erb
Ernesto Ponce
04/11/2023, 12:40 PMErnesto Ponce
04/11/2023, 12:42 PMErnesto Ponce
04/11/2023, 12:42 PMErnesto Ponce
04/11/2023, 12:42 PMkennyadsl
Ernesto Ponce
04/11/2023, 12:45 PMErnesto Ponce
04/11/2023, 12:45 PMkennyadsl
_braintree
file into the existing_payment
folder as wellkennyadsl
Ernesto Ponce
04/11/2023, 12:46 PMkennyadsl
Ernesto Ponce
04/11/2023, 12:49 PMkennyadsl
checkouts
not checkout
kennyadsl
Ernesto Ponce
04/11/2023, 12:50 PMundefined local variable or method `wallet_payment_source' for #<ActionView::Base:0x00000000072970>
kennyadsl
Ernesto Ponce
04/11/2023, 12:51 PMkennyadsl
Ernesto Ponce
04/11/2023, 12:52 PMkennyadsl
kennyadsl
Ernesto Ponce
04/11/2023, 12:54 PMAsset `solidus_braintree/checkout.js` was not declared to be precompiled in production.
kennyadsl
Ernesto Ponce
04/11/2023, 12:55 PMkennyadsl
Ernesto Ponce
04/11/2023, 12:56 PMAsset `solidus_braintree/checkout.js` was not declared to be precompiled in production.
kennyadsl
kennyadsl
config/application.rb
and it should work (after a server restart)Ernesto Ponce
04/11/2023, 1:01 PMErnesto Ponce
04/11/2023, 1:02 PMErnesto Ponce
04/11/2023, 1:02 PMErnesto Ponce
04/11/2023, 1:05 PMkennyadsl
Ernesto Ponce
04/11/2023, 1:11 PMErnesto Ponce
04/11/2023, 1:22 PMkennyadsl
kennyadsl
kennyadsl
Ernesto Ponce
04/11/2023, 1:27 PMErnesto Ponce
04/11/2023, 1:28 PMkennyadsl
Ernesto Ponce
04/11/2023, 1:29 PMkennyadsl
Ernesto Ponce
04/11/2023, 1:29 PMErnesto Ponce
04/11/2023, 1:29 PMkennyadsl
Ernesto Ponce
04/11/2023, 1:30 PMErnesto Ponce
04/11/2023, 1:30 PMErnesto Ponce
04/11/2023, 1:31 PMErnesto Ponce
04/11/2023, 1:32 PMkennyadsl
Ernesto Ponce
04/11/2023, 1:33 PMErnesto Ponce
04/11/2023, 1:33 PMkennyadsl
Ernesto Ponce
04/11/2023, 1:33 PMErnesto Ponce
04/11/2023, 1:34 PMkennyadsl
kennyadsl
Ernesto Ponce
04/11/2023, 2:19 PMErnesto Ponce
04/11/2023, 2:20 PMkennyadsl
Ernesto Ponce
04/11/2023, 2:54 PMErnesto Ponce
04/11/2023, 2:54 PMkennyadsl
Ernesto Ponce
04/11/2023, 2:55 PMErnesto Ponce
04/11/2023, 2:56 PMkennyadsl
Ernesto Ponce
04/11/2023, 2:56 PMErnesto Ponce
04/11/2023, 2:56 PMkennyadsl
Solidus
and not Spree
.
Let’s try to hack that. If you open app/assets/javascripts/utils.js.rb
, you could try to add this line at the bottom of the file:
window.Spree = Solidus;
Ernesto Ponce
04/11/2023, 3:03 PMErnesto Ponce
04/11/2023, 3:03 PMkennyadsl
Ernesto Ponce
04/11/2023, 3:03 PMErnesto Ponce
04/11/2023, 3:03 PMkennyadsl
kennyadsl
gem 'jquery-rails'
in your Gemfile
+
//= require jquery
somewhere in your asset pipeline files (probably app/assets/javascripts/solidus_starter_frontend.js
)Ernesto Ponce
04/11/2023, 3:07 PMErnesto Ponce
04/11/2023, 3:07 PMkennyadsl
Ernesto Ponce
04/11/2023, 3:08 PMkennyadsl
//= require jquery
without adding any gemkennyadsl
//= require jquery3
Ernesto Ponce
04/11/2023, 3:13 PMErnesto Ponce
04/11/2023, 3:16 PM