solidus_stripe icon indicating copy to clipboard operation
solidus_stripe copied to clipboard

Application can't find gem partials

Open calebuharrison opened this issue 5 years ago • 10 comments

Hello! For some reason our Solidus application isn't properly adding this gem's partials to the view path. We're running Solidus 2.11.3 and and Solidus Stripe 4.2. Is there any additional configuration other than what's listed in the README?

calebuharrison avatar Jan 07 '21 22:01 calebuharrison

Sorry for the late response. Do you recall which partial was not added exactly?

kennyadsl avatar Apr 26 '21 10:04 kennyadsl

Hi ! I'm using Solidus with solidus_starter_frontend and when installing the gem, I get missing partial errors such as : Missing partial spree/checkout/payment/_stripe Missing partial spree/checkout/payment/v3/_elements

I can fix this by copying the _stripe file and v3 folder manually in the corresponding path. It then works but styling isn't applied to the payment elements,it appears the file lib/assets/stylesheets/spree/frontend/solidus_stripe.scss isn't added to the application neither and when moving it, the styling appears incomplete. How can I fix this ?

image

Also interested to know how we can fix the partials not being added to the view path correctly, if you point me in the right direction, I can look into this ?

Gem versions: solidus_core (3.0.0) solidus_starter_frontend (master branch) solidus_stripe (master branch)

alexisagos avatar May 16 '21 18:05 alexisagos

For now, copying the partials that you need in your application is the way to go. You can do the same for the style that we provide by default but I suggest implementing your own.

Sorry about this but we are still figuring out the best way to install this new frontend.

kennyadsl avatar May 17 '21 07:05 kennyadsl

Ok, that's fine, thank you for your answer !

alexisagos avatar May 17 '21 08:05 alexisagos

@kennyadsl I ultimately forked this repository and made a handful of changes to engine.rb.

calebuharrison avatar May 18 '21 22:05 calebuharrison

@nulldotpro seems reasonable, even if I think backend and api's views should already be included without these lines. Thanks for sharing!

kennyadsl avatar May 19 '21 07:05 kennyadsl

This issue has been automatically marked as stale because it has not had recent activity. It might be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Nov 11 '22 13:11 stale[bot]

Issue persists, seems like the generator is not creating the files https://github.com/solidusio/solidus_stripe/issues/133#issue-1442858511

weefunker avatar Nov 30 '22 13:11 weefunker

Just stumbled upon this problem. I'm going to try the copy and paste of partials and css workaround.

guilpejon avatar Dec 31 '22 04:12 guilpejon

Still Present, will C&P the view and css

_> ActionView::MissingTemplate in Checkouts#edit

Showing ...app/views/checkouts/steps/payment_step/_payment_method_controls.html.erb where line #4 raised:

Missing partial checkouts/payment/stripe with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :jbuilder]}.

c-hayes avatar Feb 20 '23 20:02 c-hayes