solidusio / solidus_paypal_braintree

⛔️ [Archived] Use solidus_braintree instead!
https://github.com/solidusio/solidus_braintree
BSD 3-Clause "New" or "Revised" License
37 stars 78 forks source link

`solidus_support` loads `_payment.html.erb` aggressively #315

Open hrdchz opened 2 years ago

hrdchz commented 2 years ago

We are using a customized version of the default frontend. We had an issue where if a customer had store credit, checkout would raise NoMethodFound for display_payment_type. Which was confusing at first, since that method is nowhere in Solidus core or our site. Interestingly, the error showed the code of our custom partial, not the partial from this extension, making it more confusing to find the source of the error.

For now, our solution is to replace this line from our order details partial:

<%= render payment %>

Instead, we use the block of code needed to render payments the way we would like.

stale[bot] commented 1 year ago

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