Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

solidus_support loads _payment.html.erb aggressively #315

Open
hrdchz opened this issue Feb 9, 2022 · 1 comment
Open

solidus_support loads _payment.html.erb aggressively #315

hrdchz opened this issue Feb 9, 2022 · 1 comment

Comments

@hrdchz
Copy link

hrdchz commented Feb 9, 2022

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
Copy link

stale bot commented Nov 11, 2022

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.

@stale stale bot added the wontfix label Nov 11, 2022
@gsmendoza gsmendoza removed the wontfix label Nov 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants