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

Close some customer menus Orders, Downloadable products, Back in stock subscriptions and My Orders with parameter #957

Open
suatsuphi opened this issue Dec 27, 2023 · 8 comments

Comments

@suatsuphi
Copy link
Contributor

suatsuphi commented Dec 27, 2023

Hi,
I wanna close some customer menu. these are Orders, Downloadable products, Back in stock subscriptions and My Orders

Could a parameter be added to close these menus or can it be linked to an existing parameter?

image

image

@mgesing
Copy link
Contributor

mgesing commented Dec 27, 2023

See CustomerSettings.HideDownloadableProductsTab and CustomerSettings.HideBackInStockSubscriptionsTab. The order list cannot be hidden by setting. To do this, you must write an event handler for the MenuBuiltEvent event and remove it using TreeNodeBase.Remove.

@suatsuphi
Copy link
Contributor Author

suatsuphi commented Dec 27, 2023

thank you.

Could a similar parameter be added for Orders and My Orders?

@suatsuphi
Copy link
Contributor Author

@mgesing

When I close the shopping cart, the price on the product detail page also closes.... can we make the price section close only when the price is hidden?

image

mgesing added a commit that referenced this issue Dec 29, 2023
@suatsuphi
Copy link
Contributor Author

thank you @mgesing

Could a similar parameter be added for Orders and My Orders?

@mgesing
Copy link
Contributor

mgesing commented Dec 29, 2023

Did you mean customer settings? I wouldn't do that for an online store. We also have to think about reducing and the sense of so many settings. You can use the MenuBuiltEvent to hide it.

@suatsuphi
Copy link
Contributor Author

Did you mean customer settings?

yes. I think this setting, which is there for others, should be there for this one too.
like CustomerSettings.HideOrdersTabs

image

@suatsuphi
Copy link
Contributor Author

or could you add parametre in permission.

image

I can even close wishlist but not orders.

@suatsuphi
Copy link
Contributor Author

#1034

access orders >
If a parameter like here is not desired, can it be ensured that these three menus do not appear if the user does not have an order, downloadable and in stock subscription? I can destroy two of them with parameter but not possible for orders...
orders.count > 0

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

No branches or pull requests

2 participants