I have however installed correctly the gem `solidu...
# support
s
I have however installed correctly the gem
solidus_stripe
and did
rails g solidus_stripe:install
e
Hey 👋 can you please share the contents of the app/views/spree folder? like with
ls -lR app/views/spree
👍 1
s
Copy code
computer@bsd:~/shop/app/views/spree
$ ls -lR
.:
total 104
drwxr-xr-x  2 computer  computer   512 Sep 10 14:20 address/
drwxr-xr-x  5 computer  computer   512 Sep 10 14:20 checkout/
drwxr-xr-x  2 computer  computer   512 Sep 10 14:20 home/
drwxr-xr-x  2 computer  computer   512 Sep 10 14:20 layouts/
drwxr-xr-x  2 computer  computer  1024 Sep 10 14:20 orders/
drwxr-xr-x  3 computer  computer  1024 Sep 10 14:20 products/
drwxr-xr-x  6 computer  computer   512 Sep 10 14:20 shared/
drwxr-xr-x  2 computer  computer   512 Sep 10 14:20 taxons/
drwxr-xr-x  2 computer  computer   512 Sep 10 14:20 user_mailer/
drwxr-xr-x  2 computer  computer   512 Sep 10 14:20 user_passwords/
drwxr-xr-x  2 computer  computer   512 Sep 10 14:20 user_registrations/
drwxr-xr-x  2 computer  computer   512 Sep 10 14:20 user_sessions/
drwxr-xr-x  2 computer  computer   512 Sep 10 14:20 users/

./address:
total 8
-rw-r--r--  1 computer  computer  385 Sep 10 14:20 _form_hidden.html.erb

./checkout:
total 72
-rw-r--r--  1 computer  computer   197 Sep 10 14:20 _checkout_header.html.erb
-rw-r--r--  1 computer  computer   475 Sep 10 14:20 _checkout_step.html.erb
-rw-r--r--  1 computer  computer  2768 Sep 10 14:20 _checkout_summary.html.erb
-rw-r--r--  1 computer  computer    42 Sep 10 14:20 _terms_and_conditions.en.html.erb
-rw-r--r--  1 computer  computer   439 Sep 10 14:20 edit.html.erb
drwxr-xr-x  2 computer  computer   512 Sep 10 14:20 existing_payment/
drwxr-xr-x  2 computer  computer   512 Sep 10 14:20 payment/
-rw-r--r--  1 computer  computer   221 Sep 10 14:20 registration.html.erb
drwxr-xr-x  5 computer  computer   512 Sep 10 14:20 steps/

./checkout/existing_payment:
total 8
-rw-r--r--  1 computer  computer  452 Sep 10 14:20 _gateway.html.erb

./checkout/payment:
total 8
-rw-r--r--  1 computer  computer     0 Sep 10 14:20 _check.html.erb
-rw-r--r--  1 computer  computer  1538 Sep 10 14:20 _gateway.html.erb

./checkout/steps:
total 56
-rw-r--r--  1 computer  computer  1607 Sep 10 14:20 _address_step.html.erb
-rw-r--r--  1 computer  computer   652 Sep 10 14:20 _confirm_step.html.erb
-rw-r--r--  1 computer  computer   855 Sep 10 14:20 _delivery_step.html.erb
-rw-r--r--  1 computer  computer   750 Sep 10 14:20 _payment_step.html.erb
drwxr-xr-x  2 computer  computer   512 Sep 10 14:20 address_step/
drwxr-xr-x  2 computer  computer   512 Sep 10 14:20 delivery_step/
drwxr-xr-x  2 computer  computer   512 Sep 10 14:20 payment_step/

./checkout/steps/address_step:
total 8
-rw-r--r--  1 computer  computer  3271 Sep 10 14:20 _address_inputs.html.erb

./checkout/steps/delivery_step:
total 40
-rw-r--r--  1 computer  computer  534 Sep 10 14:20 _proposed_shipment.erb
-rw-r--r--  1 computer  computer  657 Sep 10 14:20 _shipment_items.html.erb
-rw-r--r--  1 computer  computer  365 Sep 10 14:20 _shipping_methods.html.erb
-rw-r--r--  1 computer  computer  179 Sep 10 14:20 _unshippable_items.html.erb
-rw-r--r--  1 computer  computer  368 Sep 10 14:20 _variants_list.html.erb

./checkout/steps/payment_step:
total 24
-rw-r--r--  1 computer  computer  1261 Sep 10 14:20 _existing_cards.html.erb
-rw-r--r--  1 computer  computer   261 Sep 10 14:20 _payment_method_controls.html.erb
-rw-r--r--  1 computer  computer   579 Sep 10 14:20 _payment_method_selector.html.erb

./home:
total 16
-rw-r--r--  1 computer  computer  496 Sep 10 14:20 _hero.html.erb
-rw-r--r--  1 computer  computer  161 Sep 10 14:20 index.html.erb

./layouts:
total 32
-rw-r--r--  1 computer  computer  788 Sep 10 14:20 _footer.html.erb
-rw-r--r--  1 computer  computer  625 Sep 10 14:20 _header.html.erb
-rw-r--r--  1 computer  computer  644 Sep 10 14:20 _top_bar.html.erb
-rw-r--r--  1 computer  computer  878 Sep 10 14:20 spree_application.html.erb

./orders:
total 160
-rw-r--r--  1 computer  computer  1025 Sep 10 14:20 _address_overview.html.erb
-rw-r--r--  1 computer  computer   356 Sep 10 14:20 _cart_adjustment.html.erb
-rw-r--r--  1 computer  computer  1317 Sep 10 14:20 _cart_adjustments.html.erb
-rw-r--r--  1 computer  computer   338 Sep 10 14:20 _cart_amount_row.html.erb
-rw-r--r--  1 computer  computer   224 Sep 10 14:20 _cart_empty.html.erb
-rw-r--r--  1 computer  computer   387 Sep 10 14:20 _cart_footer.html.erb
-rw-r--r--  1 computer  computer   329 Sep 10 14:20 _cart_header.html.erb
-rw-r--r--  1 computer  computer  1162 Sep 10 14:20 _cart_item.html.erb
-rw-r--r--  1 computer  computer   741 Sep 10 14:20 _cart_items.html.erb
-rw-r--r--  1 computer  computer   406 Sep 10 14:20 _cart_secondary_actions.html.erb
-rw-r--r--  1 computer  computer   540 Sep 10 14:20 _coupon_code.html.erb
-rw-r--r--  1 computer  computer   820 Sep 10 14:20 _item_info.html.erb
-rw-r--r--  1 computer  computer  1992 Sep 10 14:20 _line_items.html.erb
-rw-r--r--  1 computer  computer   900 Sep 10 14:20 _order_details.html.erb
-rw-r--r--  1 computer  computer   701 Sep 10 14:20 _order_item.html.erb
-rw-r--r--  1 computer  computer   329 Sep 10 14:20 _order_items.html.erb
-rw-r--r--  1 computer  computer   825 Sep 10 14:20 _order_shipments.html.erb
-rw-r--r--  1 computer  computer   899 Sep 10 14:20 _payment_info.html.erb
-rw-r--r--  1 computer  computer   732 Sep 10 14:20 edit.html.erb
-rw-r--r--  1 computer  computer   806 Sep 10 14:20 show.html.erb

./products:
total 144
-rw-r--r--  1 computer  computer  1454 Sep 10 14:20 _product-card.html.erb
-rw-r--r--  1 computer  computer   488 Sep 10 14:20 _product_availability.html.erb
-rw-r--r--  1 computer  computer   916 Sep 10 14:20 _product_form.html.erb
-rw-r--r--  1 computer  computer   668 Sep 10 14:20 _product_header.html.erb
-rw-r--r--  1 computer  computer   207 Sep 10 14:20 _product_image.html.erb
-rw-r--r--  1 computer  computer   275 Sep 10 14:20 _product_info.html.erb
-rw-r--r--  1 computer  computer   629 Sep 10 14:20 _product_promotions.html.erb
-rw-r--r--  1 computer  computer   616 Sep 10 14:20 _product_properties.html.erb
-rw-r--r--  1 computer  computer   502 Sep 10 14:20 _product_submit.html.erb
-rw-r--r--  1 computer  computer   374 Sep 10 14:20 _product_taxons.html.erb
-rw-r--r--  1 computer  computer   813 Sep 10 14:20 _product_thumbnails.html.erb
-rw-r--r--  1 computer  computer  1382 Sep 10 14:20 _product_variants.html.erb
-rw-r--r--  1 computer  computer   326 Sep 10 14:20 _products-grid.html.erb
-rw-r--r--  1 computer  computer   799 Sep 10 14:20 _products.html.erb
-rw-r--r--  1 computer  computer   278 Sep 10 14:20 _products_by_taxon.html.erb
-rw-r--r--  1 computer  computer   664 Sep 10 14:20 index.html.erb
drwxr-xr-x  2 computer  computer   512 Sep 10 14:20 product_selection/
-rw-r--r--  1 computer  computer   892 Sep 10 14:20 show.html.erb

./products/product_selection:
total 8
-rw-r--r--  1 computer  computer  1176 Sep 10 14:20 _option_type.html.erb

./shared:
total 32
drwxr-xr-x  2 computer  computer  512 Sep 10 14:20 auth/
drwxr-xr-x  2 computer  computer  512 Sep 10 14:20 cart/
drwxr-xr-x  2 computer  computer  512 Sep 10 14:20 navigation/
drwxr-xr-x  2 computer  computer  512 Sep 10 14:20 search/

./shared/auth:
total 0
-rw-r--r--  1 computer  computer  0 Sep 10 14:20 unauthorized.html.erb

./shared/cart:
total 8
-rw-r--r--  1 computer  computer  39 Sep 10 14:20 _link_to_cart.html.erb

./shared/navigation:
total 8
-rw-r--r--  1 computer  computer  557 Sep 10 14:20 _taxonomies.html.erb

./shared/search:
total 16
-rw-r--r--  1 computer  computer   456 Sep 10 14:20 _filters.html.erb
-rw-r--r--  1 computer  computer  1302 Sep 10 14:20 _search_bar.html.erb

./taxons:
total 8
-rw-r--r--  1 computer  computer  591 Sep 10 14:20 show.html.erb

./user_mailer:
total 16
-rw-r--r--  1 computer  computer  138 Sep 10 14:20 confirmation_instructions.text.erb
-rw-r--r--  1 computer  computer  342 Sep 10 14:20 reset_password_instructions.text.erb

./user_passwords:
total 16
-rw-r--r--  1 computer  computer  1128 Sep 10 14:20 edit.html.erb
-rw-r--r--  1 computer  computer   774 Sep 10 14:20 new.html.erb

./user_registrations:
total 8
-rw-r--r--  1 computer  computer  1275 Sep 10 14:20 new.html.erb

./user_sessions:
total 16
-rw-r--r--  1 computer  computer   781 Sep 10 14:20 guest.html.erb
-rw-r--r--  1 computer  computer  1272 Sep 10 14:20 new.html.erb

./users:
total 16
-rw-r--r--  1 computer  computer  1001 Sep 10 14:20 edit.html.erb
-rw-r--r--  1 computer  computer  1927 Sep 10 14:20 show.html.erb
Ok thank you very much @elia 🙂
e
I think as a temporary fix you can add something like:
Copy code
SolidusStripe::Engine.paths["app/views"] << "lib/views/backend" if SolidusSupport.backend_available?
SolidusStripe::Engine.paths["app/views"] << "lib/views/frontend" if SolidusSupport.frontend_available?
SolidusStripe::Engine.paths["app/views"] << "lib/views/api" if SolidusSupport.api_available?
to your
config/application.rb
, although I didn’t test it, so YMMV
🙌 1
s
Thank you I will try that 😉
e
@Sabo turns out that those paths should already be added to the app by solidus_support, can you please check which version of it is in your Gemfile.lock?
cat Gemfile.lock|grep solidus_support
👍 1
s
Oh Ok
Copy code
$ cat Gemfile.lock | grep solidus_support
      solidus_support (~> 0.5)
      solidus_support (~> 0.4)
      solidus_support (~> 0.8)
    solidus_support (0.9.1)
  solidus_support
Copy code
$ bundle info solidus_support
  * solidus_support (0.9.1)
	Summary: Common runtime helpers for Solidus extensions.
	Homepage: <https://github.com/solidusio/solidus_support>
	Path: /usr/local/lib/ruby/gems/3.1/gems/solidus_support-0.9.1
	Reverse Dependencies: 
		solidus_auth_devise (2.5.4) depends on solidus_support (~> 0.5)
		solidus_i18n (2.1.1) depends on solidus_support (~> 0.4)
		solidus_stripe (4.3.0) depends on solidus_support (~> 0.8)
After looking into the rails console it appears that
SolidusSupport.frontend_available?
is on
nil
Copy code
irb(main):004:0> SolidusSupport.frontend_available?
=> nil
irb(main):005:0> SolidusSupport.api_available?
=> "constant"
irb(main):006:0> SolidusSupport.backend_available?
=> "constant"
e
Yes, that’s the culprit, so the issues is that: 1. there’s no explicit support for solidus_starter_frontend in solidus_stripe 2. you still want to use the frontend views in your app given this my final suggestion is to just copy over all the frontend stuff from the solidus_stripe extension, that way you’ll own the code in your store and you can customize it more easily, which is the way the starter-frontend is supposed to work
🙌 1
s
Ok thank you for help @elia 😉
👍 1
😊 1