Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shipping Method display keeps defaults to "both" and always visible on checkout delivery page #235

Open
SylarRuby opened this issue Mar 19, 2023 · 1 comment

Comments

@SylarRuby
Copy link
Contributor

Using Rails 7.0.4.2 and ruby 3.1.2 and spree v4.5.1 I've noticed when creating or updating a shipping method and setting it to be displayed to backed, the admin backend dropdown is selecting "All".

Screenshot 2023-03-19 at 13 45 55

I expect when I create or update a shipping method and set "Display" to Admin Panel, I expect the Admin Panel selection to be selected.

I'm using spree_frontend and though, in database, I can see my selection was correct display_on: backend, on the checkout/delivery page, all delivery options are visible.

@SylarRuby
Copy link
Contributor Author

SylarRuby commented Mar 19, 2023

For the frontend, I've managed to "patch" this issue on line 17:


<% ship_form.object.shipping_rates.select {|r| ['both', 'front_end'].include?(r.shipping_method.display_on)}.each do |rate| %>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant